centos8执行yum报错 unable to detect release version (use '--releasever' to specify release version)
解决办法
yum install --releasever=8 centos-linux-release
执行yum的时候提示要带上--releasever=8参数才行, 检查后发现之前不知道把centos-linux-release给卸载了.
重新安装后解决.
# yum update
Failed to set locale, defaulting to C.UTF-8
Unable to detect release version (use '--releasever' to specify release version)
CentOS Linux $releasever - AppStream 65 B/s | 38 B 00:00
Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
本文固定链接centos8执行yum报错 unable to detect release version (use '--releasever' to specify release version),你还可以查看Linux目录下的所有文章,
转载请声明文章来自Kvm.la 。