使用yum安装任何东西,,包括使用yum makecache时都会报错:
Failed to download metadata for repo 'libnvidia-container'
Error: Failed to download metadata for repo 'libnvidia-container'
系统:centos8
解决方法
如有帮助,望采纳
cd /etc/yum.repos.d/
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-*
yum update -y
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
提供参考实例【彻底解决centos8下载元数据失败,安装源失败】,链接:https://blog.csdn.net/renkai721/article/details/122992449