sudo apt update is Failed to fetch in win10 2004 with WSL 2

Bug #1898496 reported by Yves Daniel
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu WSL
New
Undecided
Unassigned

Bug Description

```
Windows build number: Microsoft Windows [Version 10.0.19041.508]
Ubuntu Distribution version: [Ubuntu 20.04]
wsl version: [2]
UWP Installed: [Ubuntu]
UWP version of Ubuntu: [2004.2020.812.0]
Ubuntu release version: [Ubuntu 20.04]
```
Steps to reproduce

1. follow the steps to [install Install Windows Subsystem for Linux 2](https://docs.microsoft.com/en-us/windows/wsl/install-win10)
2. at the end launch wsl ubuntu bash and do update :
`sudo apt update`

output

```none
Err:1 http://archive.ubuntu.com/ubuntu focal InRelease
  Temporary failure resolving 'archive.ubuntu.com'
Err:2 http://security.ubuntu.com/ubuntu focal-security InRelease
  Temporary failure resolving 'security.ubuntu.com'
Err:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease
  Temporary failure resolving 'archive.ubuntu.com'
Err:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease
  Temporary failure resolving 'archive.ubuntu.com'
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal/InRelease Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-updates/InRelease Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-backports/InRelease Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/focal-security/InRelease Temporary failure resolving 'security.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.
```

Tags: wsl2
Revision history for this message
Hayden Barnes (haydenb) wrote :

Hi Yves.

This is most often seen when there is third-party security or networking software in the mix.

Do you have something like Kaspersky or a VPN client running?

If so, please disable and try again.

Hayden

Revision history for this message
Yves Daniel (odylight) wrote :

Hi Hayden.
Yes! I have NordVpn and OpenVPN, but both are disabled! but that issue is still persistent.

Revision history for this message
Hayden Barnes (haydenb) wrote : Re: [Bug 1898496] Re: sudo apt update is Failed to fetch in win10 2004 with WSL 2

Are you able to ping other addresses?

Try:
$ sudo rm /etc/resolv.conf

Then exiting WSL, shutting it down from PowerShell with:
> wsl.exe --shutdown

And re-opening it, while not connected to any VPN.

On Tue, Oct 6, 2020 at 7:20 PM Yves Daniel <email address hidden> wrote:
>
> Hi Hayden.
> Yes! I have NordVpn and OpenVPN, but both are disabled! but that issue is still persistent.
>
> --
> You received this bug notification because you are subscribed to Ubuntu
> WSL.
> Matching subscriptions: Ubuntu WSL bugs
> https://bugs.launchpad.net/bugs/1898496
>
> Title:
> sudo apt update is Failed to fetch in win10 2004 with WSL 2
>
> Status in Ubuntu WSL:
> New
>
> Bug description:
> ```
> Windows build number: Microsoft Windows [Version 10.0.19041.508]
> Ubuntu Distribution version: [Ubuntu 20.04]
> wsl version: [2]
> UWP Installed: [Ubuntu]
> UWP version of Ubuntu: [2004.2020.812.0]
> Ubuntu release version: [Ubuntu 20.04]
> ```
> Steps to reproduce
>
> 1. follow the steps to [install Install Windows Subsystem for Linux 2](https://docs.microsoft.com/en-us/windows/wsl/install-win10)
> 2. at the end launch wsl ubuntu bash and do update :
> `sudo apt update`
>
> output
>
> ```none
> Err:1 http://archive.ubuntu.com/ubuntu focal InRelease
> Temporary failure resolving 'archive.ubuntu.com'
> Err:2 http://security.ubuntu.com/ubuntu focal-security InRelease
> Temporary failure resolving 'security.ubuntu.com'
> Err:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease
> Temporary failure resolving 'archive.ubuntu.com'
> Err:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease
> Temporary failure resolving 'archive.ubuntu.com'
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> All packages are up to date.
> W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal/InRelease Temporary failure resolving 'archive.ubuntu.com'
> W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-updates/InRelease Temporary failure resolving 'archive.ubuntu.com'
> W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-backports/InRelease Temporary failure resolving 'archive.ubuntu.com'
> W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/focal-security/InRelease Temporary failure resolving 'security.ubuntu.com'
> W: Some index files failed to download. They have been ignored, or old ones used instead.
> ```
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntuwsl/+bug/1898496/+subscriptions

Revision history for this message
Yves Daniel (odylight) wrote :

sorry for the late response.! But there's still no fix for that issue. Sad

Revision history for this message
Hayden Barnes (haydenb) wrote :

Did you try any of the suggestions I made on 7 Oct? How did it go?

On Wed, Oct 28, 2020 at 9:20 PM Yves Daniel <email address hidden> wrote:
>
> sorry for the late response.! But there's still no fix for that issue.
> Sad
>
> --
> You received this bug notification because you are subscribed to Ubuntu
> WSL.
> Matching subscriptions: Ubuntu WSL bugs
> https://bugs.launchpad.net/bugs/1898496
>
> Title:
> sudo apt update is Failed to fetch in win10 2004 with WSL 2
>
> Status in Ubuntu WSL:
> New
>
> Bug description:
> ```
> Windows build number: Microsoft Windows [Version 10.0.19041.508]
> Ubuntu Distribution version: [Ubuntu 20.04]
> wsl version: [2]
> UWP Installed: [Ubuntu]
> UWP version of Ubuntu: [2004.2020.812.0]
> Ubuntu release version: [Ubuntu 20.04]
> ```
> Steps to reproduce
>
> 1. follow the steps to [install Install Windows Subsystem for Linux 2](https://docs.microsoft.com/en-us/windows/wsl/install-win10)
> 2. at the end launch wsl ubuntu bash and do update :
> `sudo apt update`
>
> output
>
> ```none
> Err:1 http://archive.ubuntu.com/ubuntu focal InRelease
> Temporary failure resolving 'archive.ubuntu.com'
> Err:2 http://security.ubuntu.com/ubuntu focal-security InRelease
> Temporary failure resolving 'security.ubuntu.com'
> Err:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease
> Temporary failure resolving 'archive.ubuntu.com'
> Err:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease
> Temporary failure resolving 'archive.ubuntu.com'
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> All packages are up to date.
> W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal/InRelease Temporary failure resolving 'archive.ubuntu.com'
> W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-updates/InRelease Temporary failure resolving 'archive.ubuntu.com'
> W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-backports/InRelease Temporary failure resolving 'archive.ubuntu.com'
> W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/focal-security/InRelease Temporary failure resolving 'security.ubuntu.com'
> W: Some index files failed to download. They have been ignored, or old ones used instead.
> ```
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntuwsl/+bug/1898496/+subscriptions

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.