Ajouter un commentaire

Debian 8 Jessie : impossible de mettre à jour PHP 7.0.8 (The following packages have been kept back)

Impossible de mise à jour PHP vers PHP 7.0.8

Aujourd'hui, lorsque j'ai voulu mettre à jour la version de PHP 7.0.7 de mon serveur Debian, apt-get upgrade m'a indiqué que les paquets PHP étaient The following packages have been kept back

Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  php7.0-cli php7.0-common php7.0-curl php7.0-fpm php7.0-gd php7.0-imap php7.0-json php7.0-mysql php7.0-opcache php7.0-readline

 

La solution : apt-get dist-upgrade

En effet, après quelques recherches, j'ai exécuté la commande ci-dessous.

sudo apt-get dist-upgrade

Et j'ai constaté que le paquet libwebp5 devait être installé pour que PHP 7 soit bien upgradé vers PHP 7.0.8

Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... The following packages were automatically installed and are no longer required:
  libqdbm14 php-readline
Use 'apt-get autoremove' to remove them.
Done
The following NEW packages will be installed:
  libwebp5
The following packages will be upgraded:
  php7.0-cli php7.0-common php7.0-curl php7.0-fpm php7.0-gd php7.0-imap php7.0-json php7.0-mysql php7.0-opcache php7.0-readline
10 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 3,816 kB of archives.
After this operation, 5,979 kB disk space will be freed.
Do you want to continue? [Y/n]

 

Explication

En cherchant dans le changelog de PHP 7.0.8, j'ai constaté la ligne suivante :

GD:
....
Fixed bug #70047 (gd_info() doesn't report WebP support).
Replace libvpx with libwebp for bundled libgd.
...

C'est donc bien la librairie graphique GD, qui est intégrée à PHP qui a une nouvelle dépendance smiley

You must have Javascript enabled to use this form.