Skip to content

Unable to locate package php8.2-dev #880

@withinboredom

Description

@withinboredom

Describe the bug

I am running on self-hosted and getting an error message when trying to setup php. I reran the script with @verbose:

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 2 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
Package php8.2-cgi is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php8.2-cli is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php8.2-curl is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php8.2-fpm is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php8.2-intl is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php8.2-mbstring is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php8.2-mysql is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php8.2-opcache is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php8.2-pgsql is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php8.2-xml is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php8.2-zip is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'php8.2-cgi' has no installation candidate
E: Package 'php8.2-cli' has no installation candidate
E: Package 'php8.2-curl' has no installation candidate
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: Package 'php8.2-fpm' has no installation candidate
E: Package 'php8.2-intl' has no installation candidate
E: Package 'php8.2-mbstring' has no installation candidate
E: Package 'php8.2-mysql' has no installation candidate
E: Package 'php8.2-opcache' has no installation candidate
E: Package 'php8.2-pgsql' has no installation candidate
E: Package 'php8.2-xml' has no installation candidate
E: Package 'php8.2-zip' has no installation candidate
Reading package lists...
Building dependency tree...
Reading state information...
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'

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 2 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
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'
/home/runner/_work/_actions/shivammathur/setup-php/verbose/src/scripts/../scripts/extensions/add_extensions.sh: line 13: php: command not found
/home/runner/_work/_actions/shivammathur/setup-php/verbose/src/scripts/../scripts/extensions/add_extensions.sh: line 16: php: command not found
/home/runner/_work/_actions/shivammathur/setup-php/verbose/src/scripts/../scripts/extensions/add_extensions.sh: line 24: ext_dir: parameter null or not set

My runner image is essentially the github actions builder provided by GitHub: https://github.com/bottledcode/sane-builder/blob/latest/Dockerfile

Version

  • I have checked releases, and the bug exists in the latest patch version of v1 or v2.
  • v2
  • v1

Runners

  • GitHub Hosted
  • Self Hosted

Operating systems

PHP versions

8.2 only, 8.3 and 8.4 work

To Reproduce

        uses: shivammathur/setup-php@verbose
        with:
          php-version: ${{ matrix.php-versions }}
          ini-file: development
          coverage: none
          tools: none
        env:
          phpts: ts
          debug: true
          runner: self-hosted

Expected behavior

PHP 8.2 to be installed

Screenshots/Logs

Can view output here: https://github.com/bottledcode/frankenphp/actions/runs/11649872124/job/32437911761

Additional context

Experimenting with self-hosted runners to get better build speeds for our project.

Are you willing to submit a PR?

Not sure how helpful I can be here, but if I can, I will.

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