0

Under Ubuntu, I created a Centos 8 LXD container:

lxc launch images:centos/8 centoscontainer

Then, I log into the container with lxc exec centoscontainer /bin/bash.

I'm root, and I can access network just fine:

# ping mirrorlist.centos.org
PING mirrorlist.centos.org (147.75.69.225) 56(84) bytes of data.
64 bytes from packet04.centos.org (147.75.69.225): icmp_seq=1 ttl=43 time=213 ms
64 bytes from packet04.centos.org (147.75.69.225): icmp_seq=2 ttl=43 time=209 ms
64 bytes from packet04.centos.org (147.75.69.225): icmp_seq=3 ttl=43 time=206 ms
^C

But when I try to use yum install, it fails, and I don't understand why:

# yum install -y java-1.8.0-openjdk-devel
CentOS Linux 8 - BaseOS                                                                                                                                                                               0.0  B/s |   0  B     05:59    
Errors during downloading metadata for repository 'baseos':
  - Curl error (7): Couldn't connect to server for http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=BaseOS&infra=stock [Failed to connect to mirrorlist.centos.org port 80: Connection timed out]
Error: Failed to download metadata for repo 'baseos': Cannot prepare internal mirrorlist: Curl error (7): Couldn't connect to server for http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=BaseOS&infra=stock [Failed to connect to mirrorlist.centos.org port 80: Connection timed out]

What is the way to troubleshoot this ?

alci
  • 137

0 Answers0