LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-10-2012, 09:39 PM   #1
newbie14
Member
 
Registered: Sep 2011
Posts: 646

Rep: Reputation: Disabled
EPEL Repo problem


Dear All,
I have tried to install the EPEL repo into my centos 6.3 via this method yum -y install /path/to/epel-release-6-7.noarch.rpm. There after now I have tried to yum install any thing else for e.g as below I get the error.

Code:
yum install logwatch
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
Here is some analysis results.

Code:
 a) rpm -q epel-release
epel-release-6-7.noarch

b) rpm -Vv epel-release
.........    /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
.........    /etc/rpm/macros.ghc-srpm
.........  c /etc/yum.repos.d/epel-testing.repo
.........  c /etc/yum.repos.d/epel.repo
.........    /usr/share/doc/epel-release-6
.........  d /usr/share/doc/epel-release-6/GPL

c)ls -al /etc/yum*
-rw-r--r--. 1 root root  969 Jun 22  2012 /etc/yum.conf

/etc/yum:
total 24
drwxr-xr-x.  5 root root 4096 Dec 31 19:25 .
drwxr-xr-x. 68 root root 4096 Dec 31 19:36 ..
drwxr-xr-x.  2 root root 4096 Jun 22  2012 pluginconf.d
drwxr-xr-x.  2 root root 4096 Jun 22  2012 protected.d
drwxr-xr-x.  2 root root 4096 Jun 22  2012 vars
-rw-r--r--.  1 root root  444 Jun 22  2012 version-groups.conf

/etc/yum.repos.d:
total 32
drwxr-xr-x.  2 root root 4096 Dec 31 19:07 .
drwxr-xr-x. 68 root root 4096 Dec 31 19:36 ..
-rw-r--r--.  1 root root 1926 Jun 26  2012 CentOS-Base.repo
-rw-r--r--.  1 root root  637 Jun 26  2012 CentOS-Debuginfo.repo
-rw-r--r--.  1 root root  626 Jun 26  2012 CentOS-Media.repo
-rw-r--r--.  1 root root 2593 Jun 26  2012 CentOS-Vault.repo
-rw-r--r--.  1 root root  957 May  9  2012 epel.repo
-rw-r--r--.  1 root root 1056 May  9  2012 epel-testing.repo
How could I resolve this issue? Thank you.
 
Old 10-11-2012, 02:31 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
"cat /etc/yum.repos.d/epel.repo" would be the most useful thing to show us really.

This often ends up being an inability to resolve the hostname being specified in the repo. A "yum clean all" can sometimes blow out some cobwebs too though if it's not something like that.
 
Old 10-11-2012, 04:46 AM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
please add the output of
Code:
su -
yum repolist all
and also install the REQUIRED yum plugin "yum-priorities"
and CONFIGURE IT!!!!

see the install instructions on the wiki
http://wiki.centos.org/AdditionalResources/Repositories
and pay attention to ALL the warnings in the section
"Third Party Repositories"
and
"Extra Packages for Enterprise Linux (EPEL)"
- the plugin -
http://wiki.centos.org/PackageManagement/Yum/Priorities

just because it is in the folder"/etc/yum.repos.d"
dose not mean that it is turned on

Also try uninstalling "fastestmirror"
it is known to cause more problems that it tries to solve
and mostly is a royal pain in the "bleep"

Last edited by John VV; 10-11-2012 at 05:06 AM.
 
Old 10-11-2012, 10:01 AM   #4
newbie14
Member
 
Registered: Sep 2011
Posts: 646

Original Poster
Rep: Reputation: Disabled
Dear Kewpie,
I have done the yum clean all and below is the results you required.

Quote:
cat /etc/yum.repos.d/epel.repo
[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
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
 
Old 10-12-2012, 12:28 AM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
yum -y install /path/to/epel-release-6-7.noarch.rpm
you might want to get out of the habit of using the VERY dangerous "-y" ( yes to ALL ) option
look in the yum log to see what else that command installed
/var/log/yum.log
if you are lucky then ONLY that repo will have been installed
if you are unlucky then it grabbed other programs also


and the rebuild of the rpm database DID NOT work ?? right
this command
Code:
su -
----- your root password when asked for-----
rpm --rebuilddb
yum clean all
yum update
that did NOT fix it ????
 
Old 10-12-2012, 07:06 AM   #6
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
try this command to add a repo list of epel-release

Code:
# rpm -Uvh http://bit.ly/KANG3P
once done

Code:
# yum repolist
 
Old 10-13-2012, 12:25 PM   #7
newbie14
Member
 
Registered: Sep 2011
Posts: 646

Original Poster
Rep: Reputation: Disabled
Dear John,
The yum.log seem to be empty. Below are the commands you suggested and still the same problem.

Quote:
[root@localhost log]# rpm --rebuilddb
[root@localhost log]# yum clean all
Loaded plugins: fastestmirror
Cleaning repos: base epel extras updates
Cleaning up Everything
Cleaning up list of fastest mirrors
[root@localhost log]# yum update
Loaded plugins: fastestmirror
Determining fastest mirrors
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
[root@localhost log]#
 
Old 10-13-2012, 12:26 PM   #8
newbie14
Member
 
Registered: Sep 2011
Posts: 646

Original Poster
Rep: Reputation: Disabled
Dear Deep,
I did you step.

Quote:
rpm -Uvh http://bit.ly/KANG3P
Retrieving http://bit.ly/KANG3P
warning: /var/tmp/rpm-tmp.QHPRmd: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
Preparing... ########################################### [100%]
package epel-release-6-7.noarch is already installed
Quote:
yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
 
Old 10-13-2012, 07:49 PM   #9
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
have you uninstalled fastmirror?
is is known to CAUSE many many problems
while only sort of maybe works for solving a slow update form a over taxed mirror.
( i have never had it work well)

Quote:
The yum.log seem to be empty.
THAT is imposable !!!!
you did get updates
they WILL be listed
YOU also INSTALLED the "epel-release"
yum WILL HAVE LOGGED THAT


and

Are you behind a router ?


Quote:
I did you step.

Quote:
rpm -Uvh http://bit.ly/KANG3P
Retrieving http://bit.ly/KANG3P
warning: /var/tmp/rpm-tmp.QHPRmd: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
Preparing... ########################################### [100%]
package epel-release-6-7.noarch is already installed
not very wise installing random rpms from random strangers from UNSIGNED sources
that is a VERY fast way to get your computer turned into a zombie

NOW while i am mostly sure that that rpm is ?? mostly?? safe ???
there is NO WAY of knowing IF it might have been tampered with( other than actually running "diff" on it to compare it to the rpm in the repo )

that is why yum checks the encryption signature to the OFFICIAL signature from the OFFICIAL repo.

Last edited by John VV; 10-13-2012 at 08:01 PM.
 
Old 10-14-2012, 12:44 PM   #10
newbie14
Member
 
Registered: Sep 2011
Posts: 646

Original Poster
Rep: Reputation: Disabled
Dear John,
What is the right command to uninstall fastmirror? Beside this yum.log file there is another one withsome dates as the name in that I can see a number of entry regarding the yum updates. So what should be my next step? Thank you.
 
Old 10-14-2012, 09:17 PM   #11
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
you might want to look on the wiki
http://wiki.centos.org/PackageManagement/Yum
from the install instructions for the plugin
http://wiki.centos.org/PackageManage.../FastestMirror
edit
"/etc/yum/pluginconf.d/fastestmirror.conf"
and change the "enabled=1" to "enabled=0"
 
Old 10-19-2012, 10:58 AM   #12
newbie14
Member
 
Registered: Sep 2011
Posts: 646

Original Poster
Rep: Reputation: Disabled
Dear John,
I have disabled it accordingly and run the yum update command and below is the results. I guess is still got a problem here right?
Quote:
yum update
base | 3.7 kB 00:00
Error: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again
 
Old 10-19-2012, 04:44 PM   #13
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
i just downloaded THE CORRECT
( and in comparing it to what YOU posted above)
you installed a messed up rpm - one that is pointing to THE WRONG location
epel-release-6-7.noarch.rpm
that is using the CORRECT web address

by installing a random rpm from some random source you installed the WRONG files

uninstall that mangled and incorrect BAD repo you installed from some random source -- it is BAD.
Code:
su -
yum remove epel-release
rpm --rebuilddb
yum update
THEN INSTALL the CORRECT ONE !!!
From the EPEL web site!!!
see the CentOS wiki
on installing third party repos
http://wiki.centos.org/AdditionalResources/Repositories
the correct rpm IS listed-- and is THIS ONE

http://dl.fedoraproject.org/pub/epel...6-7.noarch.rpm
and is listed on the epel web site
http://fedoraproject.org/wiki/EPEL
 
Old 10-19-2012, 05:24 PM   #14
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by John VV View Post
THEN INSTALL the CORRECT ONE !!!
From the EPEL web site!!!
Watch it John, we can see your blood pressure rising ;-p


Quote:
Originally Posted by John VV View Post
the correct rpm IS listed-- and is THIS ONE
http://dl.fedoraproject.org/pub/epel...6-7.noarch.rpm
Ahhh but generally speaking $basearch matters, doesn't it?

[EDIT]No, it doesn't matter as both i386 and x86_64 packages share the same SHA1 hash (96C6A8F666C4656037F06CEB769E625B062F567D) and contain the same files.[/EDIT]

Last edited by unSpawn; 10-19-2012 at 05:34 PM.
 
Old 10-20-2012, 09:38 AM   #15
newbie14
Member
 
Registered: Sep 2011
Posts: 646

Original Poster
Rep: Reputation: Disabled
Dear John,
I have tried your steps and still failed as below. I am sorry with my bad problem here. Thank you.
Quote:
yum remove epel-release
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:6-7 will be erased
--> Finished Dependency Resolution
base | 3.7 kB 00:00
Error: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
[root@localhost ~]# rpm --rebuilddb
[root@localhost ~]# yum update
base | 3.7 kB 00:00
Error: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
funny epel 404 error when adding repo borgy95 Linux - Software 3 08-24-2012 11:48 AM
Install phpMyAdmin on Linux Centos 6.2 without EPEL repo rewards Linux - Software 6 03-21-2012 03:51 PM
EPEL REPO - Problem agriz Linux - Server 2 12-01-2011 04:59 AM
epel repo centos 5.4 fernfrancis Linux - Newbie 12 10-02-2010 05:36 PM
yum not working with epel repo fw12 Red Hat 2 02-14-2010 08:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration