browser-actions / setup-chrome

Set up your GitHub Actions workflow with a specific version of chromium
https://github.com/marketplace/actions/setup-chrome
MIT License
152 stars 63 forks source link

`libasound2` has no installation candidate on `ubuntu-latest` or `ubuntu-24.04` #618

Open stephanschielke opened 1 week ago

stephanschielke commented 1 week ago
jobs:
  ui-test:
    runs-on: ubuntu-24.04
    steps:
      - name: "Install Chrome Browser"
        uses: browser-actions/setup-chrome@v1
        with:
          chrome-version: latest
          install-dependencies: true

fails with:

/usr/bin/sudo apt-get install --yes --no-install-recommends libglib2.0-0 libgconf-2-4 libatk1.0-0 libatk-bridge2.0-0 libgdk-pixbuf2.0-0 libgtk-3-0 libgbm-dev libnss3-dev libxss-dev libasound2 xvfb fonts-liberation libu2f-udev xdg-utils
Reading package lists...
Building dependency tree...
Reading state information...
Package libasound2 is a virtual package provided by:
  liboss4-salsa-asound2 4.2-build2020-1ubuntu3
  libasound2t64 1.2.11-1build2 (= 1.2.11-1build2)

E: Unable to locate package libgconf-2-4
E: Package 'libasound2' has no installation candidate
Error: The process '/usr/bin/sudo' failed with exit code 100

Can be hotfixed by pinning the ubuntu version to ubuntu-22.04

chloe5685 commented 1 week ago

Same problem here

lykmapipo commented 1 week ago

Logs:

Operating System
  Ubuntu
  24.04.1
  LTS

Runner Image
  Image: ubuntu-24.04
  Version: 20241006.1.0

Run browser-actions/setup-chrome@v1
  with:
    chrome-version: 130.0.6690.0
    install-dependencies: true
    install-chromedriver: true
    no-sudo: false

Fails with:

Reading package lists...
/usr/bin/sudo apt-get install --yes --no-install-recommends libglib2.0-0 libgconf-2-4 libatk1.0-0 libatk-bridge2.0-0 libgdk-pixbuf2.0-0 libgtk-3-0 libgbm-dev libnss3-dev libxss-dev libasound2 xvfb fonts-liberation libu2f-udev xdg-utils
Reading package lists...
Building dependency tree...
Reading state information...
Package libasound2 is a virtual package provided by:
  liboss4-salsa-asound2 4.2-build2020-1ubuntu3
  libasound2t64 1.2.11-1build2 (= 1.2.11-1build2)

E: Unable to locate package libgconf-2-4
E: Package 'libasound2' has no installation candidate
Error: The process '/usr/bin/sudo' failed with exit code 100