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]: Failed to install browsers on ubuntu 22.04 #30503

Closed
ENEMBI opened this issue Apr 24, 2024 · 12 comments
Closed

[Bug]: Failed to install browsers on ubuntu 22.04 #30503

ENEMBI opened this issue Apr 24, 2024 · 12 comments

Comments

@ENEMBI
Copy link

ENEMBI commented Apr 24, 2024

Version

1.43.1

Steps to reproduce

Browser installation process stopped working on CI. Tried multiple versions and repos
Error happening with next command:
npx playwright install

Expected behavior

I expect browsers to be installed

Actual behavior

Installing dependencies...
Switching to root user to install dependencies...
Get:1 https://packages.microsoft.com/ubuntu/22.04/prod jammy InRelease
Err:1 https://packages.microsoft.com/ubuntu/22.04/prod jammy InRelease
  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Get:2 file:/etc/apt/apt-mirrors.txt Mirrorlist [142 B]
Hit:3 http://azure.archive.ubuntu.com/ubuntu jammy InRelease
Get:4 http://azure.archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
Get:5 http://azure.archive.ubuntu.com/ubuntu jammy-backports InRelease [109 kB]
Get:6 http://azure.archive.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Hit:7 https://ppa.launchpadcontent.net/ubuntu-toolchain-r/test/ubuntu jammy InRelease
Get:8 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [1610 kB]
Get:9 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main Translation-en [303 kB]
Get:10 http://azure.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [1830 kB]
Get:11 http://azure.archive.ubuntu.com/ubuntu jammy-updates/restricted Translation-en [311 kB]
Get:12 http://azure.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1070 kB]
Get:13 http://azure.archive.ubuntu.com/ubuntu jammy-updates/universe Translation-en [244 kB]
Get:14 http://azure.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [27.2 kB]
Get:15 http://azure.archive.ubuntu.com/ubuntu jammy-backports/universe Translation-en [16.2 kB]
Get:16 http://azure.archive.ubuntu.com/ubuntu jammy-security/main amd64 Packages [1[39](https://github.com/winn-ai/playwright-automation/actions/runs/8815247385/job/24196797757#step:6:40)2 kB]
Get:17 http://azure.archive.ubuntu.com/ubuntu jammy-security/main Translation-en [243 kB]
Get:18 http://azure.archive.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [1768 kB]
Get:19 http://azure.archive.ubuntu.com/ubuntu jammy-security/restricted Translation-en [299 kB]
Get:20 http://azure.archive.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [848 kB]
Get:21 http://azure.archive.ubuntu.com/ubuntu jammy-security/universe Translation-en [163 kB]
Reading package lists...
E: Failed to fetch https://packages.microsoft.com/ubuntu/22.04/prod/dists/jammy/InRelease  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
E: The repository 'https://packages.microsoft.com/ubuntu/22.04/prod jammy InRelease' is no longer signed.
Failed to install browsers
Error: Installation process exited with code: 100
Installing dependencies...
Switching to root user to install dependencies...
Get:1 file:/etc/apt/apt-mirrors.txt Mirrorlist [1[42](https://github.com/winn-ai/playwright-automation/actions/runs/8815247385/job/24196797757#step:6:43) B]
Get:6 https://packages.microsoft.com/ubuntu/22.04/prod jammy InRelease
Err:6 https://packages.microsoft.com/ubuntu/22.04/prod jammy InRelease
  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Hit:2 http://azure.archive.ubuntu.com/ubuntu jammy InRelease
Hit:3 http://azure.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:4 http://azure.archive.ubuntu.com/ubuntu jammy-backports InRelease
Hit:5 http://azure.archive.ubuntu.com/ubuntu jammy-security InRelease
Hit:7 https://ppa.launchpadcontent.net/ubuntu-toolchain-r/test/ubuntu jammy InRelease
Reading package lists...
E: Failed to fetch https://packages.microsoft.com/ubuntu/22.04/prod/dists/jammy/InRelease  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
E: The repository 'https://packages.microsoft.com/ubuntu/22.04/prod jammy InRelease' is no longer signed.
Failed to install browsers
Error: Installation process exited with code: 100

Additional context

No response

Environment

Using Github ubuntu-latest machine
@rombrom
Copy link

rombrom commented Apr 24, 2024

Same issue here. Looks like an issue with the packages.microsoft.com registry and not necessarily related to Playwright. Since Playwright is a Microsoft product here's to hoping they can escalate this issue internally.

@johnnyreilly
Copy link

johnnyreilly commented Apr 24, 2024

Same issue here - we're running in Azure DevOps Pipelines and seeing this:

> npx playwright install --with-deps

Installing dependencies...
Switching to root user to install dependencies...
Get:1 https://packages.microsoft.com/ubuntu/22.04/prod jammy InRelease
Hit:7 https://ppa.launchpadcontent.net/ubuntu-toolchain-r/test/ubuntu jammy InRelease
Hit:3 http://azure.archive.ubuntu.com/ubuntu jammy InRelease
Get:4 http://azure.archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
Get:5 http://azure.archive.ubuntu.com/ubuntu jammy-backports InRelease [109 kB]
Get:6 http://azure.archive.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:8 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [1610 kB]
Get:9 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main Translation-en [303 kB]
Get:10 http://azure.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [1830 kB]
Get:11 http://azure.archive.ubuntu.com/ubuntu jammy-updates/restricted Translation-en [311 kB]
Get:12 http://azure.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1070 kB]
Get:13 http://azure.archive.ubuntu.com/ubuntu jammy-updates/universe Translation-en [244 kB]
Get:14 http://azure.archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [27.2 kB]
Get:15 http://azure.archive.ubuntu.com/ubuntu jammy-backports/universe Translation-en [16.2 kB]
Get:16 http://azure.archive.ubuntu.com/ubuntu jammy-security/main amd64 Packages [1392 kB]
Get:17 http://azure.archive.ubuntu.com/ubuntu jammy-security/main Translation-en [243 kB]
Get:18 http://azure.archive.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [1768 kB]
Get:19 http://azure.archive.ubuntu.com/ubuntu jammy-security/restricted Translation-en [299 kB]
Get:20 http://azure.archive.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [848 kB]
Get:21 http://azure.archive.ubuntu.com/ubuntu jammy-security/universe Translation-en [163 kB]
Reading package lists...
E: Failed to fetch https://packages.microsoft.com/ubuntu/22.04/prod/dists/jammy/InRelease  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
E: The repository 'https://packages.microsoft.com/ubuntu/22.04/prod jammy InRelease' is no longer signed.
Failed to install browsers
Error: Installation process exited with code: 100
npm ERR! code 1
npm ERR! path /home/vsts/work/1/s/src/FrontEnd
npm ERR! command failed
npm ERR! command sh -c npx playwright install --with-deps

@johanneskares
Copy link

Yeah, same issue here, my Build Pipeline is failing since I can't install playwright on GitHub Actions anymore.

@arminsalcin
Copy link

+1

@rhardjo
Copy link

rhardjo commented Apr 24, 2024

You can apply the workaround mentioned here actions/runner-images#9733 (comment)

add this line before running playwright install sudo rm /etc/apt/sources.list.d/microsoft-prod.list

run: |
  sudo rm /etc/apt/sources.list.d/microsoft-prod.list
  npx playwright install --with-deps

Edit: Seems fixed so the workaround shouldn't be needed anymore

@mahtabnejad90
Copy link
Contributor

same issue here

@alexander-tsaplev-cko
Copy link

You can apply the workaround mentioned here actions/runner-images#9733 (comment)

add this line before running playwright install sudo rm /etc/apt/sources.list.d/microsoft-prod.list

run: |
  sudo rm /etc/apt/sources.list.d/microsoft-prod.list
  npx playwright install --with-deps

Helped me as well, thanks!

@mahtabnejad90
Copy link
Contributor

You can apply the workaround mentioned here actions/runner-images#9733 (comment)

add this line before running playwright install sudo rm /etc/apt/sources.list.d/microsoft-prod.list

run: |
  sudo rm /etc/apt/sources.list.d/microsoft-prod.list
  npx playwright install --with-deps

yeah this workaround works.

@shipplix
Copy link

shipplix commented Apr 24, 2024

Crossposting this related issue discussion: https://github.com/orgs/community/discussions/120966

@SchulteMarkus
Copy link

The problem has disappeared for us.

@pavelfeldman
Copy link
Member

This was a registry outage that is fixed now: microsoft/linux-package-repositories#130 (comment)

@pavelfeldman
Copy link
Member

Closing as per above.

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