Skip to content

Bug: The process '/usr/bin/bash' failed with exit code 1 bug #935

@sammycorgi

Description

@sammycorgi

Describe the bug

The action fails rarely. PHP 8.2 on ubuntu latest ARM using self-hosted runners on runs-on

Version

  • v2
  • v1

Runners

Self Hosted

Operating systems

Ubuntu Latest ARM

PHP versions

PHP 8.2

To Reproduce

jobs:
  build-test:
    runs-on: [ "runs-on=${{ github.run_id }}",runner=4cpu-linux-x64,"run-id=${{ github.run_id }}",tag=build-test ]
    steps:
      - name: Checkout code
        uses: actions/checkout@v4
      - name: Cache composer modules
        uses: actions/cache@v4
        with:
          path: |
            ${{ env.COMPOSER_CACHE_PATH }}
          key: ${{ runner.os }}-build-${{ hashFiles('**/composer.lock') }}
      - name: Setup PHP
        uses: shivammathur/setup-php@v2
        with:
          php-version: ${{ env.PHP_VERSION }}
        env:
          runner: self-hosted

Expected behavior

Setup should complete with no errors

Screenshots/Logs

Run shivammathur/setup-php@verbose
/usr/bin/bash /home/runner/_work/_actions/shivammathur/setup-php/verbose/src/scripts/run.sh
force-confnew
[apt-fast 15:33:41]
[apt-fast 15:33:41]Working... this may take a while.
Reading package lists...
Building dependency tree...
Reading state information...
apt-transport-https is already the newest version (2.4.13).
autoconf is already the newest version (2.71-2).
automake is already the newest version (1:1.16.5-1.3).
ca-certificates is already the newest version (20240203~22.04.1).
curl is already the newest version (7.81.0-1ubuntu1.20).
file is already the newest version (1:5.41-3ubuntu0.1).
g++ is already the newest version (4:11.2.0-1ubuntu1).
gcc is already the newest version (4:11.2.0-1ubuntu1).
gnupg is already the newest version (2.2.27-3ubuntu2.1).
jq is already the newest version (1.6-2.1ubuntu3).
make is already the newest version (4.3-4.1build1).
unzip is already the newest version (6.0-26ubuntu3.2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
RUNNER_TOOL_CACHE=/tmp

==> Setup PHP
ID=ubuntu
VERSION_ID=22.04
VERSION_CODENAME=jammy
parse error: Invalid numeric literal at line 1, column 10
deb [arch=amd64 signed-by=/usr/share/keyrings/ondrej-php-keyring.gpg] http://ppa.launchpad.net/ondrej/php/ubuntu jammy main
Get:1 http://ppa.launchpad.net/ondrej/php/ubuntu jammy InRelease [24.6 kB]
Err:1 http://ppa.launchpad.net/ondrej/php/ubuntu jammy InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY REDACTED NO_PUBKEY REDACTED
Reading package lists...
W: GPG error: http://ppa.launchpad.net/ondrej/php/ubuntu jammy InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY REDACTED NO_PUBKEY REDACTED
E: The repository 'http://ppa.launchpad.net/ondrej/php/ubuntu jammy InRelease' is not signed.

[apt-fast 15:34:43]
[apt-fast 15:34:43]Working... this may take a while.
E: Unable to locate package php8.2-cgi
E: Couldn't find any package by glob 'php8.2-cgi'
E: Couldn't find any package by regex 'php8.2-cgi'
E: Unable to locate package php8.2-cli
E: Couldn't find any package by glob 'php8.2-cli'
E: Couldn't find any package by regex 'php8.2-cli'
E: Unable to locate package php8.2-curl
E: Couldn't find any package by glob 'php8.2-curl'
E: Couldn't find any package by regex 'php8.2-curl'
E: Unable to locate package php8.2-dev
E: Couldn't find any package by glob 'php8.2-dev'
E: Couldn't find any package by regex 'php8.2-dev'
E: Unable to locate package php8.2-fpm
E: Couldn't find any package by glob 'php8.2-fpm'
E: Couldn't find any package by regex 'php8.2-fpm'
E: Unable to locate package php8.2-intl
E: Couldn't find any package by glob 'php8.2-intl'
E: Couldn't find any package by regex 'php8.2-intl'
E: Unable to locate package php8.2-mbstring
E: Couldn't find any package by glob 'php8.2-mbstring'
E: Couldn't find any package by regex 'php8.2-mbstring'
E: Unable to locate package php8.2-mysql
E: Couldn't find any package by glob 'php8.2-mysql'
E: Couldn't find any package by regex 'php8.2-mysql'
E: Unable to locate package php8.2-opcache
E: Couldn't find any package by glob 'php8.2-opcache'
E: Couldn't find any package by regex 'php8.2-opcache'
E: Unable to locate package php8.2-pgsql
E: Couldn't find any package by glob 'php8.2-pgsql'
E: Couldn't find any package by regex 'php8.2-pgsql'
E: Unable to locate package php8.2-xml
E: Couldn't find any package by glob 'php8.2-xml'
E: Couldn't find any package by regex 'php8.2-xml'
E: Unable to locate package php8.2-zip
E: Couldn't find any package by glob 'php8.2-zip'
E: Couldn't find any package by regex 'php8.2-zip'
[apt-fast 15:34:43]Package manager quit with exit code.
Get:1 http://security.ubuntu.com/ubuntu jammy-security InRelease [129 kB]
Get:2 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [2150 kB]
Get:3 http://security.ubuntu.com/ubuntu jammy-security/main Translation-en [334 kB]
Get:4 http://security.ubuntu.com/ubuntu jammy-security/main amd64 c-n-f Metadata [13.6 kB]
Get:5 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [2997 kB]
Get:6 http://security.ubuntu.com/ubuntu jammy-security/restricted Translation-en [529 kB]
Get:7 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 c-n-f Metadata [624 B]
Get:8 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy InRelease [270 kB]
Get:9 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [968 kB]
Get:10 http://security.ubuntu.com/ubuntu jammy-security/universe Translation-en [208 kB]
Get:11 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 c-n-f Metadata [21.7 kB]
Get:12 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [39.6 kB]
Get:13 http://security.ubuntu.com/ubuntu jammy-security/multiverse Translation-en [8716 B]
Get:14 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 c-n-f Metadata [368 B]
Get:15 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates InRelease [128 kB]
Get:16 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports InRelease [127 kB]
Get:17 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy/main amd64 Packages [1395 kB]
Get:18 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy/main Translation-en [510 kB]
Get:19 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy/main amd64 c-n-f Metadata [30.3 kB]
Get:20 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy/restricted amd64 Packages [129 kB]
Get:21 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy/restricted Translation-en [18.6 kB]
Get:22 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy/restricted amd64 c-n-f Metadata [488 B]
Get:23 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages [14.1 MB]
Get:24 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy/universe Translation-en [[56](https://REDACTED/runs/14087024081/job/39454668162?pr=2484#step:3:57)52 kB]
Get:25 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy/universe amd64 c-n-f Metadata [286 kB]
Get:26 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy/multiverse amd64 Packages [217 kB]
Get:27 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy/multiverse Translation-en [112 kB]
Get:28 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy/multiverse amd64 c-n-f Metadata [8372 B]
Get:29 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [2421 kB]
Get:30 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/main Translation-en [400 kB]
Get:31 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/main amd64 c-n-f Metadata [18.5 kB]
Get:32 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [3174 kB]
Get:33 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/restricted Translation-en [560 kB]
Get:34 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 c-n-f Metadata [676 B]
Get:35 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1196 kB]
Get:36 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/universe Translation-en [294 kB]
Get:37 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 c-n-f Metadata [28.7 kB]
Get:38 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages [46.5 kB]
Get:39 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/multiverse Translation-en [11.8 kB]
Get:40 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 c-n-f Metadata [[59](https://REDACTED/actions/runs/14087024081/job/39454668162?pr=2484#step:3:60)2 B]
Get:41 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/main amd64 Packages [68.4 kB]
Get:42 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/main Translation-en [11.1 kB]
Get:43 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/main amd[64](https://REDACTED/actions/runs/14087024081/job/39454668162?pr=2484#step:3:65) c-n-f Metadata [392 B]
Get:44 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/restricted amd64 c-n-f Metadata [116 B]
Get:45 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [30.0 kB]
Get:46 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/universe Translation-en [16.6 kB]
Get:47 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 c-n-f Metadata [[67](https://REDACTED/actions/runs/14087024081/job/39454668162?pr=2484#step:3:68)2 B]
Get:48 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/multiverse amd64 c-n-f Metadata [116 B]
Fetched 38.7 MB in 4s (9829 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...
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
[apt-fast 15:34:50]
[apt-fast 15:34:50]Working... this may take a while.
E: Unable to locate package php8.2-cgi
E: Couldn't find any package by glob 'php8.2-cgi'
E: Couldn't find any package by regex 'php8.2-cgi'
E: Unable to locate package php8.2-cli
E: Couldn't find any package by glob 'php8.2-cli'
E: Couldn't find any package by regex 'php8.2-cli'
E: Unable to locate package php8.2-curl
E: Couldn't find any package by glob 'php8.2-curl'
E: Couldn't find any package by regex 'php8.2-curl'
E: Unable to locate package php8.2-dev
E: Couldn't find any package by glob 'php8.2-dev'
E: Couldn't find any package by regex 'php8.2-dev'
E: Unable to locate package php8.2-fpm
E: Couldn't find any package by glob 'php8.2-fpm'
E: Couldn't find any package by regex 'php8.2-fpm'
E: Unable to locate package php8.2-intl
E: Couldn't find any package by glob 'php8.2-intl'
E: Couldn't find any package by regex 'php8.2-intl'
E: Unable to locate package php8.2-mbstring
E: Couldn't find any package by glob 'php8.2-mbstring'
E: Couldn't find any package by regex 'php8.2-mbstring'
E: Unable to locate package php8.2-mysql
E: Couldn't find any package by glob 'php8.2-mysql'
E: Couldn't find any package by regex 'php8.2-mysql'
E: Unable to locate package php8.2-opcache
E: Couldn't find any package by glob 'php8.2-opcache'
E: Couldn't find any package by regex 'php8.2-opcache'
E: Unable to locate package php8.2-pgsql
E: Couldn't find any package by glob 'php8.2-pgsql'
E: Couldn't find any package by regex 'php8.2-pgsql'
E: Unable to locate package php8.2-xml
E: Couldn't find any package by glob 'php8.2-xml'
E: Couldn't find any package by regex 'php8.2-xml'
E: Unable to locate package php8.2-zip
E: Couldn't find any package by glob 'php8.2-zip'
E: Couldn't find any package by regex 'php8.2-zip'
[apt-fast 15:34:50]Package manager quit with exit code.
[apt-fast 15:34:51]
[apt-fast 15:34:51]Working... this may take a while.
E: Unable to locate package php8.2-dev
E: Couldn't find any package by glob 'php8.2-dev'
E: Couldn't find any package by regex 'php8.2-dev'
[apt-fast 15:34:51]Package manager quit with exit code.

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 6 not upgraded.
[apt-fast 15:34:52]
[apt-fast 15:34:52]Working... this may take a while.
E: Unable to locate package php8.2-dev
E: Couldn't find any package by glob 'php8.2-dev'
E: Couldn't find any package by regex 'php8.2-dev'
[apt-fast 15:34:52]Package manager quit with exit code.
✓ xml Enabled
✓ php-config Added php-config 
✓ PECL Added PECL 1.10.12
✗ PHP Could not setup PHP 8.2
Error: The process '/usr/bin/bash' failed with exit code 1

Additional context

No response

Are you willing to submit a PR?

Yes

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions