You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow a user to pick the target platform when installing. apt has all the packages, here's a script that loops through the deps and checks if they can install:
Set an optional platform string when installing, like --with-deps ubuntu24.04, --with-deps 'ubuntu24.04-arm64', or --with-deps=debian12
Or provide a --platform option
Motivation
When you run playwright install it prints out:
BEWARE: your OS is not officially supported by Playwright; downloading fallback build for ubuntu20.04-x64.
My OS is based on 24.04 and, as expected, the fallback fails miserably:
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 'libglib2.0-0t64' instead of 'libglib2.0-0'
Note, selecting 'libgtk-3-0t64' instead of 'libgtk-3-0'
Note, selecting 'libxt6t64' instead of 'libxt6'
Note, selecting 'libpng16-16t64' instead of 'libpng16-16'
Note, selecting 'libevent-2.1-7t64' instead of 'libevent-2.1-7'
Note, selecting 'libfontconfig1' instead of 'libfontconfig'
Package ttf-ubuntu-font-family 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 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.
Package ttf-unifont 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
However the following packages replace it:
fonts-unifont
E: Package 'libasound2' has no installation candidate
E: Unable to locate package libx264-155
E: Unable to locate package libenchant1c2a
E: Unable to locate package libicu66
E: Unable to locate package libvpx6
E: Unable to locate package libwebp6
E: Package 'ttf-unifont' has no installation candidate
E: Package 'ttf-ubuntu-font-family' has no installation candidate
Failed to install browsers
Error: Installation process exited with code: 100
I know we're devs and we can't be trusted, but at least it'd be usable 🥴
The text was updated successfully, but these errors were encountered:
If you found this issue and just want to install the packages, add this function to the script:
function_install() {
apt-get install -y $@
}
Then change the line to use _install instead of _search and run the script with sudo. The playwright install --force command will still print out some warnings, but the commands I needed appear to work fine
Playwright Host validation warning:
╔══════════════════════════════════════════════════════╗
║ Host system is missing dependencies to run browsers. ║
║ Missing libraries: ║
║ libicudata.so.66 ║
║ libicui18n.so.66 ║
║ libicuuc.so.66 ║
║ libwebp.so.6 ║
║ libffi.so.7 ║
╚══════════════════════════════════════════════════════╝
🚀 Feature Request
Allow a user to pick the target platform when installing. apt has all the packages, here's a script that loops through the deps and checks if they can install:
And the result:
I got the list of deps from
packages/playwright-core/src/server/registry/nativeDeps.ts
Example
Set an optional platform string when installing, like
--with-deps ubuntu24.04
,--with-deps 'ubuntu24.04-arm64'
, or--with-deps=debian12
Or provide a
--platform
optionMotivation
When you run
playwright install
it prints out:My OS is based on 24.04 and, as expected, the fallback fails miserably:
I know we're devs and we can't be trusted, but at least it'd be usable 🥴
The text was updated successfully, but these errors were encountered: