geerlingguy / docker-centos8-ansible

CentOS 8 Docker container for Ansible playbook and role testing.
https://hub.docker.com/r/geerlingguy/docker-centos8-ansible/
MIT License
60 stars 40 forks source link

Error using dnf. Getting "Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist" #18

Closed hectoralicea closed 2 years ago

hectoralicea commented 2 years ago

using in a jenkins k8s docker slave

the following command in a jenkins pipeline stage dnf clean all && rm -r /var/cache/dnf && dnf install git --assumeyes --quiet

returns the following error

12:29:58  + dnf clean all
12:29:58  0 files removed
12:29:58  + rm -r /var/cache/dnf
12:29:58  + dnf install git --assumeyes --quiet

12:29:59  Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist

According to https://hub.docker.com/r/geerlingguy/docker-centos8-ansible/ the image was updated 2 days ago

I will try an older image and see if that fixes the problem.

Stay tuned.

carlosmmatos commented 2 years ago

@hectoralicea https://forums.centos.org/viewtopic.php?f=54&t=78708

Might be time to migrate to rockylinux8, or perhaps we need to update the yum repos as noted in: https://www.centos.org/centos-linux-eol/

geerlingguy commented 2 years ago

@carlosmmatos if your PR passes I'll go ahead and merge. But yes, I no longer use this image and am considering archiving it as unsupported. I've moved on to rockylinux8 for most of my testing.

carlosmmatos commented 2 years ago

@geerlingguy agreed with archiving this.. I've opened an issue #20 to suggest an alternative, as CentOS Stream is the new thing RH is pushing.