Upgrade version
-
The ubuntu version is 15.04.
Thanks.
-
@mimi1255 Then this may be the path forward.
http://idroot.net/tutorials/how-to-install-php-7-on-ubuntu-15-04/
You will need to execute (at least steps 1 and 2) before attempting to upgrade.
-
@mimi1255 Do you have any kind of filter device, or proxy settings?
Did the repository update succeed and only the php installation fails?
-
When I try to add the PPA, I get this message :
Cannot add PPA: 'ppa:~ondrej/ubuntu/php-7.0'. The user named '~ondrej' has no PPA named 'ubuntu/php-7.0' Please choose from the following available PPAs: * 'apache2': PPA for Apache 2.x * 'apache2-qa': PPA for Apache2 (QA builds; experimental) * 'autotools': PPA for autotools (not-supported; build-dependency; experimental) * 'bind9': PPA for BIND 9 * 'cmake': PPA for CMake (not-supported, experimental) * 'common': Common PPA packages * 'courier': PPA for Courier MTA * 'cyrus-imapd': PPA for Cyrus IMAP * 'debhelper': PPA for Debhelper (and friends) * 'golang': PPA for Go (experimental, build-dependency) * 'llvm': PPA for LLVM * 'mariadb-10.0': PPA for MariaDB 10.0 (don't use, broken) * 'mysql-5.5': PPA for MySQL 5.5 (don't use, broken) * 'mysql-5.6': PPA for MySQL 5.6 (don't use, broken) * 'mysql-5.7': PPA for MySQL 5.7 (don't use, broken) * 'nginx': PPA for NGINX with HTTP/2 on Ubuntu 12.04 LTS and higher * 'nginx-mainline': PPA for NGINX Mainline with HTTP/2 on Ubuntu 12.04 LTS and higher * 'pelican': PPA for Pelican * 'php': ***** The main PPA for PHP (5.6, 7.0, 7.1) with many PECL extensions ***** * 'php-qa': PPA for PHP (QA builds; experimental) * 'php-zts': PPA for PHP ZTS (experimental, unsupported) * 'php5-compat': PPA with dummy compatibility php5* packages * 'php5-oldstable': PPA for PHP 5.4 (unsupported, vulnerable) * 'pkg-dpkg': dpkg and friends (very experimental) * 'pkg-gearman': PPA for Gearman * 'pkg-nlnetlabs': NLNetLabs Backported Packages * 'postfix+dane': PPA for Postfix with DANE support * 'ppa': PPA for Ondřej Surý * 'sandbox': Sandbox for preparation of various packages (DON'T USE) * 'seafile': PPA for Seafile * 'zonemaster': PPA for Zonemaster
-
@mimi1255 try
sudo add-apt-repository ppa:ondrej/php
It states that you can only use the commands below, php is in the list but php7.0 is not. -
None of this will work with ondrej.
Ondrej has moved into only supporting ‘LTS’ releases.
You will need to upgrade (or downgrade if you must) to one of the LTS releases.
Current supported PHP versions for Ondrej are:
16.10
16.04
14.04
12.04 -
@Jaymes-Driver
I tried with this command : sudo add-apt-repository ppa:ondrej/php
And it works.administrateur@FOG:~$ sudo add-apt-repository ppa:ondrej/php Co-installable PHP versions: PHP 5.6, PHP 7.0, PHP 7.1 and most requested extensions are included. PLEASE DON'T USE PHP 5.4 OR PHP 5.5. The PHP 5.5 and later are no longer supported with security updates, therefore they are not included in this repository. You can get more information about the packages at https://deb.sury.org BUGS&FEATURES: This PPA now has a issue tracker: https://deb.sury.org/#bug-reporting 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 Plus d’info : https://launchpad.net/~ondrej/+archive/ubuntu/php Appuyez sur [ENTRÉE] pour continuer ou Ctrl-C pour annuler l’ajout gpg: le porte-clefs « /tmp/tmp1lgwvjgi/secring.gpg » a été créé gpg: le porte-clefs « /tmp/tmp1lgwvjgi/pubring.gpg » a été créé gpg: demande de la clef E5267A6C sur le serveur hkp keyserver.ubuntu.com gpg: /tmp/tmp1lgwvjgi/trustdb.gpg : base de confiance créée gpg: clef E5267A6C : clef publique « Launchpad PPA for Ondřej Surý » importée gpg: Quantité totale traitée : 1 gpg: importées : 1 (RSA: 1) OK
But after when I try : sudo apt-get install -y php7.0
it does not work.administrateur@FOG:~$ sudo apt-get install -y php7.0 Lecture des listes de paquets... Fait Construction de l'arbre des dépendances Lecture des informations d'état... Fait E: Impossible de trouver le paquet php7.0 E: Impossible de trouver de paquet correspondant à l'expression rationnelle « php7.0 »
-
@mimi1255 you will need to issue the following command
sudo apt-get install -y php
drop the 7.0 off the end.
I see the php7.0 repo in the list on his launchpad page, I am not exactly sure why you aren’t able to download that specific repo.
The command I gave you should install php7.1
From what I can tell, all php5.6, 7.0 and 7.1 are housed in the php ppa.
-
@Jaymes-Driver
I removed 7.0 at then end but same problem :administrateur@FOG:~$ sudo apt-get install -y php Lecture des listes de paquets... Fait Construction de l'arbre des dépendances Lecture des informations d'état... Fait E: Impossible de trouver le paquet php
-
As I stated earlier, no amount of effort will work as you’re running ubuntu 15, you will need to update your Ubuntu version.
-
@mimi1255 It could be possible that the repos do not work for your
Ubuntu installation.I do not see repositories listed for Vivid Vervet in the ppa list.
I see Xenial, Trusty, Precise, and Yakkety.
Are you opposed to upgrading to 16.04? I use 16.04 in my environment and haven’t run into issues yet (other than issues with my web filter).
-
Do you have a procedure to upgrade ubuntu in the last version ?
Thanks again. -
do-release-upgrade
-
@mimi1255
From command prompt
sudo apt-get update
sudo apt-get install update-manager-core
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo do-release-upgrade -d
If you don’t have much on the server, it might be faster to download 16.04 and install it to your machine.
I upgraded my 10.04 x32 all the way to 16.04 x64… I don’t recommend this, in the end due to all the errors, I just installed from scratch and imported my old images one at a time with a capture task from the new server.
-
@Jaymes-Driver
When I start the last commande “sudo do-release-upgrade” I get an error :
No update found -
@mimi1255 Make sure you run the
sudo apt-get dist-upgrade
commandYou will also need to check/adjust so that the next LTS is downloaded, try this
Check the
/etc/update-manager/release-upgrades
file and change the line
Prompt=normal
to
Prompt=LTS
save and exit.Run the do-release-upgrade command again.
This should upgrade you to 15.10 (depending on your choices in the release-upgrade file) which will allow you a direct upgrade path to 16.04.
-
@Jaymes-Driver
Prompt=LTS is already set up. -
@mimi1255 If the upgrade still fails (because 15.04 is technically EOL) try changing the LTS to Normal instead.
If there are errors, please provide them so that I can assist further, it may be possible that we need to doctor the repo list to include the old versions.
-
@Jaymes-Driver
Hi Jaymes,
I get this error with Prompt=normal:An upgrade from 'vivid' to 'xenial' is not supported with this tool.
Thanks
-
@Jaymes-Driver
If I install a new fog server on ubuntu 16.04. Is it possible to move my old images to the new fog server ?Thanks.