ITKeyword,专注技术干货聚合推荐

注册 | 登录

proxy - yum install fails with HTTP 403 trying to access repomd.xml

itPublisher 分享于

2020腾讯云10周年活动,优惠非常大!(领取2860元代金券),
地址https://cloud.tencent.com/act/cps/redirect?redirect=1040

2020阿里云最低价产品入口,含代金券(新老用户有优惠),
地址https://www.aliyun.com/minisite/goods

推荐:yum安装过程中报错:repomd.xml: [Errno 14] HTTP Error 404: Not Found Trying other 解决办法

yum安装过程中报错:repomd.xml: [Errno 14] HTTP Error 404: Not Found Trying other 解决办法   查看/etc/yum.repos.d/CentOS-Base.repo  把里面地址: http:/

up vote 0 down vote favorite 1 I'm trying to install a package on a old Fedora 20 virtual machine. yum install<the_package_name> results in a failure with an HTTP 403 error: http://download.fedoraproject.org/<...(truncated)...>/repomd.xml:

[Errno 14] HTTP Error 403 - Forbidden

My web-browser can't see anything at http://download.fedoraproject.org/pub/fedora/linux/updates/20 so I realize FC20 is no more supported (EOL) and its repository URL has changed. So I fix the baseurl in /etc/yum.repos.d/fedora.repo to look like this: baseurl=http://archives.fedoraproject.org/<...(truncated)...>

I'm sure the URL is now correct, because I can download repomd.xml using curl or wget, and access it in my web browser... But yum install <the_package_name> continues to fail with an HTTP 403 error! It can't access repomd.xml at the correct URL: http://archives.fedoraproject.org/<...(truncated)...>/repomd.xml:

[Errno 14] HTTP Error 403 - Forbidden

Can you help me overcome this issue and install packages on this old Fedora (FC 20)? Note 1: I'm working from behind a proxy (not my choice). Note 2: Upgrading my Fedora 20 to Fedora 21 or 22 is not an option either. SOLVED /etc/yum.conf: remove spurious line proxy=http://<wrong proxy IP address> /etc/yum.repos.d/fedora.repo: update the Fedora repository URL /etc/yum.repos.d/fedora-updates.repo: update the Fedora repository URL yum clean metadata yum install <the_package> works fine now, thanks! http proxy fedora yum http-proxy
  |
  this question edited Oct 2 '15 at 8:28 asked Sep 9 '15 at 14:59 Bludzee 1,064 3 15 27      Do you have the proxy credentials specified for yum? That error is probably coming from the proxy if you don't. –  Etan Reisner Sep 9 '15 at 15:03      Is it in any of the other repo files? Does yum clean metadata && yum install git work better? –  Etan Reisner Sep 9 '15 at 15:44



 |  1 Answers

up vote 0 down vote ---Accepted---Accepted---Accepted---

Here are the suggestions (from Etan Reisner) that helped me solve the issue: Check the proxy configuration in /etc/yum.conf Check all YUM .repo files are using the up-to-date Fedora repo URL Launch yum clean metadata to ensure YUM uses the updated .repo files contents Try again yum install <the_package>
  |
  this answer edited Oct 2 '15 at 8:30 answered Sep 30 '15 at 10:02 Bludzee 1,064 3 15 27



 | 

推荐:CentOS 6.4 YUM 安装MySQL Proxy

http://netkiller.github.io/mysql/mysql-proxy.html    5.2. CentOS   # yum install mysql-proxy # cat /etc/sysconfig/mysql-proxy# Options for mysql

up vote 0 down vote favorite 1 I'm trying to install a package on a old Fedora 20 virtual machine. yum install<the_package_name> results in a failure with an HTTP 403 error:

相关阅读排行


相关内容推荐

最新文章

×

×

请激活账号

为了能正常使用评论、编辑功能及以后陆续为用户提供的其他产品,请激活账号。

您的注册邮箱: 修改

重新发送激活邮件 进入我的邮箱

如果您没有收到激活邮件,请注意检查垃圾箱。