Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

epel on Centos 7

Status
Not open for further replies.

ogniemi

Technical User
Nov 7, 2003
1,041
0
0
PL
after I installed EPEL repos yum update hangs with no sense reason:

Code:
> GET /pub/epel//7/x86_64/repodata/repomd.xml HTTP/1.1
User-Agent: urlgrabber/3.10 yum/3.4.3
Host: fedora.mirrors.telekom.ro
Accept: */*
Pragma:no-cache

* Empty reply from server
* Connection #13 to host fedora.mirrors.telekom.ro left intact
2015-08-20 08:55:47,312 exception: [Errno 14] HTTP Error 302 - Found
2015-08-20 08:55:47,312 calling callback: (<bound method YumBaseCli.failureReport of <cli.YumBaseCli object at 0x245b290>>, (), {})
[highlight #EF2929][URL unfurl="true"]http://download.fedoraproject.org/pub/epel/7/x86_64/repodata/repomd.xml:[/URL] [Errno 14] HTTP Error 302 - Found[/highlight]
Trying other mirror.
2015-08-20 08:55:47,312 MIRROR: failed
2015-08-20 08:55:47,312 GR   mirrors: [] 0
2015-08-20 08:55:47,312 MAIN mirrors: [[URL unfurl="true"]http://download.fedoraproject.org/pub/epel/7/x86_64/[/URL]] 0


 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:

Code:
[highlight #73D216][root@centos7 yum.repos.d]# wget -q [URL unfurl="true"]http://download.fedoraproject.org/pub/epel/7/x86_64/repodata/repomd.xml[/URL]
[root@centos7 yum.repos.d]# echo $?
0[/highlight]
[root@centos7 yum.repos.d]# ls -al repomd.xml
-rw-r--r--. 1 root root 4541 Aug 17 18:24 repomd.xml
[root@centos7 yum.repos.d]# head -10 repomd.xml
<?xml version="1.0" ?>
<repomd xmlns="[URL unfurl="true"]http://linux.duke.edu/metadata/repo"[/URL] xmlns:rpm="[URL unfurl="true"]http://linux.duke.edu/metadata/rpm">[/URL]
 <revision>1439830892</revision>
 <tags>
   <content>binary-x86_64</content>
 </tags>
<data type="primary_db">
  <checksum type="sha256">76d4f46c34edd90cb24a5b33a398ac7fa7b6048ad8232fffec7d6e09e383fda2</checksum>
  <open-checksum type="sha256">f78e41ff5319e9629b9cdeadb9a310e222201a610665ff0cc99d8d003fad162f</open-checksum>
  <location href="repodata/76d4f46c34edd90cb24a5b33a398ac7fa7b6048ad8232fffec7d6e09e383fda2-primary.sqlite.xz"/>
[root@centos7 yum.repos.d]#


So, why yum gets stuck on the url and wget not?

Code:
[root@centos7 yum.repos.d]# yum upgrade ca-certificates --disablerepo=epel
No packages marked for update
[root@centos7 yum.repos.d]# yum update --disablerepo=epel
No packages marked for update
[root@centos7 yum.repos.d]# grep -e ^mirr -e ^baseurl -e enab -e ^\\[ epel*
epel.repo:[epel]
epel.repo:baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch
epel.repo:enabled=1
epel.repo:[epel-debuginfo]
epel.repo:baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch/debug
epel.repo:enabled=0
epel.repo:[epel-source]
epel.repo:baseurl=http://download.fedoraproject.org/pub/epel/7/SRPMS
epel.repo:enabled=0
epel-testing.repo:[epel-testing]
epel-testing.repo:mirrorlist=[URL unfurl="true"]http://mirrors.fedoraproject.org/metalink?repo=testing-epel7&arch=$basearch[/URL]
epel-testing.repo:enabled=0
epel-testing.repo:[epel-testing-debuginfo]
epel-testing.repo:mirrorlist=[URL unfurl="true"]http://mirrors.fedoraproject.org/metalink?repo=testing-debug-epel7&arch=$basearch[/URL]
epel-testing.repo:enabled=0
epel-testing.repo:[epel-testing-source]
epel-testing.repo:mirrorlist=[URL unfurl="true"]http://mirrors.fedoraproject.org/metalink?repo=testing-source-epel7&arch=$basearch[/URL]
epel-testing.repo:enabled=0
[root@centos7 yum.repos.d]#

Code:
[root@centos7 pluginconf.d]
# pwd
/etc/yum/pluginconf.d
[root@centos7 pluginconf.d]# grep ^enabled fastestmirror.conf
enabled=0

any clue what is going wrong in Centos 7? I don;t remember such issues in Centos 6.

of course I can download with wget packages from epel manually and install it with no issue, but why it does not work in yum?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top