Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
"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.
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
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
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
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.
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.
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
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]
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.