I need to install PHP 7.1 in ubuntu 14.04. I try to do so by following the step by step instructions found online:

  1. First add the repository: sudo add-apt-repository ppa:ondrej/php

and everything seems to work correctly obtaining the following output:

 Co-installable PHP versions: PHP 5.6, PHP 7.x and most requested extensions 

are included. Only Supported Versions of PHP (http://php.net/supported-versions.php) for Supported Ubuntu Releases (https://wiki.ubuntu.com/Releases) are provided. Don't ask for end-of-life PHP versions or Ubuntu release, they won't be provided.

Debian oldstable and stable packages are provided as well: https://deb.sury.org/#debian-dpa

You can get more information about the packages at https://deb.sury.org

BUGS&FEATURES: This PPA now has a issue tracker:

1. If you are using php-gearman, you need to add ppa:ondrej/pkg-gearman
2. If you are using apache2, you are advised to add ppa:ondrej/apache2
3. If you are using nginx, you are advise to add ppa:ondrej/nginx-mainline
   or ppa:ondrej/nginx

PLEASE READ: If you like my work and want to give me a little motivation, please consider donating regularly: https://donate.sury.org/

WARNING: add-apt-repository is broken with non-UTF-8 locales, see
https://github.com/oerdnj/deb.sury.org/issues/56 for workaround:

# LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
 Más información: https://launchpad.net/~ondrej/+archive/ubuntu/php
Pulse [Intro] para continuar o ctrl-c para cancelar

gpg: anillo «/tmp/tmpgtjszist/secring.gpg» creado
gpg: anillo «/tmp/tmpgtjszist/pubring.gpg» creado
gpg: solicitando clave E5267A6C de hkp servidor keyserver.ubuntu.com
gpg: /tmp/tmpgtjszist/trustdb.gpg: se ha creado base de datos de confianza
gpg: clave E5267A6C: clave pública "Launchpad PPA for Ondřej Surý" importada
gpg: Cantidad total procesada: 1
gpg:               importadas: 1  (RSA: 1)
  1. I then do sudo apt-get update and notice that no mention is made of the ondrej repository.

  2. I finally try to install php sudo apt-get install php7.1 but it does not find the packages.

I have tried listing php relates packages available by executing apt-cache search php7 but nothing is available, only php5 is.

I am desperate. I have noticed that when installing the repositories there is a warning mentioning that

add-apt-repository is broken with non-UTF-8 locales

but even if I follow the instructions in the provided link nothing seems to change, because in fact my locale is es_ES.UTF-8.

$ locale
New contributor
osantos is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

Ubuntu 14.04 has reached EOL and consequently, the packages are no longer available in the PPA.

Don't ask for end-of-life PHP versions or Ubuntu release, they won't be provided.

Your Answer

osantos is a new contributor. Be nice, and check out our Code of Conduct.

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.