So I re-applied latest Trellis on a base Ubuntu system (ansible-playbook server.yml -e env=staging
or ansible-playbook server.yml -e env=staging --tags=php
) and I noticed that
there are no packages installed from the external PPA repository afterwards, here the list of installed php* packages:
php-common/groovy,now 2:76 all [installed,automatic]
php-igbinary/groovy,now 3.1.2+2.0.8-1build1 amd64 [installed,automatic]
php-imagick/groovy,now 3.4.4-4.1 amd64 [installed]
php-memcached/groovy,now 3.1.4+2.2.0-1 amd64 [installed]
php-msgpack/groovy,now 2.1.0beta1-0ubuntu2 amd64 [installed,automatic]
php-pear/groovy-updates,groovy-security,now 1:1.10.9+submodules+notgz-1ubuntu0.20.10.2 all [installed,automatic]
php-xml/groovy,now 2:7.4+76 all [installed,automatic]
php7.4-bcmath/groovy-updates,groovy-security,now 7.4.9-1ubuntu1.2 amd64 [installed]
php7.4-cli/groovy-updates,groovy-security,now 7.4.9-1ubuntu1.2 amd64 [installed]
php7.4-common/groovy-updates,groovy-security,now 7.4.9-1ubuntu1.2 amd64 [installed,automatic]
php7.4-curl/groovy-updates,groovy-security,now 7.4.9-1ubuntu1.2 amd64 [installed]
php7.4-dev/groovy-updates,groovy-security,now 7.4.9-1ubuntu1.2 amd64 [installed]
php7.4-fpm/groovy-updates,groovy-security,now 7.4.9-1ubuntu1.2 amd64 [installed]
php7.4-intl/groovy-updates,groovy-security,now 7.4.9-1ubuntu1.2 amd64 [installed]
php7.4-json/groovy-updates,groovy-security,now 7.4.9-1ubuntu1.2 amd64 [installed,automatic]
php7.4-mbstring/groovy-updates,groovy-security,now 7.4.9-1ubuntu1.2 amd64 [installed]
php7.4-mysql/groovy-updates,groovy-security,now 7.4.9-1ubuntu1.2 amd64 [installed]
php7.4-opcache/groovy-updates,groovy-security,now 7.4.9-1ubuntu1.2 amd64 [installed,automatic]
php7.4-readline/groovy-updates,groovy-security,now 7.4.9-1ubuntu1.2 amd64 [installed,automatic]
php7.4-xml/groovy-updates,groovy-security,now 7.4.9-1ubuntu1.2 amd64 [installed]
php7.4-xmlrpc/groovy-updates,groovy-security,now 7.4.9-1ubuntu1.2 amd64 [installed]
php7.4-zip/groovy-updates,groovy-security,now 7.4.9-1ubuntu1.2 amd64 [installed]
pkg-php-tools/groovy,now 1.39 all [installed,automatic]
When I use apt install php7.4
(and for the other PHP packages, too), it is not installed from the external PPA repository.
/etc/apt/sources.list.d/ppa_ondrej_php_groovy.list
:
deb http://ppa.launchpad.net/ondrej/php/ubuntu groovy main
This should be the external PPA.
So for whatever reasons apt
decides to install the PHP7.4* packages from the upstream repository instead from the PPA, even when the PPA got higher versions.
The php7.4-fpm
apt policy php7.4-fpm
php7.4-fpm:
Installed: 7.4.9-1ubuntu1.2
Candidate: 7.4.9-1ubuntu1.2
Version table:
*** 7.4.9-1ubuntu1.2 500
500 http://de.archive.ubuntu.com/ubuntu groovy-updates/universe amd64 Packages
500 http://de.archive.ubuntu.com/ubuntu groovy-security/universe amd64 Packages
100 /var/lib/dpkg/status
7.4.9-1ubuntu1 500
500 http://de.archive.ubuntu.com/ubuntu groovy/universe amd64 Packages
I also manually ran apt update
and listed all packages, but no package from the PPA:
$ apt list | grep ondrej
(or)
$ apt list | grep sury
(empty list)