playwright-community / playwright-go

Playwright for Go a browser automation library to control Chromium, Firefox and WebKit with a single API.
https://playwright-community.github.io/playwright-go/
MIT License
2.11k stars 157 forks source link

playwright install --with-deps fails on Debian 11 bullseye #335

Closed gliptak closed 6 months ago

gliptak commented 1 year ago
# cat /etc/os-release 
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
# go install github.com/playwright-community/playwright-go/cmd/playwright
go: downloading github.com/playwright-community/playwright-go v0.2000.1
# playwright install --with-deps
2023/03/18 00:11:45 Downloading driver to /root/.cache/ms-playwright-go/1.20.0-beta-1647057403000
2023/03/18 00:11:48 Downloaded driver successfully
Installing Ubuntu dependencies...
Get:1 http://deb.debian.org/debian bullseye InRelease [116 kB]
Get:2 http://deb.debian.org/debian-security bullseye-security InRelease [48.4 kB]
Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
Get:4 http://deb.debian.org/debian bullseye/main amd64 Packages [8183 kB]
Get:5 http://deb.debian.org/debian-security bullseye-security/main amd64 Packages [236 kB]
Get:6 http://deb.debian.org/debian bullseye-updates/main amd64 Packages [14.6 kB]
Fetched 8642 kB in 2s (3542 kB/s)                       
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
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 libjpeg-turbo8 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

E: Package 'ttf-ubuntu-font-family' has no installation candidate
E: Unable to locate package libenchant1c2a
E: Unable to locate package libicu66
E: Package 'libjpeg-turbo8' has no installation candidate
Failed to install browsers
Error: Installation process exited with code: 100
2023/03/18 00:11:53 could not run driver: exit status 1

330

bit-lang commented 1 year ago

does not work on latest Ubuntu 22.04 either. Missing some packages while installing

canstand commented 6 months ago

playwright-go now follows the latest version of upstream, so the supported operating systems are the same as upstream.

gliptak commented 6 months ago

corrected