Ask Your Question

F19: Yum not working after update (solved)

asked 2013-11-05 01:48:10 -0500

jayjayking gravatar image

updated 2014-04-11 16:02:21 -0500

remjg gravatar image


After some updates I now cannot install - for example Scribus sudo yum install scribus

Using the previous command produces this output: There was a problem importing one of the Python modules required to run yum. The error leading to this problem was:

/lib/ file too short

Please install a package which provides this module, or verify that the module is installed correctly.

It's possible that the above module doesn't match the current version of Python, which is: 2.7.5 (default, Aug 22 2013, 09:31:33) [GCC 4.8.1 20130603 (Red Hat 4.8.1-1)]

If you cannot solve this problem yourself, please go to the yum faq at: h t t p://

How could I get Yum working? I know I could reinstall the system, but that's not the first option.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2013-11-05 03:26:51 -0500

marcindulak gravatar image

/lib/ belongs to the rpm-libs package and is a symbolic link to /lib/*. Most likely you got /lib/ overwritten somehow, so it is no longer a link to the target.

Check if /lib/* exists, and if so:

rm -fv /lib/
ln -sv `basename /lib/*` /lib/

I find the syntax of the last step too implicit, what it does is:

cd /lib; ln -sv `basename /lib/*`

After that the system should look like (your version of so* may differ):

$ ls -l /lib/*
lrwxrwxrwx. 1 root root     15 Sep 18 10:51 /lib/ ->
-rwxr-xr-x. 1 root root 420404 Sep  9 14:07 /lib/

If /lib/* does not exist download manually the rpm-libs RPM that corresponds to your Fedora version (cat /etc/redhat-release) and bitness (uname -m), extract it's contents with rpm2cpio as described here, move the ./usr/lib*/* to it's place on the filesystem and create the link.

edit flag offensive delete link more

answered 2013-11-05 04:11:37 -0500

jayjayking gravatar image

Yes! This worked! And the same was with the file /lib/

Thank you so much! :)

edit flag offensive delete link more

Question Tools


Asked: 2013-11-05 01:48:10 -0500

Seen: 1,870 times

Last updated: Nov 05 '13