AlmaLinux / almalinux-deploy

EL to AlmaLinux migration tool.
GNU General Public License v3.0
543 stars 72 forks source link

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

Open v1per4llbl4ck opened 2 years ago

v1per4llbl4ck commented 2 years ago

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?

nedevl commented 2 years ago

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.

SameerGussain commented 2 years ago

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]

andrewlukoshko commented 2 years ago

Hi. Is problem still here?

catolseo commented 2 years ago

No, the problem is not solved

image
catolseo commented 2 years ago

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

on3zer0eight commented 1 year ago

not solved(

istiaq-ops commented 9 months ago

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