DNF and YUM failing on AlmaLinux 8.6
AlmaLinux release 8.6
Command: dnf makecache
Gives this nice error (same error appears when trying to open easyApache in WHM interface)
Unable to detect release version (use '--releasever' to specify release version)
EA4 ( EasyApache 4 ) 41 B/s | 232 B 00:05
Error: Failed to download metadata for repo 'EA4': Cannot prepare internal mirrorlist: Status code: 404 for
-
Hey hey! It's a known issue that formatting options don't always work well. Unfortunately I can't do much about my end at this point, although there are plans to change up the forums a bit so that won't matter. On my AlmaLinux 8 machine, I see the following inside /etc/yum.repos.d/EA4.repo: [EA4] name=EA4 ( EasyApache 4 ) mirrorlist=http://httpupdate.cpanel.net/ea4-c$releasever-$basearch-mirrorlist gpgcheck=1 gpgkey=https://securedownloads.cpanel.net/cPanelPublicPkgKey.asc enabled=1 cost=50
If your content there is different, can you adjust that to match mine, and follow that up with this to see if that gets things working?yum clean all yum makecache yum update
0 -
I had same content in EA4.repo. Since I have AlmaLinux8.6, I tried to specify --releasever=8.6 and yum was trying to fetch mirror list from (for 8.5), but simple "8" seems to be working just fine. I have tried cleaning cache and building it from scratch on another AlmaLinux (althgouh with CloudLinux enabled repos) - and it seems to be working better there. So at least suggestion to anyone running into this - try: yum makecache --releasever 8 yum update --releasever 8 0 -
I'm glad you found a good workaround! 0
Please sign in to leave a comment.
Comments
3 comments