Score:0

Problem updating ubuntu as a docker container

in flag

I am running a Ubuntu docker container. the first thing that I did after pulling the image was running it and trying to exec -it into it in order to update. However this is what I get:

root@host [ ~ ]# docker run -it ubuntu bash
root@d2a4d216811b:/# apt-get update
Err:1 http://archive.ubuntu.com/ubuntu focal InRelease                                                  
  Could not connect to archive.ubuntu.com:80 (91.189.88.142), connection timed out Could not connect to archive.ubuntu.com:80 (91.189.88.152), connection timed out
Err:2 http://archive.ubuntu.com/ubuntu focal-updates InRelease                                          
  Unable to connect to archive.ubuntu.com:http:
Err:3 http://archive.ubuntu.com/ubuntu focal-backports InRelease                                        
  Unable to connect to archive.ubuntu.com:http:
Err:4 http://security.ubuntu.com/ubuntu focal-security InRelease                                        
  Could not connect to security.ubuntu.com:80 (91.189.91.39), connection timed out Could not connect to security.ubuntu.com:80 (91.189.91.38), connection timed out
Reading package lists... Done                        
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal/InRelease  Could not connect to archive.ubuntu.com:80 (91.189.88.142), connection timed out Could not connect to archive.ubuntu.com:80 (91.189.88.152), connection timed out
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-updates/InRelease  Unable to connect to archive.ubuntu.com:http:
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-backports/InRelease  Unable to connect to archive.ubuntu.com:http:
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/focal-security/InRelease  Could not connect to security.ubuntu.com:80 (91.189.91.39), connection timed out Could not connect to security.ubuntu.com:80 (91.189.91.38), connection timed out
W: Some index files failed to download. They have been ignored, or old ones used instead.
root@d2a4d216811b:/# exit
exit
root@host [ ~ ]# docker run -it ubuntu bash
root@ae4c04621aaf:/# cat /etc/issue
Ubuntu 20.04.3 LTS \n \l

why is it trying to connect to archive.ubuntu.com:80 ?? archive? why?

How can I actually update?

user535733 avatar
cn flag
What leads you to believe that `archive.ubuntu.com` is incorrect or undesirable? What server do you expect instead?
gai-jin avatar
in flag
it sounds like something that is out of use - "archive".
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.