WSL icon indicating copy to clipboard operation
WSL copied to clipboard

sudo apt-get update Temporary failure resolving in WSL 2

Open mrpeppapig opened this issue 5 years ago • 5 comments

Environment

Windows build number: Microsoft Windows [Version 10.0.18363.1379]
Your Distribution version:  Release: 20.04 (Ubuntu)
Whether the issue is on WSL 2 and/or WSL 1:  Linux version 5.4.72-microsoft-standard-WSL2 (oe-user@oe-host) (gcc version 8.2.0 (GCC)) #1 SMP Wed Oct 28 23:40:43 UTC 2020

Steps to reproduce

WSL logs: 111

Expected behavior

I am in WSL 1. But yesterday, I updated to WSL 2. But today, when I run sudo apt-get update, I am unable to update. Even on sudo apt-get upgrade doesn't work. I want to update. But it always shows me the Error. Please help

Actual behavior

111

mrpeppapig avatar Mar 10 '21 05:03 mrpeppapig

I just switch to WSL version 1 and sudo apt-get update and sudo apt-get upgrade works fine. And also, the remote connection to VS Code is working now. But when I switch back to WSL version 2, sudo apt-get update and sudo apt-get upgrade doesn't work, also the remote connection to VS code is not working. Just what is going on? Did I messed up something?

mrpeppapig avatar Mar 10 '21 08:03 mrpeppapig

Here's an example of what I said above about WSL 1: example

Remote Development of VS Code on the left, sudo apt-get update and sudo apt-get upgrade on the right. It is working on WSL 1. But not on WSL 2.

mrpeppapig avatar Mar 10 '21 08:03 mrpeppapig

Here's what happen when I switch to WSL 2: WSL 2

mrpeppapig avatar Mar 10 '21 08:03 mrpeppapig

/dupe #5256

therealkenc avatar Mar 11 '21 19:03 therealkenc

Hi! We've identified this issue as a duplicate of another one that already exists in this repository. This specific instance is being closed in favor of tracking the concern over on the referenced thread.

Thanks for your report!

ghost avatar Mar 11 '21 19:03 ghost