yum update or yum install failing yummain.user_main(sys.argv[1:], exit_code=True)

Yum install or yum update command failing with below errors

Traceback (most recent call last):
  File “/bin/yum”, line 29, in
    yummain.user_main(sys.argv[1:], exit_code=True)
  File “/usr/share/yum-cli/yummain.py”, line 365, in user_main
    errcode = main(args)
  File “/usr/share/yum-cli/yummain.py”, line 271, in main
    return_code = base.doTransaction()
  File “/usr/share/yum-cli/cli.py”, line 773, in doTransaction
    resultobject = self.runTransaction(cb=cb)
  File “/usr/lib/python2.7/site-packages/yum/__init__.py”, line 1736, in runTransaction
    if self.fssnap.available and ((self.conf.fssnap_automatic_pre or
  File “/usr/lib/python2.7/site-packages/yum/__init__.py”, line 1126, in
    fssnap = property(fget=lambda self: self._getFSsnap(),
  File “/usr/lib/python2.7/site-packages/yum/__init__.py”, line 1062, in _getFSsnap
  File “/usr/lib/python2.7/site-packages/yum/fssnapshots.py”, line 158, in __init__
    self._vgnames = _list_vg_names() if self.available else []
  File “/usr/lib/python2.7/site-packages/yum/fssnapshots.py”, line 56, in _list_vg_names
    names = lvm.listVgNames()
lvm.LibLVMError: (0, ”)

Solution :

reboot server
yum clean metadata
yum clean all
yum update

Leave a Reply

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

WordPress.com Logo

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

Twitter picture

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

Facebook photo

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

Connecting to %s