Kubernetes Deep Dive Room

Sign Up Free or Log In to participate!

apt-get update not able to connect to internet

When I run apt-get update after logging into pod, getting failure to resolve *.ubuntu.com

root@pingtest-99bcc488c-b2pxx:/# apt-get update

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://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

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.


Due to which I am not able to install any packages

I do see similar issue in couple of other posts but none were answered.

Appreciate your help, thanks in advance


Waqas Khan

silly suggestion but are you able to say? ping google.com from the pod? i assume you’re trying to do this after doing an exec bash in to a pod

0 Answers

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?