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 22.04 #13738

Closed
10 tasks done
mxschmitt opened this issue Apr 25, 2022 · 12 comments
Closed
10 tasks done

[Feature] Support Ubuntu 22.04 #13738

mxschmitt opened this issue Apr 25, 2022 · 12 comments
Assignees

Comments

@mxschmitt
Copy link
Member

mxschmitt commented Apr 25, 2022

Blocked by:

Requires the following changes so far:

@mxschmitt mxschmitt self-assigned this Apr 25, 2022
@jgilbert2017
Copy link

fyi- ubuntu 22.x install-deps fails. it seems as some packages were renamed:

ttf-unifont -> fonts-unifont
ttf-ubuntu-font-family -> fonts-freefont-ttf

that's as far as i get before the script aborts.

@ddelange
Copy link

ddelange commented May 12, 2022

For the failures on jammy (22.04LTS):

 > [final 5/7] RUN playwright install --with-deps webkit
...
#15 7.794 E: Unable to locate package libenchant1c2a
#15 7.794 E: Unable to locate package libicu66
#15 7.794 E: Unable to locate package libvpx6
#15 7.794 E: Unable to locate package libwebp6
#15 7.794 E: Package 'ttf-unifont' has no installation candidate
#15 7.794 E: Package 'ttf-ubuntu-font-family' has no installation candidate

I did some digging:

libenchant1c2a > libenchant-2-2
libicu66 > libicu70
libvpx6 > libvpx7
libwebp6 > libwebp7
ttf-unifont > fonts-unifont
ttf-ubuntu-font-family > fonts-ubuntu *discrepancy from @jgilbert2017, matched here on package description

@mxschmitt
Copy link
Member Author

Thats done! For further issues, please file new issues on GitHub. It gets released in 1.23.

@mwxxhdb
Copy link

mwxxhdb commented Jun 20, 2022

When will version 1.23 be released? Or is there a way to run playwright on Ubuntu 22.04 ahead of time? I can't wait to try out such a great framework. 🙂

@mxschmitt
Copy link
Member Author

When will version 1.23 be released? Or is there a way to run playwright on Ubuntu 22.04 ahead of time? I can't wait to try out such a great framework. 🙂

npm i @playwright/test@next

or

npm i playwright@next

We'll release in 1-2 weeks I guess.

kodiakhq bot pushed a commit to vercel/next.js that referenced this issue Dec 7, 2022
## Bug

Test(Production) CI fails with error

```
Package libicu66 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-unifont' has no installation candidate
E: Package 'ttf-ubuntu-font-family' has no installation candidate
E: Unable to locate package libenchant1c2a
E: Package 'libicu66' has no installation candidate
E: Unable to locate package libvpx6
E: Unable to locate package libwebp6
Failed to install browser dependencies
```

This is due to new release for the runner image (actions/runner-images#6399) now sets ubuntu 22.04 as latest, but playwright have release to support it (microsoft/playwright#13738) but @replayio/playwright seems not picked it up yet (https://github.com/replayio/replay-cli/blob/main/packages/playwright/package.json#L23) 

PR tries to pin to known working image (20.04) until dependencies can support new image gracefully.

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have a helpful link attached, see [`contributing.md`](https://github.com/vercel/next.js/blob/canary/contributing.md)

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] [e2e](https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs) tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have a helpful link attached, see [`contributing.md`](https://github.com/vercel/next.js/blob/canary/contributing.md)

## Documentation / Examples

- [ ] Make sure the linting passes by running `pnpm build && pnpm lint`
- [ ] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
@sdwvit
Copy link

sdwvit commented Feb 11, 2023

If you are like me googling for your error, here is what helped me (I am on 22.04.1 lts based kde neon which playwright reports as unsupported OS):
#11122 (comment)

@AnthonyPhan
Copy link

I'm still receiving the following errors when running npx playwright install --with-deps inside a Github action on Ubuntu-latest (22.04.2).

Run npx playwright install --with-deps
  npx playwright install --with-deps
  shell: /usr/bin/bash -e {0}
Installing dependencies...
Switching to root user to install dependencies...
Hit:1 http://azure.archive.ubuntu.com/ubuntu jammy InRelease
Get:[2](https://github.com/AnthonyPhan/StaticAppCiTest/actions/runs/4460629175/jobs/7833935853?pr=11#step:5:2) http://azure.archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
Get:[3](https://github.com/AnthonyPhan/StaticAppCiTest/actions/runs/4460629175/jobs/7833935853?pr=11#step:5:3) http://azure.archive.ubuntu.com/ubuntu jammy-backports InRelease [107 kB]
Get:[4](https://github.com/AnthonyPhan/StaticAppCiTest/actions/runs/4460629175/jobs/7833935853?pr=11#step:5:5) http://azure.archive.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:[5](https://github.com/AnthonyPhan/StaticAppCiTest/actions/runs/4460629175/jobs/7833935853?pr=11#step:5:6) https://packages.microsoft.com/ubuntu/22.04/prod jammy InRelease [30[6](https://github.com/AnthonyPhan/StaticAppCiTest/actions/runs/4460629175/jobs/7833935853?pr=11#step:5:7)5 B]
Get:6 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [948 kB]
Get:[7](https://github.com/AnthonyPhan/StaticAppCiTest/actions/runs/4460629175/jobs/7833935853?pr=11#step:5:8) http://azure.archive.ubuntu.com/ubuntu jammy-updates/main Translation-en [205 kB]
Get:[8](https://github.com/AnthonyPhan/StaticAppCiTest/actions/runs/4460629175/jobs/7833935853?pr=11#step:5:9) http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 c-n-f Metadata [13.7 kB]
Get:[9](https://github.com/AnthonyPhan/StaticAppCiTest/actions/runs/4460629175/jobs/7833935853?pr=11#step:5:10) http://azure.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [684 kB]
Get:[10](https://github.com/AnthonyPhan/StaticAppCiTest/actions/runs/4460629175/jobs/7833935853?pr=11#step:5:11) http://azure.archive.ubuntu.com/ubuntu jammy-updates/restricted Translation-en [107 kB]
Get:11 http://azure.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [890 kB]
Get:12 http://azure.archive.ubuntu.com/ubuntu jammy-updates/universe Translation-en [177 kB]
Get:13 http://azure.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 c-n-f Metadata [18.1 kB]
Get:14 http://azure.archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages [24.1 kB]
Get:15 http://azure.archive.ubuntu.com/ubuntu jammy-updates/multiverse Translation-en [6312 B]
Hit:16 https://ppa.launchpadcontent.net/ubuntu-toolchain-r/test/ubuntu jammy InRelease
Get:17 http://azure.archive.ubuntu.com/ubuntu jammy-security/main amd64 Packages [692 kB]
Get:18 http://azure.archive.ubuntu.com/ubuntu jammy-security/main Translation-en [142 kB]
Get:19 http://azure.archive.ubuntu.com/ubuntu jammy-security/main amd64 c-n-f Metadata [8832 B]
Get:20 http://azure.archive.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [642 kB]
Get:21 http://azure.archive.ubuntu.com/ubuntu jammy-security/restricted Translation-en [100 kB]
Get:22 http://azure.archive.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [710 kB]
Get:23 http://azure.archive.ubuntu.com/ubuntu jammy-security/universe Translation-en [115 kB]
Get:24 http://azure.archive.ubuntu.com/ubuntu jammy-security/universe amd64 c-n-f Metadata [13.8 kB]
Get:25 http://azure.archive.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [19.4 kB]
Get:26 http://azure.archive.ubuntu.com/ubuntu jammy-security/multiverse Translation-en [4068 B]
Get:27 https://packages.microsoft.com/ubuntu/22.04/prod jammy/main amd64 Packages [55.2 kB]
Get:28 https://packages.microsoft.com/ubuntu/22.04/prod jammy/main arm64 Packages [[11](https://github.com/AnthonyPhan/StaticAppCiTest/actions/runs/4460629175/jobs/7833935853?pr=11#step:5:12).7 kB]
Get:29 https://packages.microsoft.com/ubuntu/[22](https://github.com/AnthonyPhan/StaticAppCiTest/actions/runs/4460629175/jobs/7833935853?pr=11#step:5:23).04/prod jammy/main armhf Packages [63[24](https://github.com/AnthonyPhan/StaticAppCiTest/actions/runs/4460629175/jobs/7833935853?pr=11#step:5:25) B]
Fetched 59[30](https://github.com/AnthonyPhan/StaticAppCiTest/actions/runs/4460629175/jobs/7833935853?pr=11#step:5:31) kB in 1s (4750 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
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 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

Package libicu66 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-unifont' has no installation candidate
E: Package 'ttf-ubuntu-font-family' has no installation candidate
E: Unable to locate package libenchant1c2a
E: Package 'libicu66' has no installation candidate
E: Unable to locate package libvpx6
E: Unable to locate package libwebp6
Failed to install browsers
Error: Installation process exited with code: 100
Error: Process completed with exit code 1.

@mxschmitt
Copy link
Member Author

I'm still receiving the following errors when running npx playwright install --with-deps inside a Github action on Ubuntu-latest (22.04.2).


Run npx playwright install --with-deps

  npx playwright install --with-deps

  shell: /usr/bin/bash -e {0}

Installing dependencies...

Switching to root user to install dependencies...

Hit:1 http://azure.archive.ubuntu.com/ubuntu jammy InRelease

Get:[2](https://github.com/AnthonyPhan/StaticAppCiTest/actions/runs/4460629175/jobs/7833935853?pr=11#step:5:2) http://azure.archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]

Get:[3](https://github.com/AnthonyPhan/StaticAppCiTest/actions/runs/4460629175/jobs/7833935853?pr=11#step:5:3) http://azure.archive.ubuntu.com/ubuntu jammy-backports InRelease [107 kB]

Get:[4](https://github.com/AnthonyPhan/StaticAppCiTest/actions/runs/4460629175/jobs/7833935853?pr=11#step:5:5) http://azure.archive.ubuntu.com/ubuntu jammy-security InRelease [110 kB]

Get:[5](https://github.com/AnthonyPhan/StaticAppCiTest/actions/runs/4460629175/jobs/7833935853?pr=11#step:5:6) https://packages.microsoft.com/ubuntu/22.04/prod jammy InRelease [30[6](https://github.com/AnthonyPhan/StaticAppCiTest/actions/runs/4460629175/jobs/7833935853?pr=11#step:5:7)5 B]

Get:6 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [948 kB]

Get:[7](https://github.com/AnthonyPhan/StaticAppCiTest/actions/runs/4460629175/jobs/7833935853?pr=11#step:5:8) http://azure.archive.ubuntu.com/ubuntu jammy-updates/main Translation-en [205 kB]

Get:[8](https://github.com/AnthonyPhan/StaticAppCiTest/actions/runs/4460629175/jobs/7833935853?pr=11#step:5:9) http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 c-n-f Metadata [13.7 kB]

Get:[9](https://github.com/AnthonyPhan/StaticAppCiTest/actions/runs/4460629175/jobs/7833935853?pr=11#step:5:10) http://azure.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [684 kB]

Get:[10](https://github.com/AnthonyPhan/StaticAppCiTest/actions/runs/4460629175/jobs/7833935853?pr=11#step:5:11) http://azure.archive.ubuntu.com/ubuntu jammy-updates/restricted Translation-en [107 kB]

Get:11 http://azure.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [890 kB]

Get:12 http://azure.archive.ubuntu.com/ubuntu jammy-updates/universe Translation-en [177 kB]

Get:13 http://azure.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 c-n-f Metadata [18.1 kB]

Get:14 http://azure.archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages [24.1 kB]

Get:15 http://azure.archive.ubuntu.com/ubuntu jammy-updates/multiverse Translation-en [6312 B]

Hit:16 https://ppa.launchpadcontent.net/ubuntu-toolchain-r/test/ubuntu jammy InRelease

Get:17 http://azure.archive.ubuntu.com/ubuntu jammy-security/main amd64 Packages [692 kB]

Get:18 http://azure.archive.ubuntu.com/ubuntu jammy-security/main Translation-en [142 kB]

Get:19 http://azure.archive.ubuntu.com/ubuntu jammy-security/main amd64 c-n-f Metadata [8832 B]

Get:20 http://azure.archive.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [642 kB]

Get:21 http://azure.archive.ubuntu.com/ubuntu jammy-security/restricted Translation-en [100 kB]

Get:22 http://azure.archive.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [710 kB]

Get:23 http://azure.archive.ubuntu.com/ubuntu jammy-security/universe Translation-en [115 kB]

Get:24 http://azure.archive.ubuntu.com/ubuntu jammy-security/universe amd64 c-n-f Metadata [13.8 kB]

Get:25 http://azure.archive.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [19.4 kB]

Get:26 http://azure.archive.ubuntu.com/ubuntu jammy-security/multiverse Translation-en [4068 B]

Get:27 https://packages.microsoft.com/ubuntu/22.04/prod jammy/main amd64 Packages [55.2 kB]

Get:28 https://packages.microsoft.com/ubuntu/22.04/prod jammy/main arm64 Packages [[11](https://github.com/AnthonyPhan/StaticAppCiTest/actions/runs/4460629175/jobs/7833935853?pr=11#step:5:12).7 kB]

Get:29 https://packages.microsoft.com/ubuntu/[22](https://github.com/AnthonyPhan/StaticAppCiTest/actions/runs/4460629175/jobs/7833935853?pr=11#step:5:23).04/prod jammy/main armhf Packages [63[24](https://github.com/AnthonyPhan/StaticAppCiTest/actions/runs/4460629175/jobs/7833935853?pr=11#step:5:25) B]

Fetched 59[30](https://github.com/AnthonyPhan/StaticAppCiTest/actions/runs/4460629175/jobs/7833935853?pr=11#step:5:31) kB in 1s (4750 kB/s)

Reading package lists...

Reading package lists...

Building dependency tree...

Reading state information...

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 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



Package libicu66 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-unifont' has no installation candidate

E: Package 'ttf-ubuntu-font-family' has no installation candidate

E: Unable to locate package libenchant1c2a

E: Package 'libicu66' has no installation candidate

E: Unable to locate package libvpx6

E: Unable to locate package libwebp6

Failed to install browsers

Error: Installation process exited with code: 100

Error: Process completed with exit code 1.

Try to upgrade Playwright.

@AnthonyPhan
Copy link

Im running playwright in a Github action that does not have a pre-existing install of PlayWright (see workflow example below).

Doesnt npx playwright install --with-deps install the latest version?

end_to_end_test:
    name: End to End Test
    # Runs on an ubuntu runner
    needs: [build_and_deploy_job]
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v3
    - uses: actions/setup-node@v3
    - name: Install dependencies
      run: npm ci
    - name: Install Playwright
      run: npx playwright@1.31.2 install --with-deps
    - name: Build production build
      run: npm run build
    - name: Run your tests
      run: npm run playwright_test

@AnthonyPhan
Copy link

apologies, it looks like the issue was I had playwright defined in my package.json as well so when running playwright it was using the old version in there that does not support the the latest ubuntu

@aghasemi
Copy link

Hello,

Now with Ubuntu 24.04 around the corner, may I ask please if there is already a plan or roadmap for when we can have it in a Playwright workflow?
Many thanks

@AvantGov
Copy link

I was still hitting a similar issue above, where the installation fails shortly after what appears to be the output of a sudo apt upgrade from the sudo npx install playwright --with-deps running. Installation failed: exited with error code 1. Found that removing the --with-deps flag allowed browsers to install correctly. Would it be possible to update the documentation to reflect this use case?

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

9 participants