-
Notifications
You must be signed in to change notification settings - Fork 140
Closed
Labels
bug confirmedBug reproduced and qualifiedBug reproduced and qualified
Milestone
Description
Build fails when trying to enable memcahced
extension on php:7.4-v4-slim-apache
This appears to be caused by a mismatched PHP version,
Steps to reproduce:
- Create
Dockerfile
with contents:
ARG PHP_EXTENSIONS="memcached"
FROM thecodingmachine/php:7.4-v4-slim-apache
- Run
docker build .
Expected behaviour:
- Image builds correctly
- PHP has
memcahced
extension installed + enabled
Actual behaviour:
- Image fails to build with errors:
...
+ phpenmod memcached
WARNING: Module memcached ini file doesn't exist under /etc/php/8.1/mods-available
WARNING: Module memcached ini file doesn't exist under /etc/php/8.1/mods-available
+ /usr/bin/real_php -m
+ grep memcached
The command '/bin/sh -c sudo -E PHP_EXTENSIONS="$PHP_EXTENSIONS" /usr/local/bin/install_selected_extensions.sh' returned a non-zero code: 1
Possible Solution
It appears that the script to install memcached
calls apt-get install -y --no-install-recommends php-igbinary php-msgpack
, which causes php8.1
to be installed as a dependency:
+ /usr/bin/real_php /usr/local/bin/install_selected_extensions.php
*** Installing extensions ***
WARNING: Module igbinary ini file doesn't exist under /etc/php/7.4/mods-available
WARNING: Module igbinary ini file doesn't exist under /etc/php/7.4/mods-available
WARNING: Module igbinary ini file doesn't exist under /etc/php/7.4/mods-available
WARNING: Module igbinary ini file doesn't exist under /etc/php/7.4/mods-available
+ '[' -n '' ']'
+ '[' -n 'php-igbinary php-msgpack' ']'
+ apt-get install -y --no-install-recommends php-igbinary php-msgpack
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
php8.1-cli php8.1-common php8.1-igbinary php8.1-msgpack php8.1-opcache
php8.1-phpdbg php8.1-readline
Suggested packages:
php-pear
The following NEW packages will be installed:
php-igbinary php-msgpack php8.1-cli php8.1-common php8.1-igbinary
php8.1-msgpack php8.1-opcache php8.1-phpdbg php8.1-readline
I don't think this should be happening; perhaps the php-igbinary
and / or php-msgpack
should be explicitly updated to php7.4-igbinary
and php7.4-msgpack
? Possibly the repo has updated their php-*
packages to point at php8.1-*
Full docker build output:
Sending build context to Docker daemon 267.2MB
Step 1/2 : ARG PHP_EXTENSIONS="memcached"
Step 2/2 : FROM thecodingmachine/php:7.4-v4-slim-apache
# Executing 7 build triggers
---> Running in 51c2f318d4d6
Removing intermediate container 51c2f318d4d6
---> Running in 5e257cd16689
Removing intermediate container 5e257cd16689
---> Running in 632e63c2db74
+ mv /etc/apt/apt.conf.d/docker-clean /tmp/docker-clean
+ apt-get update
Get:1 http://archive.ubuntu.com/ubuntu focal InRelease [265 kB]
Get:2 http://ppa.launchpad.net/ondrej/php/ubuntu focal InRelease [23.9 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Get:5 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 Packages [169 kB]
Get:6 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Get:7 http://archive.ubuntu.com/ubuntu focal/restricted amd64 Packages [33.4 kB]
Get:8 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 Packages [177 kB]
Get:9 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages [11.3 MB]
Get:10 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages [30.1 kB]
Get:11 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [833 kB]
Get:12 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [837 kB]
Get:13 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [1417 kB]
Get:14 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages [1275 kB]
Get:15 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1119 kB]
Get:16 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [952 kB]
Get:17 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [33.7 kB]
Get:18 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [1894 kB]
Get:19 http://archive.ubuntu.com/ubuntu focal-backports/main amd64 Packages [50.8 kB]
Get:20 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [22.4 kB]
Fetched 20.8 MB in 3s (6740 kB/s)
Reading package lists...
+ /usr/bin/real_php /usr/local/bin/install_selected_extensions.php
*** Installing extensions ***
WARNING: Module igbinary ini file doesn't exist under /etc/php/7.4/mods-available
WARNING: Module igbinary ini file doesn't exist under /etc/php/7.4/mods-available
WARNING: Module igbinary ini file doesn't exist under /etc/php/7.4/mods-available
WARNING: Module igbinary ini file doesn't exist under /etc/php/7.4/mods-available
+ '[' -n '' ']'
+ '[' -n 'php-igbinary php-msgpack' ']'
+ apt-get install -y --no-install-recommends php-igbinary php-msgpack
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
php8.1-cli php8.1-common php8.1-igbinary php8.1-msgpack php8.1-opcache
php8.1-phpdbg php8.1-readline
Suggested packages:
php-pear
The following NEW packages will be installed:
php-igbinary php-msgpack php8.1-cli php8.1-common php8.1-igbinary
php8.1-msgpack php8.1-opcache php8.1-phpdbg php8.1-readline
0 upgraded, 9 newly installed, 0 to remove and 19 not upgraded.
Need to get 4893 kB of archives.
After this operation, 21.8 MB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.1-common amd64 8.1.1-2+ubuntu20.04.1+deb.sury.org+1 [1089 kB]
Get:2 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.1-opcache amd64 8.1.1-2+ubuntu20.04.1+deb.sury.org+1 [331 kB]
Get:3 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.1-readline amd64 8.1.1-2+ubuntu20.04.1+deb.sury.org+1 [12.8 kB]
Get:4 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.1-cli amd64 8.1.1-2+ubuntu20.04.1+deb.sury.org+1 [1660 kB]
Get:5 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.1-phpdbg amd64 8.1.1-2+ubuntu20.04.1+deb.sury.org+1 [1676 kB]
Get:6 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.1-igbinary amd64 3.2.6+2.0.8-6+ubuntu20.04.1+deb.sury.org+10 [82.1 kB]
Get:7 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php-igbinary amd64 3.2.6+2.0.8-6+ubuntu20.04.1+deb.sury.org+10 [5132 B]
Get:8 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.1-msgpack amd64 2.2.0~rc1+2.1.2+0.5.7-6+ubuntu20.04.1+deb.sury.org+10 [31.6 kB]
Get:9 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php-msgpack amd64 2.2.0~rc1+2.1.2+0.5.7-6+ubuntu20.04.1+deb.sury.org+10 [4296 B]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 4893 kB in 2s (2476 kB/s)
Selecting previously unselected package php8.1-common.
(Reading database ... 11169 files and directories currently installed.)
Preparing to unpack .../0-php8.1-common_8.1.1-2+ubuntu20.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.1-common (8.1.1-2+ubuntu20.04.1+deb.sury.org+1) ...
Selecting previously unselected package php8.1-opcache.
Preparing to unpack .../1-php8.1-opcache_8.1.1-2+ubuntu20.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.1-opcache (8.1.1-2+ubuntu20.04.1+deb.sury.org+1) ...
Selecting previously unselected package php8.1-readline.
Preparing to unpack .../2-php8.1-readline_8.1.1-2+ubuntu20.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.1-readline (8.1.1-2+ubuntu20.04.1+deb.sury.org+1) ...
Selecting previously unselected package php8.1-cli.
Preparing to unpack .../3-php8.1-cli_8.1.1-2+ubuntu20.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.1-cli (8.1.1-2+ubuntu20.04.1+deb.sury.org+1) ...
Selecting previously unselected package php8.1-phpdbg.
Preparing to unpack .../4-php8.1-phpdbg_8.1.1-2+ubuntu20.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.1-phpdbg (8.1.1-2+ubuntu20.04.1+deb.sury.org+1) ...
Selecting previously unselected package php8.1-igbinary.
Preparing to unpack .../5-php8.1-igbinary_3.2.6+2.0.8-6+ubuntu20.04.1+deb.sury.org+10_amd64.deb ...
Unpacking php8.1-igbinary (3.2.6+2.0.8-6+ubuntu20.04.1+deb.sury.org+10) ...
Selecting previously unselected package php-igbinary.
Preparing to unpack .../6-php-igbinary_3.2.6+2.0.8-6+ubuntu20.04.1+deb.sury.org+10_amd64.deb ...
Unpacking php-igbinary (3.2.6+2.0.8-6+ubuntu20.04.1+deb.sury.org+10) ...
Selecting previously unselected package php8.1-msgpack.
Preparing to unpack .../7-php8.1-msgpack_2.2.0~rc1+2.1.2+0.5.7-6+ubuntu20.04.1+deb.sury.org+10_amd64.deb ...
Unpacking php8.1-msgpack (2.2.0~rc1+2.1.2+0.5.7-6+ubuntu20.04.1+deb.sury.org+10) ...
Selecting previously unselected package php-msgpack.
Preparing to unpack .../8-php-msgpack_2.2.0~rc1+2.1.2+0.5.7-6+ubuntu20.04.1+deb.sury.org+10_amd64.deb ...
Unpacking php-msgpack (2.2.0~rc1+2.1.2+0.5.7-6+ubuntu20.04.1+deb.sury.org+10) ...
Setting up php8.1-common (8.1.1-2+ubuntu20.04.1+deb.sury.org+1) ...
Creating config file /etc/php/8.1/mods-available/calendar.ini with new version
Creating config file /etc/php/8.1/mods-available/ctype.ini with new version
Creating config file /etc/php/8.1/mods-available/exif.ini with new version
Creating config file /etc/php/8.1/mods-available/fileinfo.ini with new version
Creating config file /etc/php/8.1/mods-available/ffi.ini with new version
Creating config file /etc/php/8.1/mods-available/ftp.ini with new version
Creating config file /etc/php/8.1/mods-available/gettext.ini with new version
Creating config file /etc/php/8.1/mods-available/iconv.ini with new version
Creating config file /etc/php/8.1/mods-available/pdo.ini with new version
Creating config file /etc/php/8.1/mods-available/phar.ini with new version
Creating config file /etc/php/8.1/mods-available/posix.ini with new version
Creating config file /etc/php/8.1/mods-available/shmop.ini with new version
Creating config file /etc/php/8.1/mods-available/sockets.ini with new version
Creating config file /etc/php/8.1/mods-available/sysvmsg.ini with new version
Creating config file /etc/php/8.1/mods-available/sysvsem.ini with new version
Creating config file /etc/php/8.1/mods-available/sysvshm.ini with new version
Creating config file /etc/php/8.1/mods-available/tokenizer.ini with new version
Setting up php8.1-readline (8.1.1-2+ubuntu20.04.1+deb.sury.org+1) ...
Creating config file /etc/php/8.1/mods-available/readline.ini with new version
Setting up php8.1-opcache (8.1.1-2+ubuntu20.04.1+deb.sury.org+1) ...
Creating config file /etc/php/8.1/mods-available/opcache.ini with new version
Setting up php8.1-cli (8.1.1-2+ubuntu20.04.1+deb.sury.org+1) ...
update-alternatives: using /usr/bin/php8.1 to provide /usr/bin/php (php) in auto mode
update-alternatives: warning: not replacing /usr/bin/php with a link
update-alternatives: warning: skip creation of /usr/share/man/man1/php.1.gz because associated file /usr/share/man/man1/php8.1.1.gz (of link group php) doesn't exist
update-alternatives: using /usr/bin/phar8.1 to provide /usr/bin/phar (phar) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/phar.1.gz because associated file /usr/share/man/man1/phar8.1.1.gz (of link group phar) doesn't exist
update-alternatives: using /usr/bin/phar.phar8.1 to provide /usr/bin/phar.phar (phar.phar) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/phar.phar.1.gz because associated file /usr/share/man/man1/phar.phar8.1.1.gz (of link group phar.phar) doesn't exist
Creating config file /etc/php/8.1/cli/php.ini with new version
Setting up php8.1-igbinary (3.2.6+2.0.8-6+ubuntu20.04.1+deb.sury.org+10) ...
Setting up php-igbinary (3.2.6+2.0.8-6+ubuntu20.04.1+deb.sury.org+10) ...
Setting up php8.1-phpdbg (8.1.1-2+ubuntu20.04.1+deb.sury.org+1) ...
update-alternatives: using /usr/bin/phpdbg8.1 to provide /usr/bin/phpdbg (phpdbg) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/phpdbg.1.gz because associated file /usr/share/man/man1/phpdbg8.1.1.gz (of link group phpdbg) doesn't exist
Creating config file /etc/php/8.1/phpdbg/php.ini with new version
Setting up php8.1-msgpack (2.2.0~rc1+2.1.2+0.5.7-6+ubuntu20.04.1+deb.sury.org+10) ...
Setting up php-msgpack (2.2.0~rc1+2.1.2+0.5.7-6+ubuntu20.04.1+deb.sury.org+10) ...
Processing triggers for php8.1-cli (8.1.1-2+ubuntu20.04.1+deb.sury.org+1) ...
Processing triggers for php8.1-phpdbg (8.1.1-2+ubuntu20.04.1+deb.sury.org+1) ...
+ '[' -n '' ']'
+ '[' -n memcached ']'
+ set +e
+ PACKAGE_NAME=memcached
+ apt-cache search --names-only php7.4-memcached
+ grep php7.4-memcached
php7.4-memcached - memcached extension module for PHP, uses libmemcached
+ set -e
+ apt-get install -y --no-install-recommends php7.4-memcached
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
libmemcached11 php7.4-igbinary php7.4-msgpack
The following NEW packages will be installed:
libmemcached11 php7.4-igbinary php7.4-memcached php7.4-msgpack
0 upgraded, 4 newly installed, 0 to remove and 19 not upgraded.
Need to get 242 kB of archives.
After this operation, 796 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu focal/main amd64 libmemcached11 amd64 1.0.18-4.2ubuntu2 [83.5 kB]
Get:2 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php7.4-igbinary amd64 3.2.6+2.0.8-6+ubuntu20.04.1+deb.sury.org+10 [83.7 kB]
Get:3 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php7.4-msgpack amd64 2.2.0~rc1+2.1.2+0.5.7-6+ubuntu20.04.1+deb.sury.org+10 [31.0 kB]
Get:4 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php7.4-memcached amd64 3.1.5+2.2.0-14+ubuntu20.04.1+deb.sury.org+10 [43.7 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 242 kB in 0s (1584 kB/s)
Selecting previously unselected package php7.4-igbinary.
(Reading database ... 11300 files and directories currently installed.)
Preparing to unpack .../php7.4-igbinary_3.2.6+2.0.8-6+ubuntu20.04.1+deb.sury.org+10_amd64.deb ...
Unpacking php7.4-igbinary (3.2.6+2.0.8-6+ubuntu20.04.1+deb.sury.org+10) ...
Selecting previously unselected package php7.4-msgpack.
Preparing to unpack .../php7.4-msgpack_2.2.0~rc1+2.1.2+0.5.7-6+ubuntu20.04.1+deb.sury.org+10_amd64.deb ...
Unpacking php7.4-msgpack (2.2.0~rc1+2.1.2+0.5.7-6+ubuntu20.04.1+deb.sury.org+10) ...
Selecting previously unselected package libmemcached11:amd64.
Preparing to unpack .../libmemcached11_1.0.18-4.2ubuntu2_amd64.deb ...
Unpacking libmemcached11:amd64 (1.0.18-4.2ubuntu2) ...
Selecting previously unselected package php7.4-memcached.
Preparing to unpack .../php7.4-memcached_3.1.5+2.2.0-14+ubuntu20.04.1+deb.sury.org+10_amd64.deb ...
Unpacking php7.4-memcached (3.1.5+2.2.0-14+ubuntu20.04.1+deb.sury.org+10) ...
Setting up php7.4-msgpack (2.2.0~rc1+2.1.2+0.5.7-6+ubuntu20.04.1+deb.sury.org+10) ...
Setting up php7.4-igbinary (3.2.6+2.0.8-6+ubuntu20.04.1+deb.sury.org+10) ...
Setting up libmemcached11:amd64 (1.0.18-4.2ubuntu2) ...
Setting up php7.4-memcached (3.1.5+2.2.0-14+ubuntu20.04.1+deb.sury.org+10) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
Processing triggers for php7.4-cli (7.4.26-1+ubuntu20.04.1+deb.sury.org+2) ...
Processing triggers for libapache2-mod-php7.4 (7.4.26-1+ubuntu20.04.1+deb.sury.org+2) ...
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n memcached ']'
+ phpenmod memcached
WARNING: Module memcached ini file doesn't exist under /etc/php/8.1/mods-available
WARNING: Module memcached ini file doesn't exist under /etc/php/8.1/mods-available
+ /usr/bin/real_php -m
+ grep memcached
The command '/bin/sh -c sudo -E PHP_EXTENSIONS="$PHP_EXTENSIONS" /usr/local/bin/install_selected_extensions.sh' returned a non-zero code: 1
olly@slowzone ~/w/b/a/site (staging)> docker build -f docker/Dockerfile.test .
Sending build context to Docker daemon 267.2MB
Step 1/2 : ARG PHP_EXTENSIONS="memcached"
Step 2/2 : FROM thecodingmachine/php:7.4-v4-slim-apache
# Executing 7 build triggers
---> Using cache
---> Using cache
---> Running in d58f0d7b605c
+ mv /etc/apt/apt.conf.d/docker-clean /tmp/docker-clean
+ apt-get update
Get:1 http://ppa.launchpad.net/ondrej/php/ubuntu focal InRelease [23.9 kB]
Get:2 http://archive.ubuntu.com/ubuntu focal InRelease [265 kB]
Get:3 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Get:4 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 Packages [169 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:6 http://archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Get:7 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages [1275 kB]
Get:8 http://archive.ubuntu.com/ubuntu focal/restricted amd64 Packages [33.4 kB]
Get:9 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 Packages [177 kB]
Get:10 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages [11.3 MB]
Get:11 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [833 kB]
Get:12 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [837 kB]
Get:13 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [1417 kB]
Get:14 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages [30.1 kB]
Get:15 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [33.7 kB]
Get:16 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [1894 kB]
Get:17 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [952 kB]
Get:18 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1119 kB]
Get:19 http://archive.ubuntu.com/ubuntu focal-backports/main amd64 Packages [50.8 kB]
Get:20 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [22.4 kB]
Fetched 20.8 MB in 4s (5174 kB/s)
Reading package lists...
+ /usr/bin/real_php /usr/local/bin/install_selected_extensions.php
*** Installing extensions ***
WARNING: Module igbinary ini file doesn't exist under /etc/php/7.4/mods-available
WARNING: Module igbinary ini file doesn't exist under /etc/php/7.4/mods-available
WARNING: Module igbinary ini file doesn't exist under /etc/php/7.4/mods-available
WARNING: Module igbinary ini file doesn't exist under /etc/php/7.4/mods-available
+ '[' -n '' ']'
+ '[' -n 'php-igbinary php-msgpack' ']'
+ apt-get install -y --no-install-recommends php-igbinary php-msgpack
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
php8.1-cli php8.1-common php8.1-igbinary php8.1-msgpack php8.1-opcache
php8.1-phpdbg php8.1-readline
Suggested packages:
php-pear
The following NEW packages will be installed:
php-igbinary php-msgpack php8.1-cli php8.1-common php8.1-igbinary
php8.1-msgpack php8.1-opcache php8.1-phpdbg php8.1-readline
0 upgraded, 9 newly installed, 0 to remove and 19 not upgraded.
Need to get 4893 kB of archives.
After this operation, 21.8 MB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.1-common amd64 8.1.1-2+ubuntu20.04.1+deb.sury.org+1 [1089 kB]
Get:2 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.1-opcache amd64 8.1.1-2+ubuntu20.04.1+deb.sury.org+1 [331 kB]
Get:3 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.1-readline amd64 8.1.1-2+ubuntu20.04.1+deb.sury.org+1 [12.8 kB]
Get:4 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.1-cli amd64 8.1.1-2+ubuntu20.04.1+deb.sury.org+1 [1660 kB]
Get:5 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.1-phpdbg amd64 8.1.1-2+ubuntu20.04.1+deb.sury.org+1 [1676 kB]
Get:6 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.1-igbinary amd64 3.2.6+2.0.8-6+ubuntu20.04.1+deb.sury.org+10 [82.1 kB]
Get:7 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php-igbinary amd64 3.2.6+2.0.8-6+ubuntu20.04.1+deb.sury.org+10 [5132 B]
Get:8 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.1-msgpack amd64 2.2.0~rc1+2.1.2+0.5.7-6+ubuntu20.04.1+deb.sury.org+10 [31.6 kB]
Get:9 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php-msgpack amd64 2.2.0~rc1+2.1.2+0.5.7-6+ubuntu20.04.1+deb.sury.org+10 [4296 B]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 4893 kB in 2s (3133 kB/s)
Selecting previously unselected package php8.1-common.
(Reading database ... 11169 files and directories currently installed.)
Preparing to unpack .../0-php8.1-common_8.1.1-2+ubuntu20.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.1-common (8.1.1-2+ubuntu20.04.1+deb.sury.org+1) ...
Selecting previously unselected package php8.1-opcache.
Preparing to unpack .../1-php8.1-opcache_8.1.1-2+ubuntu20.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.1-opcache (8.1.1-2+ubuntu20.04.1+deb.sury.org+1) ...
Selecting previously unselected package php8.1-readline.
Preparing to unpack .../2-php8.1-readline_8.1.1-2+ubuntu20.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.1-readline (8.1.1-2+ubuntu20.04.1+deb.sury.org+1) ...
Selecting previously unselected package php8.1-cli.
Preparing to unpack .../3-php8.1-cli_8.1.1-2+ubuntu20.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.1-cli (8.1.1-2+ubuntu20.04.1+deb.sury.org+1) ...
Selecting previously unselected package php8.1-phpdbg.
Preparing to unpack .../4-php8.1-phpdbg_8.1.1-2+ubuntu20.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php8.1-phpdbg (8.1.1-2+ubuntu20.04.1+deb.sury.org+1) ...
Selecting previously unselected package php8.1-igbinary.
Preparing to unpack .../5-php8.1-igbinary_3.2.6+2.0.8-6+ubuntu20.04.1+deb.sury.org+10_amd64.deb ...
Unpacking php8.1-igbinary (3.2.6+2.0.8-6+ubuntu20.04.1+deb.sury.org+10) ...
Selecting previously unselected package php-igbinary.
Preparing to unpack .../6-php-igbinary_3.2.6+2.0.8-6+ubuntu20.04.1+deb.sury.org+10_amd64.deb ...
Unpacking php-igbinary (3.2.6+2.0.8-6+ubuntu20.04.1+deb.sury.org+10) ...
Selecting previously unselected package php8.1-msgpack.
Preparing to unpack .../7-php8.1-msgpack_2.2.0~rc1+2.1.2+0.5.7-6+ubuntu20.04.1+deb.sury.org+10_amd64.deb ...
Unpacking php8.1-msgpack (2.2.0~rc1+2.1.2+0.5.7-6+ubuntu20.04.1+deb.sury.org+10) ...
Selecting previously unselected package php-msgpack.
Preparing to unpack .../8-php-msgpack_2.2.0~rc1+2.1.2+0.5.7-6+ubuntu20.04.1+deb.sury.org+10_amd64.deb ...
Unpacking php-msgpack (2.2.0~rc1+2.1.2+0.5.7-6+ubuntu20.04.1+deb.sury.org+10) ...
Setting up php8.1-common (8.1.1-2+ubuntu20.04.1+deb.sury.org+1) ...
Creating config file /etc/php/8.1/mods-available/calendar.ini with new version
Creating config file /etc/php/8.1/mods-available/ctype.ini with new version
Creating config file /etc/php/8.1/mods-available/exif.ini with new version
Creating config file /etc/php/8.1/mods-available/fileinfo.ini with new version
Creating config file /etc/php/8.1/mods-available/ffi.ini with new version
Creating config file /etc/php/8.1/mods-available/ftp.ini with new version
Creating config file /etc/php/8.1/mods-available/gettext.ini with new version
Creating config file /etc/php/8.1/mods-available/iconv.ini with new version
Creating config file /etc/php/8.1/mods-available/pdo.ini with new version
Creating config file /etc/php/8.1/mods-available/phar.ini with new version
Creating config file /etc/php/8.1/mods-available/posix.ini with new version
Creating config file /etc/php/8.1/mods-available/shmop.ini with new version
Creating config file /etc/php/8.1/mods-available/sockets.ini with new version
Creating config file /etc/php/8.1/mods-available/sysvmsg.ini with new version
Creating config file /etc/php/8.1/mods-available/sysvsem.ini with new version
Creating config file /etc/php/8.1/mods-available/sysvshm.ini with new version
Creating config file /etc/php/8.1/mods-available/tokenizer.ini with new version
Setting up php8.1-readline (8.1.1-2+ubuntu20.04.1+deb.sury.org+1) ...
Creating config file /etc/php/8.1/mods-available/readline.ini with new version
Setting up php8.1-opcache (8.1.1-2+ubuntu20.04.1+deb.sury.org+1) ...
Creating config file /etc/php/8.1/mods-available/opcache.ini with new version
Setting up php8.1-cli (8.1.1-2+ubuntu20.04.1+deb.sury.org+1) ...
update-alternatives: using /usr/bin/php8.1 to provide /usr/bin/php (php) in auto mode
update-alternatives: warning: not replacing /usr/bin/php with a link
update-alternatives: warning: skip creation of /usr/share/man/man1/php.1.gz because associated file /usr/share/man/man1/php8.1.1.gz (of link group php) doesn't exist
update-alternatives: using /usr/bin/phar8.1 to provide /usr/bin/phar (phar) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/phar.1.gz because associated file /usr/share/man/man1/phar8.1.1.gz (of link group phar) doesn't exist
update-alternatives: using /usr/bin/phar.phar8.1 to provide /usr/bin/phar.phar (phar.phar) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/phar.phar.1.gz because associated file /usr/share/man/man1/phar.phar8.1.1.gz (of link group phar.phar) doesn't exist
Creating config file /etc/php/8.1/cli/php.ini with new version
Setting up php8.1-igbinary (3.2.6+2.0.8-6+ubuntu20.04.1+deb.sury.org+10) ...
Setting up php-igbinary (3.2.6+2.0.8-6+ubuntu20.04.1+deb.sury.org+10) ...
Setting up php8.1-phpdbg (8.1.1-2+ubuntu20.04.1+deb.sury.org+1) ...
update-alternatives: using /usr/bin/phpdbg8.1 to provide /usr/bin/phpdbg (phpdbg) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/phpdbg.1.gz because associated file /usr/share/man/man1/phpdbg8.1.1.gz (of link group phpdbg) doesn't exist
Creating config file /etc/php/8.1/phpdbg/php.ini with new version
Setting up php8.1-msgpack (2.2.0~rc1+2.1.2+0.5.7-6+ubuntu20.04.1+deb.sury.org+10) ...
Setting up php-msgpack (2.2.0~rc1+2.1.2+0.5.7-6+ubuntu20.04.1+deb.sury.org+10) ...
Processing triggers for php8.1-cli (8.1.1-2+ubuntu20.04.1+deb.sury.org+1) ...
Processing triggers for php8.1-phpdbg (8.1.1-2+ubuntu20.04.1+deb.sury.org+1) ...
+ '[' -n '' ']'
+ '[' -n memcached ']'
+ set +e
+ PACKAGE_NAME=memcached
+ apt-cache search --names-only php7.4-memcached
+ grep php7.4-memcached
php7.4-memcached - memcached extension module for PHP, uses libmemcached
+ set -e
+ apt-get install -y --no-install-recommends php7.4-memcached
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
libmemcached11 php7.4-igbinary php7.4-msgpack
The following NEW packages will be installed:
libmemcached11 php7.4-igbinary php7.4-memcached php7.4-msgpack
0 upgraded, 4 newly installed, 0 to remove and 19 not upgraded.
Need to get 242 kB of archives.
After this operation, 796 kB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php7.4-igbinary amd64 3.2.6+2.0.8-6+ubuntu20.04.1+deb.sury.org+10 [83.7 kB]
Get:2 http://archive.ubuntu.com/ubuntu focal/main amd64 libmemcached11 amd64 1.0.18-4.2ubuntu2 [83.5 kB]
Get:3 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php7.4-msgpack amd64 2.2.0~rc1+2.1.2+0.5.7-6+ubuntu20.04.1+deb.sury.org+10 [31.0 kB]
Get:4 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php7.4-memcached amd64 3.1.5+2.2.0-14+ubuntu20.04.1+deb.sury.org+10 [43.7 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 242 kB in 0s (1410 kB/s)
Selecting previously unselected package php7.4-igbinary.
(Reading database ... 11300 files and directories currently installed.)
Preparing to unpack .../php7.4-igbinary_3.2.6+2.0.8-6+ubuntu20.04.1+deb.sury.org+10_amd64.deb ...
Unpacking php7.4-igbinary (3.2.6+2.0.8-6+ubuntu20.04.1+deb.sury.org+10) ...
Selecting previously unselected package php7.4-msgpack.
Preparing to unpack .../php7.4-msgpack_2.2.0~rc1+2.1.2+0.5.7-6+ubuntu20.04.1+deb.sury.org+10_amd64.deb ...
Unpacking php7.4-msgpack (2.2.0~rc1+2.1.2+0.5.7-6+ubuntu20.04.1+deb.sury.org+10) ...
Selecting previously unselected package libmemcached11:amd64.
Preparing to unpack .../libmemcached11_1.0.18-4.2ubuntu2_amd64.deb ...
Unpacking libmemcached11:amd64 (1.0.18-4.2ubuntu2) ...
Selecting previously unselected package php7.4-memcached.
Preparing to unpack .../php7.4-memcached_3.1.5+2.2.0-14+ubuntu20.04.1+deb.sury.org+10_amd64.deb ...
Unpacking php7.4-memcached (3.1.5+2.2.0-14+ubuntu20.04.1+deb.sury.org+10) ...
Setting up php7.4-msgpack (2.2.0~rc1+2.1.2+0.5.7-6+ubuntu20.04.1+deb.sury.org+10) ...
Setting up php7.4-igbinary (3.2.6+2.0.8-6+ubuntu20.04.1+deb.sury.org+10) ...
Setting up libmemcached11:amd64 (1.0.18-4.2ubuntu2) ...
Setting up php7.4-memcached (3.1.5+2.2.0-14+ubuntu20.04.1+deb.sury.org+10) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
Processing triggers for php7.4-cli (7.4.26-1+ubuntu20.04.1+deb.sury.org+2) ...
Processing triggers for libapache2-mod-php7.4 (7.4.26-1+ubuntu20.04.1+deb.sury.org+2) ...
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n memcached ']'
+ phpenmod memcached
WARNING: Module memcached ini file doesn't exist under /etc/php/8.1/mods-available
WARNING: Module memcached ini file doesn't exist under /etc/php/8.1/mods-available
+ /usr/bin/real_php -m
+ grep memcached
The command '/bin/sh -c sudo -E PHP_EXTENSIONS="$PHP_EXTENSIONS" /usr/local/bin/install_selected_extensions.sh' returned a non-zero code: 1
Your Environment
This error is happening on my laptop (Ubuntu Mate 21.10) as well as on a Travis CI machine
Metadata
Metadata
Assignees
Labels
bug confirmedBug reproduced and qualifiedBug reproduced and qualified