使用 yum update -y 報錯 Repository extras is listed more than once in the configuration
2020 年 12 月 8 號,CentOS 官方宣布了停止維護 CentOS Linux 的計劃,并推出了 CentOS Stream 項目,CentOS Linux 8 作為 RHEL 8 的復(fù)刻版本,生命周期縮短,于 2021 年 12 月 31 日停止更新并停止維護(EOL),更多的信息可以查看 CentOS 官方公告。如果需要更新 CentOS,需要將鏡像從 mirror.centos.org
更改為 vault.centos.org
文章來源:http://www.zghlxwxcb.cn/news/detail-525664.html
解決如下:文章來源地址http://www.zghlxwxcb.cn/news/detail-525664.html
cd /etc/yum.repos.d/
#更新yum源為阿里源
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
#如果已經(jīng)安裝了wget就不需要這一步
yum install wget –y
yum clean all
yum makecache
#驗證
yum install -y vim
``
到了這里,關(guān)于Centos 報錯 Repository extras is listed more than once in the configuration的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!