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

Ubuntu 20.04 apt update - Temporary failure resolving #7737

Closed
1 of 2 tasks
tweetysat opened this issue Nov 22, 2021 · 4 comments
Closed
1 of 2 tasks

Ubuntu 20.04 apt update - Temporary failure resolving #7737

tweetysat opened this issue Nov 22, 2021 · 4 comments

Comments

@tweetysat
Copy link

Version

Microsoft Windows [version 10.0.19044.1348]

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

4.19.128

Distro Version

Ubuntu 20.04

Other Software

No response

Repro Steps

After installing the ubuntu distribution, I can do sudo apt udate and it gives me.

Get:1 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Get:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]
Fetched 214 kB in 17s (12.8 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done

I then added the podman repository in /etc/apt/sources.list : deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_20.04/ /
Now the update gives me

Err:1 http://archive.ubuntu.com/ubuntu focal InRelease
  Temporary failure resolving 'archive.ubuntu.com'
Err:2 http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_20.04  InRelease
  Temporary failure resolving 'download.opensuse.org'
Err:3 http://security.ubuntu.com/ubuntu focal-security InRelease
  Temporary failure resolving 'security.ubuntu.com'
Err:4 http://archive.ubuntu.com/ubuntu focal-updates InRelease
  Temporary failure resolving 'archive.ubuntu.com'
Get:5 http://archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]
Fetched 101 kB in 33s (3050 B/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done

Yet

PING download.opensuse.org (195.135.221.134) 56(84) bytes of data.
64 bytes from download.opensuse.org (195.135.221.134): icmp_seq=1 ttl=58 time=31.9 ms
64 bytes from download.opensuse.org (195.135.221.134): icmp_seq=2 ttl=58 time=31.6 ms

If I try with opensuse ip, it's working

Get:1 http://195.135.221.134/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_20.04  InRelease [1642 B]
Get:2 http://195.135.221.134/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_20.04  Packages [12.6 kB]
Hit:3 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:4 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Get:5 http://archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]
Get:6 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Fetched 229 kB in 18s (12.7 kB/s)
Reading package lists... Done

It seems that it is always working with that 'trick' except, time to time, the same error on one/multiple ubuntu repositories.

I'm working on a corporate laptop behind a proxy and using a vpn.
I never managed to have opensuse repository working with it's name yet a ping is working. For other coworkers, it's working.
So ... what could be the problem ?
I don't think it has something to do with network/proxy/internet...
But what ? Something with my laptop ? Something wrong with wsl2 ?

Expected Behavior

See above

Actual Behavior

See above

Diagnostic Logs

No response

@OneBlue
Copy link
Collaborator

OneBlue commented Nov 23, 2021

From the output it looks like DNS is failing.

Does putting this:

nameserver 1.1.1.1

in /etc/resolv.conf help ?

@tweetysat
Copy link
Author

With

nameserver 1.1.1.1

Err:1 http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_20.04  InRelease
  Could not resolve 'download.opensuse.org'
Err:2 http://archive.ubuntu.com/ubuntu focal InRelease
  Could not resolve 'archive.ubuntu.com'
Err:3 http://security.ubuntu.com/ubuntu focal-security InRelease
  Could not resolve 'security.ubuntu.com'
Err:4 http://archive.ubuntu.com/ubuntu focal-updates InRelease
  Could not resolve 'archive.ubuntu.com'
Err:5 http://archive.ubuntu.com/ubuntu focal-backports InRelease
  Could not resolve 'archive.ubuntu.com'
Reading package lists... Done

and

ping: download.opensuse.org: Name or service not known

I'm not sure it is a dns problem. In the apt update with download.opensuse.org I can see Get:5 http://archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]
The other 4 ones are failing but that one is working.

This morning I have

Err:1 http://security.ubuntu.com/ubuntu focal-security InRelease
  Temporary failure resolving 'security.ubuntu.com'
Err:2 http://archive.ubuntu.com/ubuntu focal InRelease
  Temporary failure resolving 'archive.ubuntu.com'
Err:3 http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_20.04  InRelease
  Temporary failure resolving 'download.opensuse.org'
Hit:4 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:5 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Reading package lists... Done

The opensuse has nerver worked but the the ubuntu ones it depends. Some are working but not always the same.
And I also noticed that even with the opensuse ip, sometimes, one ubuntu is failing.

I don't understand what's happening and how to 'debug' it.

@ghost ghost removed the needs-author-feedback label Nov 24, 2021
@OneBlue
Copy link
Collaborator

OneBlue commented May 3, 2022

/dupe #8365

@ghost
Copy link

ghost commented May 3, 2022

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 ghost closed this as completed May 3, 2022
@ghost ghost added the duplicate label May 3, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants