Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Support Ubuntu 24.04 #30368

Open
Mister-Hope opened this issue Apr 15, 2024 · 13 comments
Open

[Feature]: Support Ubuntu 24.04 #30368

Mister-Hope opened this issue Apr 15, 2024 · 13 comments
Assignees
Labels

Comments

@Mister-Hope
Copy link

Mister-Hope commented Apr 15, 2024

🚀 Feature Request

Ubuntu 24 will be released in this month, and the beta version is already release in 12th. (See https://wiki.ubuntu.com/Releases)

Hope playweight can add support once it release

Motivation

Cuurently when running pnpm exec playwright install --with-deps on Ubuntu 24.04, errors are thrown

Hit:1 http://security.ubuntu.com/ubuntu noble-security InRelease
Get:2 http://archive.ubuntu.com/ubuntu noble InRelease [255 kB]
Get:3 http://archive.ubuntu.com/ubuntu noble-updates InRelease [89.7 kB]
Hit:4 http://archive.ubuntu.com/ubuntu noble-backports InRelease
Get:5 http://archive.ubuntu.com/ubuntu noble/main amd64 Packages [1404 kB]
Get:6 http://archive.ubuntu.com/ubuntu noble/universe amd64 Packages [15.2 MB]
Get:7 http://archive.ubuntu.com/ubuntu noble/universe Translation-en [6029 kB]
Get:8 http://archive.ubuntu.com/ubuntu noble/multiverse amd64 Packages [241 kB]                                                                                          
Fetched 23.2 MB in 7s (3262 kB/s)                                                                                                                                        
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'libatk-bridge2.0-0t64' instead of 'libatk-bridge2.0-0'
Note, selecting 'libatk1.0-0t64' instead of 'libatk1.0-0'
Note, selecting 'libatspi2.0-0t64' instead of 'libatspi2.0-0'
Note, selecting 'libcups2t64' instead of 'libcups2'
Note, selecting 'libgtk-3-0t64' instead of 'libgtk-3-0'
Note, selecting 'libpng16-16t64' instead of 'libpng16-16'
Note, selecting 'libevent-2.1-7t64' instead of 'libevent-2.1-7'
Package libasound2 is a virtual package provided by:
  liboss4-salsa-asound2 4.2-build2020-1ubuntu3
  libasound2t64 1.2.11-1build2 (= 1.2.11-1build2)
You should explicitly select one to install.

E: Package 'libasound2' has no installation candidate
E: Unable to locate package libicu70
E: Unable to locate package libffi7
E: Unable to locate package libx264-163
Failed to install browsers
Error: Installation process exited with code: 100
@mxschmitt
Copy link
Member

mxschmitt commented Apr 15, 2024

We are currently blocked by GitHub Actions, that they add support for it in their runner-images repository: actions/runner-images#9691.

@mxschmitt mxschmitt changed the title [Feature]: Support Ubuntu24 [Feature]: Support Ubuntu 24.04 Apr 15, 2024
@man-qa
Copy link

man-qa commented Apr 26, 2024

Same for me, stuck on ubuntu:22.04 for the moment

@ajrowland
Copy link

I can run on 24.04 via the UI, or just using the --project firefox flag.

@rotemgrim
Copy link

I'm stuck with ubuntu 24.04. any one has a workaround maybe?

@mwanago
Copy link

mwanago commented May 5, 2024

I'm stuck with ubuntu 24.04. any one has a workaround maybe?

I was able to run it on 23.10 with this advice:
#23296 (comment)

I had to compile libx264-163 from the source code though.

@wangfuxin8080
Copy link

hi @mxschmitt , do you know when the github issue will be fixed, I encouter the same error when running
apt-get update && apt-get upgrade -y && apt-get install -y libxtst6 libnss3 libcups2 libxss1 libxrandr2 libasound2 libatk1.0-0 libgtk-3-0

error:
Hit:1 http://archive.ubuntu.com/ubuntu noble InRelease
Hit:2 http://archive.ubuntu.com/ubuntu noble-updates InRelease
Hit:3 http://archive.ubuntu.com/ubuntu noble-backports InRelease
Hit:4 http://security.ubuntu.com/ubuntu noble-security InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
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: Package 'libasound2' has no installation candidate

@LostInDarkMath
Copy link

I have the same issue. Any news on this?

@WithMarcel
Copy link

I encountered a similar issue on Ubuntu 24.04, albeit with a wider range of missing packages: libicu70, libffi7, and libx264-163. To resolve this, I downloaded them from https://packages.ubuntu.com/, specifically for the 22.04 version. While this method isn't advisable due to its deviation from best practices, I managed to install them using apt install ./<package>.deb.

For libasound2, I initially attempted to install libasound2t64, only to discover it was already present. Subsequently, I checked liboss4-salsa-asound2, but refrained from installing it as it would entail the removal of over 70 other packages, which was not my intended outcome.

Proceeding with playwright install --with-deps, I encountered additional absent packages: libvpx7 and libevent-2.1-7. After obtaining and installing them, I was finally able to execute playwright install without encountering any further issues.

It's worth noting that while this workaround worked for me, I don't recommend it universally, nor can I guarantee its seamless functionality for all users. Probably as soon as Ubuntu 24.04 is officially supported, I would try to remove the above packages and reinstall playwright.

@Mister-Hope
Copy link
Author

Mister-Hope commented May 11, 2024

We are currently blocked by GitHub Actions, that they add support for it in their runner-images repository: actions/runner-images#9691.

It seems that there is still a time period before GitHub support 24.04. See here: actions/runner-images#9691 (comment)

It would be great that we can have Ubuntu 24.04 supported in playwright first, then adding a CI test once it supports.

Even a workaround is better than no support. For me, I feel hard when I am switching devices between office, home and my laptop. I have all upgraded them to 24.04, and I have to repeat the above solution 3 times.

@jamieredding
Copy link

jamieredding commented May 12, 2024

Hi @WithMarcel, I've made progress with the steps you provided so thank you very much.

I encountered exactly your issue when reaching this point:

For libasound2, I initially attempted to install libasound2t64, only to discover it was already present. Subsequently, I checked liboss4-salsa-asound2, but refrained from installing it as it would entail the removal of over 70 other packages, which was not my intended outcome.

However playwright install --with-deps still continues to complain about libasound2 not being installed, instead of encountering the next round of absent packages that you ran into here:

Proceeding with playwright install --with-deps, I encountered additional absent packages: libvpx7 and libevent-2.1-7. After obtaining and installing them, I was finally able to execute playwright install without encountering any further issues.

Further steps

I proceeded to instead run npx playwright install without --with-deps and I reached the libvpx7 and libevent-2.1.7 missing packages that are mentioned above.

I then installed them manually the same way as the earlier ones by visiting https://packages.ubuntu.com/.

After that point, npx playwright install ran without errors.

Running tests

I am able to run npx playwright test on the example tests generated when you add playwright to a project. 5/6 pass except [webkit] › example.spec.ts:10:5 › get started link fails when trying to click a link.

I'll proceed for now despite this as I'm at least able to test with chromium.

@MarcosIgnacioo
Copy link

wep ya lo arreglaron??

@NoahNim
Copy link

NoahNim commented May 29, 2024

Hello, it seems that the --install-deps command and playwright has issues getting the packages from what's in the default ubuntu.sources file in /etc/apt/sources.list.d

I updated my ubuntu.sources file in /etc/apt/sources.list.d to look like this:

Types: deb
URIs: http://us.archive.ubuntu.com/ubuntu/
Suites: noble noble-updates noble-backports
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

Types: deb
URIs: http://security.ubuntu.com/ubuntu/
Suites: noble-security
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

Types: deb
URIs: http://mirrors.kernel.org/ubuntu/
Suites: focal
Components: main universe
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

This got every dependency to install except libicu70 and libx264-163. Ubuntu 24.04 comes with libicu74 and libx264-164, so libicu70 and libx264-163 can't be installed unless a user reverts to those versions but I don't want to break other things by doing this.

@fawazahmed0
Copy link

ubuntu-24.04 is available now in GitHub Actions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests