Skip to content

Fix "Failed to download metadata ..." error by switching to Rocky Linux.#5

Merged
bitsofinfo merged 1 commit intobitsofinfo:masterfrom
sfgeorge:fix-broken-centos8-mirrorlist-using-rockylinux
Jun 13, 2022
Merged

Fix "Failed to download metadata ..." error by switching to Rocky Linux.#5
bitsofinfo merged 1 commit intobitsofinfo:masterfrom
sfgeorge:fix-broken-centos8-mirrorlist-using-rockylinux

Conversation

@sfgeorge
Copy link
Copy Markdown
Contributor

Fixes the following error:

% docker build -t comms-analyzer-toolbox .
[+] Building 2.4s (6/24)
 => [internal] load build definition from Dockerfile                                                                       0.0s
 => => transferring dockerfile: 2.74kB                                                                                     0.0s
 => [internal] load .dockerignore                                                                                          0.0s
 => => transferring context: 2B                                                                                            0.0s
 => [internal] load metadata for docker.io/library/centos:latest                                                           0.7s
 => [internal] load build context                                                                                          0.0s
 => => transferring context: 2.73kB                                                                                        0.0s
 => CACHED [ 1/20] FROM docker.io/library/centos:latest@sha256:a27fd8080b517143cbbbab9dfb7c8571c40d67d534bbdee55bd6c473f4  0.0s
 => ERROR [ 2/20] RUN yum -y install epel-release && yum clean all                                                         1.6s
------
FROM rockylinux:latest
 > [ 2/20] RUN yum -y install epel-release && yum clean all:
#5 1.505 CentOS Linux 8 - AppStream                      155  B/s |  38  B     00:00
#5 1.516 Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
------
executor failed running [/bin/sh -c yum -y install epel-release && yum clean all]: exit code: 1

As CentOS is no longer active, we need to choose b/w CentOS Stream or Rocky Linux. I chose the latter in this PR.

CentOS is no longer active. Have to choose b/w CentOS Stream or Rocky Linux.
@bitsofinfo bitsofinfo merged commit 2a8cd6a into bitsofinfo:master Jun 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants