Hello Everyone,
As per commitment in my last post that i will be posting the Error which i got while configuring Yum, and this is the only error i got while configuring Yum.
So here we go, after i was done with all package installation and everything and i tried – yum install telnet i got this error, for the time being i was thinking that i have not done anything which may fail this, however i need to dig into this problem any how.
So this is what i got:
[root@oragyan1 yum.repos.d]# yum install telnet
Plugin “filter-data” can’t be imported
/usr/lib/yum-plugins/kmod.py:25: DeprecationWarning: the sets module is deprecated
from sets import Set, ImmutableSet
Plugin “rhnplugin” can’t be imported
Loaded plugins: aliases, changelog, downloadonly, fastestmirror, keys, kmod, list-data, protect-packages, protectbase, refresh-packagekit, rhnplugin, security, tmprepo,
: verify, versionlock
This system is not registered with ULN.
ULN Satellite or ULN Classic support will be disabled.
Loading mirror speeds from cached hostfile
http://public-yum.oracle.com/repo/OracleLinux/OL6/latest/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 – “Couldn’t resolve host ‘public-yum.oracle.com'”
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: ol6_latest. Please verify its path and try again
[root@oragyan1 yum.repos.d]#
Now go to Directory – /etc/yum.repos.d to check what are the other files are present there in this directory.
[root@oragyan1 yum.repos.d]# ls -lrt
total 8
-rw-r–r–. 1 root root 96 Aug 12 14:43 repository.repo
-rw-r–r–. 1 root root 1707 Aug 12 22:42 public-yum.repo
[root@oragyan1 yum.repos.d]#
Now ideally our yum should pick up repository.repo to get the software list, but why and how. We have not configured anything that will redirect to this file.
So something is not correct here, whenever we run yum command it tries to pick up the file from /etc/yum.repos.d and check files properly.
So now there are two ways.
1. Keep all files except the one we created for our configuration (repository.repo), in old directory.
[root@oragyan1 yum.repos.d]# mkdir old
[root@oragyan1 yum.repos.d]# mv public-yum.repo ./old/
[root@oragyan1 yum.repos.d]#
[root@oragyan1 yum.repos.d]# yum install telnet
Plugin “filter-data” can’t be imported
/usr/lib/yum-plugins/kmod.py:25: DeprecationWarning: the sets module is deprecated
from sets import Set, ImmutableSet
Plugin “rhnplugin” can’t be imported
Loaded plugins: aliases, changelog, downloadonly, fastestmirror, keys, kmod, list-data, protect-packages, protectbase, refresh-packagekit, rhnplugin, security, tmprepo,
: verify, versionlock
This system is not registered with ULN.
ULN Satellite or ULN Classic support will be disabled.
Loading mirror speeds from cached hostfile
repository | 951 B 00:00 …
0 packages excluded due to repository protections
Reading version lock configuration
Setting up Install Process
Package 1:telnet-0.17-39.el5.x86_64 already installed and latest version
Nothing to do
[root@oragyan1 yum.repos.d]#
So it went well.
2. Grep enabled in other file except the current one – repository.repo and find out how many are enabled. In our case only 1 is enabled. Edit the file and disable it by making this entry as 0 like below.
[root@oragyan1 yum.repos.d]# grep enabled public-yum.repo
enabled=1
enabled=0
enabled=0
enabled=0
enabled=0
enabled=0
enabled=0
[root@oragyan1 yum.repos.d]#
[root@oragyan1 yum.repos.d]# vi public-yum.repo
[root@oragyan1 yum.repos.d]#
[root@oragyan1 yum.repos.d]#
[root@oragyan1 yum.repos.d]# grep enabled public-yum.repo
enabled=0
enabled=0
enabled=0
enabled=0
enabled=0
enabled=0
enabled=0
[root@oragyan1 yum.repos.d]#
Now try again:
[root@oragyan1 yum.repos.d]# yum install telnet
Plugin “filter-data” can’t be imported
/usr/lib/yum-plugins/kmod.py:25: DeprecationWarning: the sets module is deprecated
from sets import Set, ImmutableSet
Plugin “rhnplugin” can’t be imported
Loaded plugins: aliases, changelog, downloadonly, fastestmirror, keys, kmod, list-data, protect-packages, protectbase, refresh-packagekit, rhnplugin, security, tmprepo,
: verify, versionlock
This system is not registered with ULN.
ULN Satellite or ULN Classic support will be disabled.
Loading mirror speeds from cached hostfile
0 packages excluded due to repository protections
Reading version lock configuration
Setting up Install Process
Package 1:telnet-0.17-39.el5.x86_64 already installed and latest version
Nothing to do
[root@oragyan1 yum.repos.d]#
So the error is gone and it did not ask for telnet to install as it is already installed.
In my case it worked well. Let me know if the same thing does not help anyone in case.
Thanks for viewing.
Hope it helps…
Great help nice work brother