shivammathur / setup-php

GitHub action to set up PHP with extensions, php.ini configuration, coverage drivers, and various tools.
https://setup-php.com
MIT License
2.91k stars 340 forks source link

Setup php 8.2 failed #752

Closed ThanatosDi closed 1 year ago

ThanatosDi commented 1 year ago

Describe the bug

When I want setup php 8.2, it return "The process '/usr/bin/bash' failed with exit code 1". And when I change php version to 8.1, it will success setup.

image

Version

Runners

Operating systems

Ubuntu 22.04

PHP versions

8.2

To Reproduce

name: PHPUnit

on:
  pull_request:
      branches:
        - main
        - production
        - master
  workflow_dispatch:

env:
  salary-pwd: ${{ github.workspace }}/{project-folder}
  php-version: 8.2
  php-extensions: mongodb,redis,sqlite3,gd,bcmath
  key: cache-v1
  nodejs-version: 18

jobs:
    PHPUnit:
        runs-on: self-hosted
        steps:
        - uses: actions/checkout@v3

        - name: Setup PHP
          uses: shivammathur/setup-php@master
          with:
            php-version: ${{ env.php-version }}
            extensions: ${{ env.php-extensions }}
            tools: composer:v2

Expected behavior

setup success

Screenshots/Logs

image

Additional context

Are you willing to submit a PR?

shivammathur commented 1 year ago

Please change it to uses: shivammathur/setup-php@verbose and provide me the logs.

ThanatosDi commented 1 year ago

It mean I need to run apt-get update ? verbose logs:

/usr/bin/bash /_work/_actions/shivammathur/setup-php/verbose/src/scripts/run.sh
Reading package lists...
Building dependency tree...
Reading state information...
autoconf is already the newest version (2.69-11.1).
automake is already the newest version (1:1.16.1-4ubuntu6).
file is already the newest version (1:5.38-4).
g++ is already the newest version (4:9.3.0-1ubuntu2).
gcc is already the newest version (4:9.3.0-1ubuntu2).
make is already the newest version (4.2.1-1.2).
ca-certificates is already the newest version (20230311ubuntu0.20.04.1).
curl is already the newest version (7.68.0-1ubuntu2.18).
gnupg is already the newest version (2.2.19-3ubuntu2.2).
unzip is already the newest version (6.0-25ubuntu1.1).
apt-transport-https is already the newest version (2.0.9).
jq is already the newest version (1.6-1ubuntu0.20.04.1).
0 upgraded, 0 newly installed, 0 to remove and 17 not upgraded.
RUNNER_TOOL_CACHE=/tmp

==> Setup PHP
Repository ondrej/php already exists
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  php8.2-common php8.2-readline
Suggested packages:
  dh-php
Recommended packages:
  pkg-php-tools
The following NEW packages will be installed:
  php8.2-cgi php8.2-cli php8.2-common php8.2-curl php8.2-dev php8.2-fpm
  php8.2-intl php8.2-mbstring php8.2-mysql php8.2-opcache php8.2-pgsql
  php8.2-readline php8.2-xml php8.2-zip
0 upgraded, [14](https://github.com/pi-tw/test-action-self-host/actions/runs/5573129809/jobs/10179992707#step:3:15) newly installed, 0 to remove and 17 not upgraded.
Need to get 7,542 kB of archives.
After this operation, 41.3 MB of additional disk space will be used.
Err:1 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.2-common amd64 8.2.7-1+ubuntu20.04.1+deb.sury.org+1
  404  Not Found [IP: 185.125.190.52 80]
Err:2 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.2-opcache amd64 8.2.7-1+ubuntu20.04.1+deb.sury.org+1
  404  Not Found [IP: 185.125.190.52 80]
Err:3 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.2-readline amd64 8.2.7-1+ubuntu20.04.1+deb.sury.org+1
  404  Not Found [IP: 185.125.190.52 80]
Err:4 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.2-cli amd64 8.2.7-1+ubuntu20.04.1+deb.sury.org+1
  404  Not Found [IP: 185.125.190.52 80]
Err:5 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.2-cgi amd64 8.2.7-1+ubuntu20.04.1+deb.sury.org+1
  404  Not Found [IP: 185.125.190.52 80]
Err:6 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.2-curl amd64 8.2.7-1+ubuntu20.04.1+deb.sury.org+1
  404  Not Found [IP: 185.125.190.52 80]
Err:7 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.2-dev amd64 8.2.7-1+ubuntu20.04.1+deb.sury.org+1
  404  Not Found [IP: 185.125.190.52 80]
Err:8 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.2-fpm amd64 8.2.7-1+ubuntu20.04.1+deb.sury.org+1
  404  Not Found [IP: 185.125.190.52 80]
Err:9 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.2-intl amd64 8.2.7-1+ubuntu20.04.1+deb.sury.org+1
  404  Not Found [IP: 185.125.190.52 80]
Err:10 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.2-mbstring amd64 8.2.7-1+ubuntu20.04.1+deb.sury.org+1
  404  Not Found [IP: 185.125.190.52 80]
Err:11 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.2-mysql amd64 8.2.7-1+ubuntu20.04.1+deb.sury.org+1
  404  Not Found [IP: 185.125.190.52 80]
Err:12 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.2-pgsql amd64 8.2.7-1+ubuntu20.04.1+deb.sury.org+1
  404  Not Found [IP: 185.125.190.52 80]
Err:13 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.2-xml amd64 8.2.7-1+ubuntu20.04.1+deb.sury.org+1
  404  Not Found [IP: 185.125.190.52 80]
Err:14 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.2-zip amd64 8.2.7-1+ubuntu20.04.1+deb.sury.org+1
  404  Not Found [IP: 185.125.190.52 80]
E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php8.2/php8.2-common_8.2.7-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb  404  Not Found [IP: 185.125.190.52 80]
E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php8.2/php8.2-opcache_8.2.7-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb  404  Not Found [IP: 185.125.190.52 80]
E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php8.2/php8.2-readline_8.2.7-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb  404  Not Found [IP: 185.125.190.52 80]
E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php8.2/php8.2-cli_8.2.7-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb  404  Not Found [IP: 185.125.190.52 80]
E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php8.2/php8.2-cgi_8.2.7-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb  404  Not Found [IP: 185.125.190.52 80]
E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php8.2/php8.2-curl_8.2.7-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb  404  Not Found [IP: 185.125.190.52 80]
E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php8.2/php8.2-dev_8.2.7-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb  404  Not Found [IP: 185.125.190.52 80]
E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php8.2/php8.2-fpm_8.2.7-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb  404  Not Found [IP: 185.125.190.52 80]
E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php8.2/php8.2-intl_8.2.7-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb  404  Not Found [IP: 185.125.190.52 80]
E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php8.2/php8.2-mbstring_8.2.7-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb  404  Not Found [IP: 185.125.190.52 80]
E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php8.2/php8.2-mysql_8.2.7-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb  404  Not Found [IP: 185.125.190.52 80]
E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php8.2/php8.2-pgsql_8.2.7-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb  404  Not Found [IP: 185.125.190.52 80]
E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php8.2/php8.2-xml_8.2.7-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb  404  Not Found [IP: 185.125.190.52 80]
E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php8.2/php8.2-zip_8.2.7-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb  404  Not Found [IP: 185.125.190.52 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 0 to remove and [17](https://github.com/pi-tw/test-action-self-host/actions/runs/5573129809/jobs/10179992707#step:3:18) not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  php8.2-common php8.2-readline
Suggested packages:
  dh-php
Recommended packages:
  pkg-php-tools
The following NEW packages will be installed:
  php8.2-cgi php8.2-cli php8.2-common php8.2-curl php8.2-dev php8.2-fpm
  php8.2-intl php8.2-mbstring php8.2-mysql php8.2-opcache php8.2-pgsql
  php8.2-readline php8.2-xml php8.2-zip
0 upgraded, 14 newly installed, 0 to remove and 17 not upgraded.
Need to get 7,542 kB of archives.
After this operation, 41.3 MB of additional disk space will be used.
Err:1 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.2-common amd64 8.2.7-1+ubuntu20.04.1+deb.sury.org+1
  404  Not Found [IP: [18](https://github.com/pi-tw/test-action-self-host/actions/runs/5573129809/jobs/10179992707#step:3:19)5.125.190.52 80]
Err:2 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.2-opcache amd64 8.2.7-1+ubuntu20.04.1+deb.sury.org+1
  404  Not Found [IP: 185.125.190.52 80]
Err:3 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.2-readline amd64 8.2.7-1+ubuntu20.04.1+deb.sury.org+1
  404  Not Found [IP: 185.125.190.52 80]
Err:4 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.2-cli amd64 8.2.7-1+ubuntu20.04.1+deb.sury.org+1
  404  Not Found [IP: 185.125.190.52 80]
Err:5 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.2-cgi amd64 8.2.7-1+ubuntu20.04.1+deb.sury.org+1
  404  Not Found [IP: 185.125.190.52 80]
Err:6 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.2-curl amd64 8.2.7-1+ubuntu20.04.1+deb.sury.org+1
  404  Not Found [IP: 185.125.190.52 80]
Err:7 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.2-dev amd64 8.2.7-1+ubuntu20.04.1+deb.sury.org+1
  404  Not Found [IP: 185.125.190.52 80]
Err:8 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.2-fpm amd64 8.2.7-1+ubuntu20.04.1+deb.sury.org+1
  404  Not Found [IP: 185.125.190.52 80]
Err:9 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.2-intl amd64 8.2.7-1+ubuntu20.04.1+deb.sury.org+1
  404  Not Found [IP: 185.125.190.52 80]
Err:10 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.2-mbstring amd64 8.2.7-1+ubuntu20.04.1+deb.sury.org+1
  404  Not Found [IP: 185.125.190.52 80]
Err:11 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.2-mysql amd64 8.2.7-1+ubuntu20.04.1+deb.sury.org+1
  404  Not Found [IP: 185.125.190.52 80]
Err:12 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.2-pgsql amd64 8.2.7-1+ubuntu20.04.1+deb.sury.org+1
  404  Not Found [IP: 185.125.190.52 80]
Err:13 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.2-xml amd64 8.2.7-1+ubuntu20.04.1+deb.sury.org+1
  404  Not Found [IP: 185.125.190.52 80]
Err:14 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.2-zip amd64 8.2.7-1+ubuntu20.04.1+deb.sury.org+1
  404  Not Found [IP: 185.125.190.52 80]
E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php8.2/php8.2-common_8.2.7-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb  404  Not Found [IP: 185.125.190.52 80]
E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php8.2/php8.2-opcache_8.2.7-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb  404  Not Found [IP: 185.125.190.52 80]
E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php8.2/php8.2-readline_8.2.7-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb  404  Not Found [IP: 185.125.190.52 80]
E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php8.2/php8.2-cli_8.2.7-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb  404  Not Found [IP: 185.125.190.52 80]
E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php8.2/php8.2-cgi_8.2.7-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb  404  Not Found [IP: 185.125.190.52 80]
E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php8.2/php8.2-curl_8.2.7-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb  404  Not Found [IP: 185.125.190.52 80]
E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php8.2/php8.2-dev_8.2.7-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb  404  Not Found [IP: 185.125.190.52 80]
E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php8.2/php8.2-fpm_8.2.7-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb  404  Not Found [IP: 185.125.190.52 80]
E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php8.2/php8.2-intl_8.2.7-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb  404  Not Found [IP: 185.125.190.52 80]
E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php8.2/php8.2-mbstring_8.2.7-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb  404  Not Found [IP: 185.125.190.52 80]
E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php8.2/php8.2-mysql_8.2.7-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb  404  Not Found [IP: 185.125.190.52 80]
E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php8.2/php8.2-pgsql_8.2.7-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb  404  Not Found [IP: 185.125.190.52 80]
E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php8.2/php8.2-xml_8.2.7-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb  404  Not Found [IP: 185.125.190.52 80]
E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php8.2/php8.2-zip_8.2.7-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb  404  Not Found [IP: 185.125.190.52 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  php8.2-cli php8.2-common php8.2-opcache php8.2-readline
Suggested packages:
  dh-php
Recommended packages:
  pkg-php-tools
The following NEW packages will be installed:
  php8.2-cli php8.2-common php8.2-dev php8.2-opcache php8.2-readline
0 upgraded, 5 newly installed, 0 to remove and 17 not upgraded.
Need to get 3,2[36](https://github.com/pi-tw/test-action-self-host/actions/runs/5573129809/jobs/10179992707#step:3:37) kB of archives.
After this operation, 21.1 MB of additional disk space will be used.
Err:1 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.2-common amd64 8.2.7-1+ubuntu20.04.1+deb.sury.org+1
  [40](https://github.com/pi-tw/test-action-self-host/actions/runs/5573129809/jobs/10179992707#step:3:41)4  Not Found [IP: 185.125.190.52 80]
Err:2 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.2-opcache amd64 8.2.7-1+ubuntu20.04.1+deb.sury.org+1
  404  Not Found [IP: 185.125.190.52 80]
Err:3 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.2-readline amd64 8.2.7-1+ubuntu20.04.1+deb.sury.org+1
  404  Not Found [IP: 185.125.190.52 80]
Err:4 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.2-cli amd64 8.2.7-1+ubuntu20.04.1+deb.sury.org+1
  404  Not Found [IP: 185.125.190.52 80]
Err:5 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.2-dev amd64 8.2.7-1+ubuntu20.04.1+deb.sury.org+1
  404  Not Found [IP: 185.125.190.52 80]
E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php8.2/php8.2-common_8.2.7-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb  404  Not Found [IP: 185.125.190.52 80]
E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php8.2/php8.2-opcache_8.2.7-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb  404  Not Found [IP: 185.125.190.52 80]
E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php8.2/php8.2-readline_8.2.7-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb  404  Not Found [IP: 185.125.190.52 80]
E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php8.2/php8.2-cli_8.2.7-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb  404  Not Found [IP: 185.125.190.52 80]
E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php8.2/php8.2-dev_8.2.7-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb  404  Not Found [IP: 185.125.190.52 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 0 to remove and 17 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  php8.2-cli php8.2-common php8.2-opcache php8.2-readline
Suggested packages:
  dh-php
Recommended packages:
  pkg-php-tools
The following NEW packages will be installed:
  php8.2-cli php8.2-common php8.2-dev php8.2-opcache php8.2-readline
0 upgraded, 5 newly installed, 0 to remove and 17 not upgraded.
Need to get 3,236 kB of archives.
After this operation, 21.1 MB of additional disk space will be used.
Err:1 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.2-common amd64 8.2.7-1+ubuntu20.04.1+deb.sury.org+1
  404  Not Found [IP: 185.125.190.[52](https://github.com/pi-tw/test-action-self-host/actions/runs/5573129809/jobs/10179992707#step:3:53) 80]
Err:2 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd[64](https://github.com/pi-tw/test-action-self-host/actions/runs/5573129809/jobs/10179992707#step:3:65) php8.2-opcache amd64 8.2.7-1+ubuntu20.04.1+deb.sury.org+1
  404  Not Found [IP: 185.125.190.52 80]
Err:3 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.2-readline amd64 8.2.7-1+ubuntu20.04.1+deb.sury.org+1
  404  Not Found [IP: 185.125.190.52 80]
Err:4 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.2-cli amd64 8.2.7-1+ubuntu20.04.1+deb.sury.org+1
  404  Not Found [IP: 185.125.190.52 80]
Err:5 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.2-dev amd64 8.2.7-1+ubuntu20.04.1+deb.sury.org+1
  404  Not Found [IP: 185.125.190.52 80]
E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php8.2/php8.2-common_8.2.7-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb  404  Not Found [IP: 185.125.190.52 80]
E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php8.2/php8.2-opcache_8.2.7-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb  404  Not Found [IP: 185.125.190.52 80]
E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php8.2/php8.2-readline_8.2.7-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb  404  Not Found [IP: 185.125.190.52 80]
E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php8.2/php8.2-cli_8.2.7-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb  404  Not Found [IP: 185.125.190.52 80]
E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php8.2/php8.2-dev_8.2.7-1+ubuntu20.04.1+deb.sury.org+1_amd64.deb  404  Not Found [IP: 185.125.190.52 [80](https://github.com/pi-tw/test-action-self-host/actions/runs/5573129809/jobs/10179992707#step:3:81)]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
✓ xml Enabled
✓ php-config Added php-config 
✓ PECL Added PECL 1.10.13
✗ PHP Could not setup PHP 8.2
Error: The process '/usr/bin/bash' failed with exit code [1](https://github.com/pi-tw/test-action-self-host/actions/runs/5573129809/jobs/10179992707#step:7:1)
shivammathur commented 1 year ago

Please run apt-get update on your runner and provide the logs

ThanatosDi commented 1 year ago

Yes, I add apt-get update before setup php job, it will working. But I enable mongodb extension at setup php job, and it enable success. When I run composer install job, it can't found ext-mongodb.

All jobs of workflow: image

Setup PHP logs:

Run shivammathur/setup-php@verbose
/usr/bin/bash /_work/_actions/shivammathur/setup-php/verbose/src/scripts/run.sh
Reading package lists...
Building dependency tree...
Reading state information...
autoconf is already the newest version (2.69-11.1).
automake is already the newest version (1:1.[16](https://github.com/pi-tw/test-action-self-host/actions/runs/5573311678/jobs/10180417026#step:4:17).1-4ubuntu6).
file is already the newest version (1:5.38-4).
g++ is already the newest version (4:9.3.0-1ubuntu2).
gcc is already the newest version (4:9.3.0-1ubuntu2).
make is already the newest version (4.2.1-1.2).
ca-certificates is already the newest version (20230311ubuntu0.20.04.1).
curl is already the newest version (7.68.0-1ubuntu2.[18](https://github.com/pi-tw/test-action-self-host/actions/runs/5573311678/jobs/10180417026#step:4:19)).
gnupg is already the newest version (2.2.[19](https://github.com/pi-tw/test-action-self-host/actions/runs/5573311678/jobs/10180417026#step:4:20)-3ubuntu2.2).
unzip is already the newest version (6.0-25ubuntu1.1).
apt-transport-https is already the newest version (2.0.9).
jq is already the newest version (1.6-1ubuntu0.[20](https://github.com/pi-tw/test-action-self-host/actions/runs/5573311678/jobs/10180417026#step:4:21).04.1).
0 upgraded, 0 newly installed, 0 to remove and 39 not upgraded.
RUNNER_TOOL_CACHE=/tmp

==> Setup PHP

date.timezone=UTC
memory_limit=-1
xdebug.mode=coverage
opcache.enable=1
opcache.jit_buffer_size=256M
opcache.jit=1[23](https://github.com/pi-tw/test-action-self-host/actions/runs/5573311678/jobs/10180417026#step:4:24)5
php-version=8.2.8
✓ PHP Found PHP 8.2.8

==> Setup Extensions
✓ mongodb Enabled
✓ redis Enabled
✓ sqlite3 Enabled
✓ gd Enabled
✓ bcmath Enabled

==> Setup Tools
/root/.composer/vendor/bin
✓ composer Added composer 2.5.8

==> #StandWithUkraine
✓ read-more https://setup-php.com/support-ukraine

Composer install logs:

Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Your lock file does not contain a compatible set of packages. Please run composer update.

  Problem 1
Error: Your lock file does not contain a compatible set of packages. Please run composer update.

  Problem 1
    - Root composer.json requires PHP extension ext-mongodb * but it is missing from your system. Install or enable PHP's mongodb extension.
  Problem 2
    - mongodb/mongodb is locked to version 1.[15](https://github.com/pi-tw/test-action-self-host/actions/runs/5573311678/jobs/10180417026#step:7:16).0 and an update of this package was not requested.
    - mongodb/mongodb 1.15.0 requires ext-mongodb ^1.15.0 -> it is missing from your system. Install or enable PHP's mongodb extension.
  Problem 3
    - phpoffice/phpspreadsheet is locked to version 1.28.0 and an update of this package was not requested.
    - phpoffice/phpspreadsheet 1.28.0 requires ext-gd * -> it is missing from your system. Install or enable PHP's gd extension.
  Problem 4
    - mongodb/mongodb 1.15.0 requires ext-mongodb ^1.15.0 -> it is missing from your system. Install or enable PHP's mongodb extension.
    - jenssegers/mongodb v3.9.5 requires mongodb/mongodb ^1.11 -> satisfiable by mongodb/mongodb[1.15.0].
    - jenssegers/mongodb is locked to version v3.9.5 and an update of this package was not requested.

To enable extensions, verify that they are enabled in your .ini files:
    - /etc/php/8.2/cli/php.ini
    - /etc/php/8.2/cli/conf.d/10-mysqlnd.ini
    - /etc/php/8.2/cli/conf.d/10-opcache.ini
    - /etc/php/8.2/cli/conf.d/10-pdo.ini
    - /etc/php/8.2/cli/conf.d/15-xml.ini
    - /etc/php/8.2/cli/conf.d/20-calendar.ini
    - /etc/php/8.2/cli/conf.d/20-ctype.ini
    - /etc/php/8.2/cli/conf.d/20-curl.ini
    - /etc/php/8.2/cli/conf.d/20-dom.ini
    - /etc/php/8.2/cli/conf.d/20-exif.ini
    - /etc/php/8.2/cli/conf.d/20-ffi.ini
    - /etc/php/8.2/cli/conf.d/20-fileinfo.ini
    - /etc/php/8.2/cli/conf.d/20-ftp.ini
    - /etc/php/8.2/cli/conf.d/20-gettext.ini
    - /etc/php/8.2/cli/conf.d/20-iconv.ini
    - /etc/php/8.2/cli/conf.d/20-intl.ini
    - /etc/php/8.2/cli/conf.d/20-mbstring.ini
    - /etc/php/8.2/cli/conf.d/20-mysqli.ini
    - /etc/php/8.2/cli/conf.d/20-pdo_mysql.ini
    - /etc/php/8.2/cli/conf.d/20-pdo_pgsql.ini
    - /etc/php/8.2/cli/conf.d/20-pgsql.ini
    - /etc/php/8.2/cli/conf.d/20-phar.ini
    - /etc/php/8.2/cli/conf.d/20-posix.ini
    - /etc/php/8.2/cli/conf.d/20-readline.ini
    - /etc/php/8.2/cli/conf.d/20-shmop.ini
    - /etc/php/8.2/cli/conf.d/20-simplexml.ini
    - /etc/php/8.2/cli/conf.d/20-sockets.ini
    - /etc/php/8.2/cli/conf.d/20-sysvmsg.ini
    - /etc/php/8.2/cli/conf.d/20-sysvsem.ini
    - /etc/php/8.2/cli/conf.d/20-sysvshm.ini
    - /etc/php/8.2/cli/conf.d/20-tokenizer.ini
    - /etc/php/8.2/cli/conf.d/20-xmlreader.ini
    - /etc/php/8.2/cli/conf.d/20-xmlwriter.ini
    - /etc/php/8.2/cli/conf.d/20-xsl.ini
    - /etc/php/8.2/cli/conf.d/20-zip.ini
    - /etc/php/8.2/cli/conf.d/99-pecl.ini
You can also run `php --ini` in a terminal to see which files are used by PHP in CLI mode.
Alternatively, you can run Composer with `--ignore-platform-req=ext-mongodb --ignore-platform-req=ext-gd` to temporarily ignore these required extensions.
    - Root composer.json requires PHP extension ext-mongodb * but it is missing from your system. Install or enable PHP's mongodb extension.
  Problem 2
    - mongodb/mongodb is locked to version 1.15.0 and an update of this package was not requested.
    - mongodb/mongodb 1.15.0 requires ext-mongodb ^1.15.0 -> it is missing from your system. Install or enable PHP's mongodb extension.
  Problem 3
    - phpoffice/phpspreadsheet is locked to version 1.28.0 and an update of this package was not requested.
    - phpoffice/phpspreadsheet 1.28.0 requires ext-gd * -> it is missing from your system. Install or enable PHP's gd extension.
  Problem 4
    - mongodb/mongodb 1.15.0 requires ext-mongodb ^1.15.0 -> it is missing from your system. Install or enable PHP's mongodb extension.
    - jenssegers/mongodb v3.9.5 requires mongodb/mongodb ^1.11 -> satisfiable by mongodb/mongodb[1.15.0].
    - jenssegers/mongodb is locked to version v3.9.5 and an update of this package was not requested.

To enable extensions, verify that they are enabled in your .ini files:
    - /etc/php/8.2/cli/php.ini
    - /etc/php/8.2/cli/conf.d/10-mysqlnd.ini
    - /etc/php/8.2/cli/conf.d/10-opcache.ini
    - /etc/php/8.2/cli/conf.d/10-pdo.ini
    - /etc/php/8.2/cli/conf.d/15-xml.ini
    - /etc/php/8.2/cli/conf.d/20-calendar.ini
    - /etc/php/8.2/cli/conf.d/20-ctype.ini
    - /etc/php/8.2/cli/conf.d/20-curl.ini
    - /etc/php/8.2/cli/conf.d/20-dom.ini
    - /etc/php/8.2/cli/conf.d/20-exif.ini
    - /etc/php/8.2/cli/conf.d/20-ffi.ini
    - /etc/php/8.2/cli/conf.d/20-fileinfo.ini
    - /etc/php/8.2/cli/conf.d/20-ftp.ini
    - /etc/php/8.2/cli/conf.d/20-gettext.ini
    - /etc/php/8.2/cli/conf.d/20-iconv.ini
    - /etc/php/8.2/cli/conf.d/20-intl.ini
    - /etc/php/8.2/cli/conf.d/20-mbstring.ini
    - /etc/php/8.2/cli/conf.d/20-mysqli.ini
    - /etc/php/8.2/cli/conf.d/20-pdo_mysql.ini
    - /etc/php/8.2/cli/conf.d/20-pdo_pgsql.ini
    - /etc/php/8.2/cli/conf.d/20-pgsql.ini
    - /etc/php/8.2/cli/conf.d/20-phar.ini
    - /etc/php/8.2/cli/conf.d/20-posix.ini
    - /etc/php/8.2/cli/conf.d/20-readline.ini
    - /etc/php/8.2/cli/conf.d/20-shmop.ini
    - /etc/php/8.2/cli/conf.d/20-simplexml.ini
    - /etc/php/8.2/cli/conf.d/20-sockets.ini
    - /etc/php/8.2/cli/conf.d/20-sysvmsg.ini
    - /etc/php/8.2/cli/conf.d/20-sysvsem.ini
    - /etc/php/8.2/cli/conf.d/20-sysvshm.ini
    - /etc/php/8.2/cli/conf.d/20-tokenizer.ini
    - /etc/php/8.2/cli/conf.d/20-xmlreader.ini
    - /etc/php/8.2/cli/conf.d/20-xmlwriter.ini
    - /etc/php/8.2/cli/conf.d/20-xsl.ini
    - /etc/php/8.2/cli/conf.d/20-zip.ini
    - /etc/php/8.2/cli/conf.d/99-pecl.ini
You can also run `php --ini` in a terminal to see which files are used by PHP in CLI mode.
Alternatively, you can run Composer with `--ignore-platform-req=ext-mongodb --ignore-platform-req=ext-gd` to temporarily ignore these required extensions.
Error: Process completed with exit code 2.
0s
0s
shivammathur commented 1 year ago

Please run apt-get purge php8.2-mongodb on your runner, not in the workflow. Then re-run your workflow. It should work now.