gpt4 book ai didi

xml - CentOS Epel 错误

转载 作者:太空宇宙 更新时间:2023-11-03 17:24:18 25 4
gpt4 key购买 nike

我在使用 yum install <...> 时遇到问题命令。我正在使用 CentOS 6.6。我的 epel.repo 脚本如下 ->

[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
baseurl=http://download.fedoraproject.org/pub/epel/6/x86_64
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

[epel-debuginfo]
name=Extra Packages for Enterprise Linux 6 - $basearch - Debug
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch/debug
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-6&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1

[epel-source]
name=Extra Packages for Enterprise Linux 6 - $basearch - Source
#baseurl=http://download.fedoraproject.org/pub/epel/6/SRPMS
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-6&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1

当我执行 yum install git 时例如命令,返回此错误 ->

Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Update Process
Repository centosplus is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
Loading mirror speeds from cached hostfile
* extras: centos.exabytes.com.my
* updates: centos.exabytes.com.my
http://dl.fedoraproject.org/pub/epel/6//repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: EPEL. Please verify its path and try again

看起来像 url http://dl.fedoraproject.org/pub/epel/6//repodata/repomd.xml未正确设置,因此未找到触发 404 错误。对于第二个错误,我不知道为什么。我认为这是因为 repomd.xml 无法检索。

网址应该是http://dl.fedoraproject.org/pub/epel/6/x86_64/repodata/repomd.xml根据 epel.repo 配置文件。

最佳答案

尝试使用 those steps 再次安装 EPEL .

复制到这里

rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

更新:

尝试改用此命令,因为它应该始终安装最新版本(未测试)。

rpm -Uvh http://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm

关于xml - CentOS Epel 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31040266/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com