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

[BUG] Unable to install in ubuntu 23.04 due to missing packages #23296

Closed
1 task done
scarf005 opened this issue May 26, 2023 · 7 comments
Closed
1 task done

[BUG] Unable to install in ubuntu 23.04 due to missing packages #23296

scarf005 opened this issue May 26, 2023 · 7 comments

Comments

@scarf005
Copy link

scarf005 commented May 26, 2023

System info

  • Playwright Version: 1.34.3
  • Operating System: Ubuntu 23.04
  • Browser: Firefox

Source code

  • I provided exact source code that allows reproducing the issue locally.

Steps
(https://playwright.dev/docs/intro#installing-playwright)

  • run LANG=c pnpm exec playwright install-deps

Expected

dependencies are installed

Actual

following packages are missing: libicu70, libffi7, libx264-163

LANG=c pnpm exec playwright install-deps                                                                                                                 30.3s  2023년 05월 26일 (금) 오전 10시 50분 21초Installing dependencies...
Switching to root user to install dependencies...
Hit:1 https://download.docker.com/linux/ubuntu kinetic InRelease
Hit:2 http://packages.microsoft.com/repos/code stable InRelease                                                                                                                                                                                      
Get:3 https://cli.github.com/packages stable InRelease [3917 B]                                                                                                                           
Hit:4 https://dl.winehq.org/wine-builds/ubuntu kinetic InRelease                                                                                                                                            
Hit:5 http://security.ubuntu.com/ubuntu lunar-security InRelease                                                                                                                                            
Hit:6 https://dl.google.com/linux/chrome/deb stable InRelease                                                                                   
Hit:7 http://kr.archive.ubuntu.com/ubuntu lunar InRelease           
Hit:8 http://ppa.launchpad.net/kxstudio-debian/libs/ubuntu focal InRelease
Hit:9 http://kr.archive.ubuntu.com/ubuntu lunar-updates InRelease          
Hit:10 http://kr.archive.ubuntu.com/ubuntu lunar-backports InRelease       
Hit:11 http://ppa.launchpad.net/kxstudio-debian/plugins/ubuntu focal InRelease
Hit:12 http://ppa.launchpad.net/kxstudio-debian/apps/ubuntu focal InRelease
Hit:13 http://ppa.launchpad.net/kxstudio-debian/kxstudio/ubuntu focal InRelease
Hit:14 https://repo.steampowered.com/steam stable InRelease                
Hit:15 http://ppa.launchpad.net/kxstudio-debian/libs/ubuntu bionic InRelease
Hit:16 http://ppa.launchpad.net/kxstudio-debian/music/ubuntu bionic InRelease
Hit:17 http://ppa.launchpad.net/kxstudio-debian/plugins/ubuntu bionic InRelease
Hit:18 http://ppa.launchpad.net/kxstudio-debian/apps/ubuntu bionic InRelease
Hit:19 http://ppa.launchpad.net/kxstudio-debian/kxstudio/ubuntu bionic InRelease
Hit:20 https://ppa.launchpadcontent.net/cappelikan/ppa/ubuntu lunar InRelease
Hit:21 https://ppa.launchpadcontent.net/kubuntu-ppa/beta/ubuntu lunar InRelease
Hit:22 https://ppa.launchpadcontent.net/libreoffice/ppa/ubuntu lunar InRelease                                                                                                                                                                              
Fetched 3917 B in 7s (537 B/s)                                                                                                                                                                                                                              
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package libicu70
E: Unable to locate package libffi7
E: Unable to locate package libx264-163
Failed to install browser dependencies
Error: Installation process exited with code: 100
@ltsuda
Copy link
Contributor

ltsuda commented May 26, 2023

Usually Playwright's team supports Ubuntu LTS versions, which 23.04 is not, so they might fix this issue as best effort but it might not happen. Let's wait to see their answer.

https://ubuntu.com/about/release-cycle

https://playwright.dev/docs/troubleshooting#linux

@reubenfirmin
Copy link

reubenfirmin commented May 28, 2023

a) Developers are probably less likely than the average user to stick with LTS

b) If you don't want to support changing OS dependencies, better to provide a flatpak or (at worst) snap instead

libicu and libx264 both have names that change regularly, since they are packaging something upstream which has a changing version. I don't agree with their rationale, but to future proof there should likely be a dynamic apt-cache search for the base name.

libffi7 was replaced by libffi8 starting in 22.04 (which had both); should switch for future proofing anyway.

@mxschmitt
Copy link
Member

Playwright only supports Ubuntu LTS versions like @ltsuda wrote, if you want to stick with non-LTS versions, we recommend Docker. The reasoning is that compiling browsers, especially WebKit is highly coupled to the OS dependencies, which are dynamically linked. Thanks for your understanding!

@hacknlove
Copy link

You can do the following:

  1. go to https://packages.ubuntu.com
  2. search those packages
  3. download the version for your architecture
  4. Install them
  5. run npx playwright install-deps again

It seems it's working so far

@ndabAP
Copy link

ndabAP commented Mar 2, 2024

In my case, these packages where missing on my Ubuntu 23.04:

E: Unable to locate package libicu70
E: Unable to locate package libffi7
E: Unable to locate package libx264-163

I was able to download all of them via https://packages.ubuntu.com as suggested by @hacknlove, thanks!

@mwanago
Copy link

mwanago commented Apr 14, 2024

@mxschmitt Will Playwright support Ubuntu 24.04, which is going to be released soon?

@mxschmitt
Copy link
Member

@mwanago yes, we will add support for it as soon as its available via GitHub Actions.

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

No branches or pull requests

7 participants