question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Error: Failed to install msedge

See original GitHub issue

Context:

  • Playwright Version: ^1.17.1
  • Operating System: Linux
  • Node.js version: v16.13.1
  • Browser: Edge
  • Extra: docker container based on official PW image

Code Snippet

FROM mcr.microsoft.com/playwright:bionic
RUN mkdir e2e
WORKDIR /e2e
COPY . .
RUN npm ci

Build container:

docker build -t ffui/e2e .
docker run -e USER_EMAIL -e USER_PASSWORD -it --rm --ipc=host ffui/e2e

Run inside container:

npx playwright install msedge

Describe the bug

Edge is not installed.

root@b4774535b186:/e2e# npx playwright install msedge
++ arch
+ [[ x86_64 == \a\a\r\c\h\6\4 ]]
+ is_user_root
+ '[' 0 -eq 0 ']'
+ maybesudo=
+ dpkg --get-selections
+ grep -q '^microsoft-edge-stable[[:space:]]*install$'
+ command -v curl
+ curl https://packages.microsoft.com/keys/microsoft.asc
+ gpg --dearmor
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   983  100   983    0     0   1201      0 --:--:-- --:--:-- --:--:--  1200
+ install -o root -g root -m 644 /tmp/microsoft.gpg /etc/apt/trusted.gpg.d/
+ sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/edge stable main" > /etc/apt/sources.list.d/microsoft-edge-stable.list'
+ rm /tmp/microsoft.gpg
+ apt-get update
Get:1 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]                                                                                
Get:3 https://packages.microsoft.com/repos/edge stable InRelease [6817 B]                                                                                  
Err:3 https://packages.microsoft.com/repos/edge stable InRelease                                                                                        
  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Get:4 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]                                                                               
Get:5 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]                                                                     
Get:6 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1344 kB]                                                                     
Get:7 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [11.3 MB]                                
Get:8 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [26.8 kB]         
Get:9 https://deb.nodesource.com/node_16.x bionic InRelease [4584 B]                   
Get:10 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [2459 kB]             
Get:11 https://deb.nodesource.com/node_16.x bionic/main amd64 Packages [770 B]             
Get:12 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [689 kB]
Get:13 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [1444 kB] 
Get:14 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [13.5 kB]                                                                                                       
Get:15 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [186 kB]                                                                                                        
Get:16 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [2225 kB]                                                                                                 
Get:17 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [34.4 kB]                                                                                               
Get:18 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [725 kB]                                                                                                
Get:19 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [2898 kB]                                                                                                     
Get:20 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [11.4 kB]                                                                                               
Get:21 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [11.3 kB]                                                                                                   
Reading package lists... Done                                                                                                                                                            
E: Failed to fetch https://packages.microsoft.com/repos/edge/dists/stable/InRelease  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
E: The repository 'https://packages.microsoft.com/repos/edge stable InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
+ microsoft-edge-stable --version
/e2e/node_modules/playwright/node_modules/playwright-core/bin/reinstall_msedge_stable_linux.sh: line 32: microsoft-edge-stable: command not found
Failed to install browsers
Error: Failed to install msedge

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
emakhachekcommented, Dec 6, 2021

Working. Thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting tips for installing and updating Microsoft Edge
Go to www.microsoft.com/edge, download Microsoft Edge again, and then reinstall. If the error persists, check to see if your antivirus software is blocking...
Read more >
Msedge.exe application error: What is it & 7 ways to fix it
1. Run a full system scan · 2. Repair PC Registry · 3. Run DISM RestoreHealth · 4. Create a new user account...
Read more >
Microsoft Edge Update Installation Error ... - YouTube
Microsoft Edge Update Installation Error STATUS_INVALID_IMAGE_HASH on Windows 10 FIX [Tutorial] File path added: ...
Read more >
What Is the Microsoft Edge Profile Error and How Do You Fix It ...
The Microsoft Edge profile error is a very common issue that mainly appears on launching the browser. The error means that Edge has...
Read more >
How to fix KB5016688 fails to install in Windows 10?
Solution 2. Fix Corrupted System Files · Reboot your system · If SFC returned an error, then use the following command lines, pressing...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found