top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Yum errors on centos

0 votes
465 views

I have a machine that recently had some file system corruption. fsck was able repair the file system but I am getting the following error when I try to do yum update:

[Errno 21] Is a directory: '/var/lib/yum/yumdb/e/2f883c08e3b596b66fcc19c6b4d73b11c9aaa43e-e2fsprogs-1.41.12-14.el6_4.2-x86_64/checksum_type'

In searching Google, some suggested renaming the yumdb but that just results in a traceback when I run yum.

There are some files in lost+found but I am not sure what the above file should look like and inode numbers are not useful to me.

Anyone have an idea how to fix this without reloading the machine?

posted Jul 1, 2013 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

0 votes

You can delete that file without too much problems, according to http://yum.baseurl.org/wiki/YumDB

answer Jul 1, 2013 by anonymous
0 votes

you can do without any issue
rm -rf /var/lib/yum/yumdb/*
rm -rf /var/lib/yum/history/*

and after twice "yum history new" there are no longer tracebacks been there, done that on a lot of machines multiple times to get rid of this tons of old metadata with no benefit

answer Jul 1, 2013 by anonymous
Similar Questions
+1 vote

During yum upgrade a couple days ago, I saw this:

Cleanup : kernel-3.10.0-229.20.1.el7.x86_64  35/64
warning: file /lib/modules/3.10.0-229.20.1.el7.x86_64/modules.softdep: 
remove failed: No such file or directory
warning: file /lib/modules/3.10.0-229.20.1.el7.x86_64/modules.devname: 
remove failed: No such file or directory

Should I be concerned about this? What could have caused it?

+2 votes

I am having problems with a CentOS 6.4 box that I was in the process of doing a yum update to 6.5. Unfortunately the system hung during the update and I was forced to reboot it and it is now a bit of a mess.

Can someone point me in the direction of any documentation that would assist in the recovering from this.

+2 votes

I have a small problem with some packages : I was doing an update over ssh and my connection was interrupted .. now i have a lots of duplicates and if i try to remove them, yum tries to uninstall all system (447 packages 1.4 gb)

Any idea how can I clean this mess? It would be pretty bad if the machine needs to be re-installed only because the connection went bad during the process...

+1 vote

In order to make the same installation on two servers where all was installed via yum/rpm, I want to dump a list of all installed packages on the first server.

My problem is if I just "yum list installed", some weird formatting prints packages information on 2 lines...
I have to

 # yum list installed | awk '{print $1}' 
 | grep -v '@' | grep -vE '^[0-9]'

Is there a cleaner way?

 # rpm -aq

Is not OK because it includes version in a way it's more hard to parse just the package name.

+1 vote

Is there an 'after the fact' way to find what yum groups are installed, including ones that were added with 'yum groupinstall' instead of the initial anaconda install?

...