M0ε*_*εiπ 4 yum fedora software-installation
每当我尝试使用 安装或更新软件包时yum,在更新其数据库后,都会显示以下消息:
Loaded plugins: langpacks, presto, refresh-packagekit, tidy-cache google64
http://download.fedora.redhat.com/pub/epel/6/i386/repodata/repomd.xml:
[Errno 14] curl#6 - "Couldn't resolve host" Trying other mirror.
http://download.fedora.redhat.com/pub/epel/6/i386/repodata/repomd.xml:
[Errno 14] curl#6 - "Couldn't resolve host" Trying other mirror.
Error: failure: repodata/repomd.xml from mypck: [Errno 256] No more mirrors to try.
Run Code Online (Sandbox Code Playgroud)
我正在运行 Linux 3.4.3。什么可能导致这个问题?我如何解决它?
镜像列表包含无效条目。在我的 Fedora 安装中,该错误只是提供信息,因为它会转到镜像列表中的下一个条目并成功完成。
您可以通过(作为root或使用sudo)编辑文件来消除错误/etc/yum.repos.d/fedora-updates.repo。您将看到以下几行:
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/
$releasever/$asearch/
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-f
$releasever&arch=$basearch
Run Code Online (Sandbox Code Playgroud)
取消注释该baseurl行并注释掉该mirrorlist行。这将删除从维护的镜像列表中获取更新的选项。