AlmaLinux 8执行yum/dnf update时提示无法检测发行版本的问题求助
AlmaLinux 8执行yum/dnf update时提示无法检测发行版本的问题求助
大家好,我碰到个头疼的问题想求助下:我手里有三台AlmaLinux 8服务器,系统版本都是8.9,但其中两台在执行yum update或者dnf update的时候会报错,具体错误信息如下:
yum update Unable to detect release version (use '--releasever' to specify release version) AlmaLinux $releasever - BaseOS 49 B/s | 273 B 00:05 Errors during downloading metadata for repository 'baseos': - Status code: 404 for https://mirrors.almalinux.org/mirrorlist/$releasever/baseos (IP: 52.200.132.63) - Status code: 404 for https://mirrors.almalinux.org/mirrorlist/$releasever/baseos (IP: 44.193.167.250) Error: Failed to download metadata for repo 'baseos': Cannot prepare internal mirrorlist: Status code: 404 for https://mirrors.almalinux.org/mirrorlist/$releasever/baseos (IP: 52.200.132.63)
目前我发现如果加上--releasever=8.9参数,也就是执行yum update --releasever=8.9的话,更新就能正常进行了,不过这是在我禁用了几个仓库之后才成功的。
想问问各位,有没有办法彻底解决这个问题,不用每次都手动加参数?
备注:内容来源于stack exchange,提问作者Granwille
相关产品推荐
相关产品推荐

