Open stephanschielke opened 1 month ago
Same problem here
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
This issue needs an enhancement to the action, so that it differentiates according to the version of Debian / Ubuntu in use.
The Ubuntu 24.04 (Noble Numbat) Release Notes explain in the section "Year 2038 support for the armhf architecture":
Ubuntu 24.04 LTS solves the Year 2038 problem 2.0k that existed on armhf. More than a thousand packages have been updated to handle time using a 64-bit value rather than a 32-bit one, making it possible to handle times up to 292 billion years in the future.
That is the reason for the new name libasound2t64
with t64
at the end.
I hit this same issue on Ubuntu 24.04
and Ubuntu 24.10
. I recently updated my C# project to DotNet 9.0 which currently requires 24.10 so if I want to use the same build machine for that project I HAVE TO run 24.10.
For me the work around was to set install-dependencies: false
and manually install the dependencies on the machine. You could probably also run this as a build step before setup-chrome.
I found this list of dependencies from some other issues about running chrome on 24.10 and a little trial and error. I'm not 100% sure that all of these dependencies are required, but adding them made it work. So I'm happy for now. Hope this helps someone else.
sudo apt install -y --no-install-recommends \
libnss3 \
libdbus-1-3 \
libatk1.0-0 \
libasound2t64 \
libxrandr2 \
libxkbcommon-dev \
libxfixes3 \
libxcomposite1 \
libxdamage1 \
libgbm-dev \
libatk-bridge2.0-0 \
binutils \
libglib2.0-0 \
libgdk-pixbuf2.0-0 \
libgtk-3-0 \
libnss3-dev \
libxss-dev \
xvfb \
fonts-liberation \
libu2f-udev \
xdg-utils
fails with:
Can be hotfixed by pinning the ubuntu version to
ubuntu-22.04