rocky-linux / rocky-tools

MIT License
393 stars 137 forks source link

Errors during downloading metadata for repository 'rockyappstream' #174

Closed brucemioo closed 2 years ago

brucemioo commented 2 years ago

I got failed result when upgrading from CentOS8 to Rocky linux. My Linux version:CentOS Linux release 8.5.2111 dnf repolist all as follow: repo id repo name status appstream CentOS Linux 8 - AppStream enabled appstream-source CentOS Linux 8 - AppStream - Source disabled baseos CentOS Linux 8 - BaseOS enabled baseos-source CentOS Linux 8 - BaseOS - Source disabled cr CentOS Linux 8 - ContinuousRelease disabled debuginfo CentOS Linux 8 - Debuginfo disabled devel CentOS Linux 8 - Devel WARNING! FOR BUILDROOT USE ONL disabled extras CentOS Linux 8 - Extras enabled extras-source CentOS Linux 8 - Extras - Source disabled fasttrack CentOS Linux 8 - FastTrack disabled ha CentOS Linux 8 - HighAvailability disabled media-appstream CentOS Linux 8 - Media - AppStream disabled media-baseos CentOS Linux 8 - Media - BaseOS disabled plus CentOS Linux 8 - Plus disabled plus-source CentOS Linux 8 - Plus - Source disabled powertools CentOS Linux 8 - PowerTools disabled powertools-source CentOS Linux 8 - PowerTools - Source disabled

but i got failed result when running migrate2rocky.sh -r such as:

Errors during downloading metadata for repository 'rockyappstream':

Packages found on system that should still be removed. Forcibly removing them with rpm: centos-gpg-keys centos-linux-release centos-linux-repos

Some required packages were not installed by dnf. Attempting to force with rpm: rocky-gpg-keys rmdir: failed to remove 'rocky-gpg-keys': No such file or directory rocky-release rmdir: failed to remove 'rocky-release': No such file or directory rocky-repos rmdir: failed to remove 'rocky-repos': No such file or directory Ensuring repos are enabled before the package swap Unable to detect release version (use '--releasever' to specify release version) Error: No matching repo to modify: appstream, extras, baseos. Repo name missing?

it's success to download the .gz or .xml by wget on my server. anybdy help me?

brucemioo commented 2 years ago

I solved this issue by removing 'exclude kernel' config item from yum.conf. Because SAS raid driver limit, cannot use newer kernel, so excluded kernel update. removed 'exclude kernel' configure, it work fine for migrating from centos8 to rocky linux. But can not use newer kernel, must change grub to use old kernel otherwise no raid driver.