使用yum命令从epel失败

时间:2017-04-05 11:43:19

标签: pip redhat yum epel

感谢您来尝试解决我的问题。我已经看到很多关于使用yum命令失败的解决方案,但直到现在,这些解决方案并不适用于我。

首先,这里有一些关于这种情况的信息: 我正在使用RedHat Linux 7.2-11,使用代理(因为我公司网络非常安全)所以我已经修改了etc / sysconfig / rhn / up2date,etc / wgetrc和etc / yum.conf文件http_proxy,proxy_user和proxy_password!

然后,我以root身份连接,我尝试下载python-pip执行以下命令:

sudo yum install python-pip

我遇到以下错误:

No package python-pip available

尝试在python-pip之前安装epel-release时出现完全相同的错误。 然后我做了以下事情:

yum install httpd php php-gd php-mysql

最后,我在/ tmp:

中下载并安装了带有这些命令的epel-release
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum install epel-release-latest-7.noarch.rpm

一切都很好!

这是问题所在。之后,我再次尝试了这些命令:

sudo yum install python-pip
sudo yum install -y python-pip

第一个错误是:

One of the configured repositories failed (Unknown),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:
........some tips (1 to 5)........
Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again

所以我遵循了一些指示并修改了epel.repo和epel-testing.repo评论所有“镜像”线并取消注释所有“baseurl”线。 所以,现在,当我再次尝试安装python-pip时,我遇到了这个错误:

Loaded plugins: rhnplugin, search-disabled-repos
This system is receiving updates from RHN Classic or Red Hat Satellite.
http://download.fedoraproject.org/pub/epel/7/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 407 - Proxy Authentication Required
Trying other mirror.


One of the configured repositories failed (Extra Packages for Enterprise Linux 7 - x86_64),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:

.........some tips (1 to 5).......

failure: repodata/repomd.xml from epel: [Errno 256] No more mirrors to try.
http://download.fedoraproject.org/pub/epel/7/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 407 - Proxy Authentication Required

请知道如何解决这个问题,或者您有什么想法吗? 这似乎是因为代理,但我已经在我的消息上配置了三个文件。

感谢您的帮助! :)

1 个答案:

答案 0 :(得分:0)

您无需在CentOS-7盒子上手动下载$ bundle exec jekyll serve 。 repo文件中最新的RPM可能缺少epel-release,可能是mirrorlist而不是baseurl=http://

以下是解决此问题的方法:

mirrorlist=https://