You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.17 08:53:10