日日噜噜夜夜狠狠久久丁香五月,人人摸人人操,人人妻人人,添人人爽,欧美一区,色婷婷综合缴情综,欧美午夜精品久久久久久浪潮

<>
文檔首頁> Linux> Centos 8 stream更新源

Centos 8 stream更新源

發(fā)布時間:2024-06-05 14:09       

Centos8于2021年年底停止了服務(wù),大家再在使用yum源安裝時候,出現(xiàn)下面錯誤

“錯誤:Failed to download metadata for repo ‘AppStream’: Cannot prepare internal mirrorlist: No URLs in mirrorlist”

 

1、進(jìn)入yum的repos目錄

cd /etc/yum.repos.d/

2、修改所有的CentOS文件內(nèi)容

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-*

3、yum安裝測試是否可以yum安裝

yum install wget –y

4、更新yum源為阿里鏡像

wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo

yum clean all

yum makecache