yum 更新 baseurl 错误

yum 更新 baseurl 错误

我正在使用 CentOS,我尝试使用openssh安装

yum -y install openssh-server openssh-clients

这导致

Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrors.rpmfusion.org/mirrorlist?repo=free-fedora-6&arch=x86_64 error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.rpmfusion.org'"
Error: Cannot find a valid baseurl for repo: rpmfusion-free

我尝试了yum clean all没有工作 yum update --disablerepo=rpmfusion 显示

Loaded plugins: fastestmirror, refresh-packagekit, security 
Error getting repository data for rpmfusion, repository not found

答案1

这似乎与您的本地 DNS 实际上有关:

无法解析主机“mirrors.rpmfusion.org”

尝试使用 Google 公共 DNS 解析器: https://developers.google.com/speed/public-dns/docs/using

或者在主机文件中设置任何 IP,这些 IP 在您键入以下内容时显示:

$ dig mirrors.rpmfusion.org @8.8.8.8 +short

相关内容