Error while updating YUM

Today While updating yum on one of the server I  face the error as below ::


[root@323191 yum.repos.d]# yum update
Loaded plugins: fastestmirror
Setting up Remove Process
No Match for argument: epel
Loading mirror speeds from cached hostfile
Traceback (most recent call last):
File “/usr/bin/yum”, line 29, in <module>
yummain.user_main(sys.argv[1:], exit_code=True)
File “/usr/share/yum-cli/”, line 285, in user_main
errcode = main(args)
File “/usr/share/yum-cli/”, line 136, in main
result, resultmsgs = base.doCommands()
File “/usr/share/yum-cli/”, line 438, in doCommands
return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
File “/usr/share/yum-cli/”, line 419, in doCommand
return base.erasePkgs(extcmds)
File “/usr/share/yum-cli/”, line 861, in erasePkgs
self._checkMaybeYouMeant(arg, always_output=False)
File “/usr/share/yum-cli/”, line 647, in _checkMaybeYouMeant
matches = self.doPackageLists(patterns=[arg], ignore_case=False)
File “/usr/lib/python2.6/site-packages/yum/”, line 2327, in doPackageLists
avail = self.pkgSack.returnNewestByNameArch(patterns=patterns,
File “/usr/lib/python2.6/site-packages/yum/”, line 897, in <lambda>
pkgSack = property(fget=lambda self: self._getSacks(),
File “/usr/lib/python2.6/site-packages/yum/”, line 682, in _getSacks
File “/usr/lib/python2.6/site-packages/yum/”, line 265, in populateSack
File “/usr/lib/python2.6/site-packages/yum/”, line 92, in doSetup‘postreposetup’)
File “/usr/lib/python2.6/site-packages/yum/”, line 184, in run
func(conduitcls(self, self.base, conf, **kwargs))


Resolution ::

Open File: /etc/yum/pluginconf.d/fastestmirror.conf

vi /etc/yum/pluginconf.d/fastestmirror.conf

Change enabled=1 TO enabled=0

and Fire command

[root@323191 yum.repos.d]# yum clean all
[root@323191 yum.repos.d]# yum update
It should be fixed 🙂 🙂 🙂

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: