Skip to content

[Feature] Installation on ChromeOS #16911

Description

@vogler

I tried to setup and run Playwright (1.20.1) on my Chromebook, but the process was a bit bumpy:

$ npx playwright install chromium
$ node epic.js
║ Host system is missing a few dependencies to run browsers. ║
║ Please install them with the following command:            ║
║                                                            ║
║     sudo npx playwright install-deps
$ sudo npx playwright install-deps
Installing Ubuntu dependencies...
Switching to root user to install dependencies..
...
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 browser dependencies
Error: Installation process exited with code: 100
$ sudo npx playwright install-deps chromium --dry-run
sudo -- sh -c "apt-get update&& apt-get install -y --no-install-recommends fonts-liberation libasound2 libatk-bridge2.0-0 libatk1.0-0 libatspi2.0-0 libcairo2 libcups2 libdbus-1-3 libdrm2 libegl1 libgbm1 libglib2.0-0 libgtk-3-0 libnspr4 libnss3 libpango-1.0-0 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxdamage1 libxext6 libxfixes3 libxrandr2 libxshmfence1 xvfb fonts-noto-color-emoji ttf-unifont libfontconfig libfreetype6 xfonts-cyrillic xfonts-scalable fonts-ipafont-gothic fonts-wqy-zenhei fonts-tlwg-loma-otf ttf-ubuntu-font-family"

I then manually installed all those packages except ttf-ubuntu-font-family and everything works now.
I don't know why it detected the OS as Ubuntu. Here it also lists dependencies for debian11:

Linux container in ChromeOS:

$ lsb_release -a
...
Description:    Debian GNU/Linux 11 (bullseye)
$ uname -a                                     
Linux penguin 5.10.120-16471-g167ad2e5dcba #1 SMP PREEMPT Sun Aug 14 18:22:09 PDT 2022 x86_64 GNU/Linux
$ uname -m                                                                                           
x86_64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions