解决CentOS 6的yum update错误:Cannot find a valid baseurl for repo: centos-sclo-rh

287 浏览技术资料CentOS 6
0

直接使用以下代码解决:

echo "https://vault.centos.org/6.10/os/x86_64/" > /var/cache/yum/x86_64/6/base/mirrorlist.txt
echo "http://vault.centos.org/6.10/extras/x86_64/" > /var/cache/yum/x86_64/6/extras/mirrorlist.txt
echo "http://vault.centos.org/6.10/updates/x86_64/" > /var/cache/yum/x86_64/6/updates/mirrorlist.txt
echo "http://vault.centos.org/6.10/sclo/x86_64/rh" > /var/cache/yum/x86_64/6/centos-sclo-rh/mirrorlist.txt
echo "http://vault.centos.org/6.10/sclo/x86_64/sclo" > /var/cache/yum/x86_64/6/centos-sclo-sclo/mirrorlist.txt

注意使用命令yum clean all会让以上失效。


分享到:
问的问题

Login

Welcome! Login in to your account

Remember meLost your password?

Don't have account. Register

Lost Password

Register