almalinux-deploy icon indicating copy to clipboard operation
almalinux-deploy copied to clipboard

Error: Failed to download metadata for repo 'BaseOS': Cannot download repomd.xml: Cannot download repodata/repomd.xml:All mirrors were tried

Open v1per4llbl4ck opened this issue 3 years ago • 7 comments

good morning

I followed all the steps. AlmaLinux v8.5.0 kvm is setting first check is ok

check release file

$ cat /etc/redhat-release AlmaLinux release 8.5 (Arctic Sphynx)

the second is empty

check that the system boots AlmaLinux kernel by default

$ sudo grubby --info DEFAULT | grep AlmaLinux

finally the ruslt is this [root@************** ~]# sudo dnf check-update CentOS-8 - Base 17 kB/s | 282 B 00:00 Error: Failed to download metadata for repo 'BaseOS': Cannot download repomd.xml: Cannot download repodata/repomd.xml:All mirrors were tried

someone can help me?

v1per4llbl4ck avatar Feb 23 '22 10:02 v1per4llbl4ck

Hi @v1per4llbl4ck . It might be because of the BaseOS broken repository.

Try to edit the following files: /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-AppStream.repo

Change enabled=1 to enabled=0 If enabled=1 is not present just add enabled=0

Then try #yum update -y

Let me know if this sorted out your problem.

nedevl avatar Feb 26 '22 13:02 nedevl

getting the same error while migrating the OS.

[sameer@localhost yum.repos.d]$ sudo bash almalinux-deploy.sh -f CentOS Linux 8 - Extras 13 kB/s | 1.5 kB 00:00 Dependencies resolved. Nothing to do. Complete! 6 files removed DNF upgrade OK Check root privileges OK Check centos-8.x86_64 is supported OK Download RPM-GPG-KEY-AlmaLinux OK Import RPM-GPG-KEY-AlmaLinux to RPM DB OK Download almalinux-release package OK Verify almalinux-release package OK Your OS is supported OK warning: /etc/yum.repos.d/CentOS-Linux-PowerTools.repo saved as /etc/yum.repos.d/CentOS-Linux-PowerTools.repo.rpmsave warning: /etc/yum.repos.d/CentOS-Linux-Plus.repo saved as /etc/yum.repos.d/CentOS-Linux-Plus.repo.rpmsave warning: /etc/yum.repos.d/CentOS-Linux-HighAvailability.repo saved as /etc/yum.repos.d/CentOS-Linux-HighAvailability.repo.rpmsave warning: /etc/yum.repos.d/CentOS-Linux-FastTrack.repo saved as /etc/yum.repos.d/CentOS-Linux-FastTrack.repo.rpmsave warning: /etc/yum.repos.d/CentOS-Linux-Extras.repo saved as /etc/yum.repos.d/CentOS-Linux-Extras.repo.rpmsave warning: /etc/yum.repos.d/CentOS-Linux-Devel.repo saved as /etc/yum.repos.d/CentOS-Linux-Devel.repo.rpmsave warning: /etc/yum.repos.d/CentOS-Linux-ContinuousRelease.repo saved as /etc/yum.repos.d/CentOS-Linux-ContinuousRelease.repo.rpmsave warning: /etc/yum.repos.d/CentOS-Linux-BaseOS.repo saved as /etc/yum.repos.d/CentOS-Linux-BaseOS.repo.rpmsave warning: /etc/yum.repos.d/CentOS-Linux-AppStream.repo saved as /etc/yum.repos.d/CentOS-Linux-AppStream.repo.rpmsave Remove OS specific rpm packages OK Verifying... ######################################## Preparing... ######################################## Updating / installing... almalinux-release-8.5-4.el8 ######################################## Install almalinux-release package OK Remove centos-backgrounds centos-logos centos-indexhtml packages OK Install almalinux-backgrounds almalinux-logos almalinux-indexhtml packagesERROR AlmaLinux 8 - BaseOS 0.0 B/s | 0 B 01:35 Errors during downloading metadata for repository 'baseos': - Curl error (56): Failure when receiving data from the peer for http://mirrors.isu.net.sa/almalinuxos-mirror/8/BaseOS/x86_64/os/repodata/repomd.xml [Recv failure: Connection reset by peer] - Curl error (56): Failure when receiving data from the peer for http://mirror.kku.ac.th/almalinux/8/BaseOS/x86_64/os/repodata/repomd.xml [Recv failure: Connection reset by peer] - Curl error (56): Failure when receiving data from the peer for http://mirror.ps.kz/almalinux/8/BaseOS/x86_64/os/repodata/repomd.xml [Recv failure: Connection reset by peer] - Curl error (28): Timeout was reached for http://mirror.ourhost.az/almalinux/8/BaseOS/x86_64/os/repodata/repomd.xml [Connection timed out after 30000 milliseconds] - Curl error (28): Timeout was reached for http://mirror.hostart.az/AlmaLinux/8/BaseOS/x86_64/os/repodata/repomd.xml [Connection timed out after 30000 milliseconds] - Curl error (56): Failure when receiving data from the peer for http://repo.extreme-ix.org/alma/8/BaseOS/x86_64/os/repodata/repomd.xml [Recv failure: Connection reset by peer] - Curl error (56): Failure when receiving data from the peer for http://repo.inara.pk/almalinux/8/BaseOS/x86_64/os/repodata/repomd.xml [Recv failure: Connection reset by peer] - Curl error (56): Failure when receiving data from the peer for http://mirrors.hostever.com/almalinux/8/BaseOS/x86_64/os/repodata/repomd.xml [Recv failure: Connection reset by peer] - Curl error (56): Failure when receiving data from the peer for http://mirrors.hosting.in.th/almalinux/8/BaseOS/x86_64/os/repodata/repomd.xml [Recv failure: Connection reset by peer] - Curl error (28): Timeout was reached for http://mirror.bardia.tech/almalinux/8/BaseOS/x86_64/os/repodata/repomd.xml [Connection timed out after 30000 milliseconds] Error: Failed to download metadata for repo 'baseos': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried Install almalinux-backgrounds almalinux-logos almalinux-indexhtml packagesOK Backup of alternatives is done OK Error: Failed to download metadata for repo 'baseos': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried [sameer@localhost yum.repos.d]$ ll total 92 -rw-r--r--. 1 root root 34993 Apr 22 16:12 almalinux-deploy.sh -rw-r--r--. 1 root root 951 Dec 22 01:21 almalinux-ha.repo -rw-r--r--. 1 root root 893 Dec 22 01:21 almalinux-plus.repo -rw-r--r--. 1 root root 971 Dec 22 01:21 almalinux-powertools.repo -rw-r--r--. 1 root root 2690 Dec 22 01:21 almalinux.repo -rw-r--r--. 1 root root 1049 Dec 22 01:21 almalinux-resilientstorage.repo -rw-r--r--. 1 root root 803 Apr 22 16:12 CentOS-Linux-AppStream.repo.rpmsave -rw-r--r--. 1 root root 785 Apr 22 16:12 CentOS-Linux-BaseOS.repo.rpmsave -rw-r--r--. 1 root root 1222 Apr 22 16:12 CentOS-Linux-ContinuousRelease.repo.rpmsave -rw-r--r--. 1 root root 812 Apr 22 16:12 CentOS-Linux-Devel.repo.rpmsave -rw-r--r--. 1 root root 785 Apr 22 16:12 CentOS-Linux-Extras.repo.rpmsave -rw-r--r--. 1 root root 803 Apr 22 16:12 CentOS-Linux-FastTrack.repo.rpmsave -rw-r--r--. 1 root root 831 Apr 22 16:12 CentOS-Linux-HighAvailability.repo.rpmsave -rw-r--r--. 1 root root 791 Apr 22 16:12 CentOS-Linux-Plus.repo.rpmsave -rw-r--r--. 1 root root 809 Apr 22 16:12 CentOS-Linux-PowerTools.repo.rpmsave

SameerGussain avatar Apr 22 '22 10:04 SameerGussain

Hi. Is problem still here?

andrewlukoshko avatar Jun 24 '22 16:06 andrewlukoshko

No, the problem is not solved

image

catolseo avatar Jul 23 '22 20:07 catolseo

Helped solve the problem of replacing

/etc/yum.repos.d/CentOS-AppStream.repo baseurl=https://repo.almalinux.org/almalinux/$releasever/AppStream/$basearch/os/

/etc/yum.repos.d/CentOS-Base.repo baseurl=https://repo.almalinux.org/almalinux/$releasever/BaseOS/$basearch/os/

image

catolseo avatar Jul 23 '22 22:07 catolseo

not solved(

on3zer0eight avatar Aug 17 '23 14:08 on3zer0eight

Hi @nedevl, I just followed your invaluable instructions and got my job done. Thanks a bunch!

istiaq-ops avatar Feb 27 '24 16:02 istiaq-ops