Skip to content

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

Closed

Description

@sammycorgi

Describe the bug

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

This has been reported previously but seems to have resurfaced. #935. Below verbose logs are very similar to the original bug report.

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 14:30:26]
[apt-fast 14:30:26]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.14).
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.4).
jq is already the newest version (1.6-2.1ubuntu3.1).
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=/opt/hostedtoolcache

==> 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] https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy main
Get:1 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy InRelease [24.6 kB]
Err:1 https://ppa.launchpadcontent.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: https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 71DAEAAB4AD4CAB6 NO_PUBKEY 4F4EA0AAE5267A6C
E: The repository 'https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy InRelease' is not signed.

[apt-fast 14:31:55]
[apt-fast 14:31:55]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 14:31:55]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 [2641 kB]
Get:3 http://security.ubuntu.com/ubuntu jammy-security/main Translation-en [388 kB]
Get:4 http://security.ubuntu.com/ubuntu jammy-security/main amd64 c-n-f Metadata [13.9 kB]
Get:5 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [4228 kB]
Get:6 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy InRelease [270 kB]
Get:7 http://security.ubuntu.com/ubuntu jammy-security/restricted Translation-en [776 kB]
Get:8 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 c-n-f Metadata [624 B]
Get:9 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [996 kB]
Get:10 http://security.ubuntu.com/ubuntu jammy-security/universe Translation-en [218 kB]
Get:11 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 c-n-f Metadata [22.1 kB]
Get:12 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [40.3 kB]
Get:13 http://security.ubuntu.com/ubuntu jammy-security/multiverse Translation-en [8908 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 [5652 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 [2886 kB]
Get:30 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/main Translation-en [452 kB]
Get:31 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/main amd64 c-n-f Metadata [18.9 kB]
Get:32 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [4373 kB]
Get:33 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/restricted Translation-en [801 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 [1231 kB]
Get:36 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/universe Translation-en [305 kB]
Get:37 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 c-n-f Metadata [29.5 kB]
Get:38 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages [59.5 kB]
Get:39 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/multiverse Translation-en [14.2 kB]
Get:40 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 c-n-f Metadata [592 B]
Get:41 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/main amd64 Packages [68.8 kB]
Get:42 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/main Translation-en [11.4 kB]
Get:43 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/main amd64 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 [672 B]
Get:48 http://us-east-1.ec2.archive.ubuntu.com/ubuntu jammy-backports/multiverse amd64 c-n-f Metadata [116 B]
Fetched 42.7 MB in 4s (9563 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 9 not upgraded.
[apt-fast 14:32:04]
[apt-fast 14:32:04]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 14:32:04]Package manager quit with exit code.
[apt-fast 14:32:05]
[apt-fast 14:32:05]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 14:32:05]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 9 not upgraded.
[apt-fast 14:32:06]
[apt-fast 14:32:06]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 14:32:06]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

Activity

  1. shivammathur commented on Sep 10, 2025

    @shivammathur
    Owner

    @sammycorgi I have improved this further in 317a051. Should be in the next release

  2. shivammathur commented on Sep 18, 2025

    @shivammathur
    Owner

    Released the fix in 2.35.5.

  3. added
    bugSomething isn't working
    and removed
    bugSomething isn't working
    awaiting-releaseAdded/Fixed and tested, awaiting release
    on Sep 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions