Yum Update Not Working

Issues related to applications and software problems
Post Reply
milan_nr
Posts: 3
Joined: 2014/10/28 09:43:10

Yum Update Not Working

Post by milan_nr » 2014/10/28 09:51:22

Hi,

I've bee trying to fix this problem in the past 24h witout success. Each time I run update, I get following:

Code: Select all

Transaction Summary
===============================================================================================================================================================================================================================================================================
Upgrade  6 Packages

Total download size: 3.8 M
Is this ok [y/d/N]: y
Downloading packages:
updates/7/x86_64/prestodelta                                                                                                                                                                                                                            | 160 kB  00:00:00     
Delta RPMs reduced 3.8 M of updates to 1.2 M (68% saved)
(1/6): kexec-tools-2.0.4-32.el7.centos.4_2.0.4-32.el7.centos.5.x86_64.drpm                                                                                                                                                                              | 236 kB  00:00:00     
(2/6): systemd-sysv-208-11.el7_0.4.x86_64.rpm                                                                                                                                                                                                           |  35 kB  00:00:00     
(3/6): systemd-libs-208-11.el7_0.2_208-11.el7_0.4.x86_64.drpm                                                                                                                                                                                           |  52 kB  00:00:00     
(4/6): libxml2-2.9.1-5.el7_2.9.1-5.el7_0.1.x86_64.drpm                                                                                                                                                                                                  |  98 kB  00:00:15     
(5/6): libgudev1-208-11.el7_0.2_208-11.el7_0.4.x86_64.drpm                                                                                                                                                                                              |  35 kB  00:00:15     
(6/6): systemd-208-11.el7_0.2_208-11.el7_0.4.x86_64.drpm                                                                                                                                                                                                | 811 kB  00:00:17     
Finishing delta rebuilds of 1 package(s) (2.6 M)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                                                                                           58 kB/s | 1.2 MB  00:00:22     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Traceback (most recent call last):
  File "/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 355, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 261, in main
    return_code = base.doTransaction()
  File "/usr/share/yum-cli/cli.py", line 771, in doTransaction
    resultobject = self.runTransaction(cb=cb)
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1728, in runTransaction
    if self.fssnap.available and ((self.conf.fssnap_automatic_pre or
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1125, in <lambda>
    fssnap = property(fget=lambda self: self._getFSsnap(),
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1061, in _getFSsnap
    devices=devices)
  File "/usr/lib/python2.7/site-packages/yum/fssnapshots.py", line 156, in __init__
    self._vgnames = _list_vg_names()
  File "/usr/lib/python2.7/site-packages/yum/fssnapshots.py", line 59, in _list_vg_names
    stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__
    errread, errwrite)
  File "/usr/lib64/python2.7/subprocess.py", line 1308, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
I have disabled fastest mirror as well as additional repos.
Did anybody else have a similar issue?

User avatar
TrevorH
Forum Moderator
Posts: 29457
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Yum Update Not Working

Post by TrevorH » 2014/10/28 11:39:58

What do you get if you run /sbin/lvm vgs -o vg_name ? Do you have any LVM snapshots defined?
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

milan_nr
Posts: 3
Joined: 2014/10/28 09:43:10

Re: Yum Update Not Working

Post by milan_nr » 2014/10/28 13:27:06

No LVM whatsoever, only physical volumes. Here is how partitions are organized:

Code: Select all

/dev/sdg1 on /var type ext4 (rw,relatime,seclabel,data=ordered)
/dev/sdf1 on /home type ext4 (rw,relatime,seclabel,data=ordered)
/dev/sde3 on / type ext4 (rw,relatime,seclabel,data=ordered)
/dev/sde2 swap
/dev/sdg1 is a RAID0 volume (hardware RAID), /var/sites is shared through nfs.

User avatar
TrevorH
Forum Moderator
Posts: 29457
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Yum Update Not Working

Post by TrevorH » 2014/10/28 14:06:28

Your yum stacktrace points into that module that is looking at LVM info and the command it runs is the one I asked you to run. Did you run it and did it return any output?
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

milan_nr
Posts: 3
Joined: 2014/10/28 09:43:10

Re: Yum Update Not Working

Post by milan_nr » 2014/10/28 14:28:04

Big THANKS man!

Lvm2 package and it's dependencies were not installed. As a matter of fact due to this, yum install didn't work as well. I manually pulled those packages from repo, installed them and bam!, yum update worked like a charm.

Cheers!

Post Reply

Return to “CentOS 7 - Software Support”