Ask Your Question
0

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

Hi!

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/librpmio.so.3: 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://yum.baseurl.org/wiki/Faq

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
2

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

marcindulak gravatar image

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

Check if /lib/librpmio.so.3.* exists, and if so:

rm -fv /lib/librpmio.so.3
ln -sv `basename /lib/librpmio.so.3.*` /lib/librpmio.so.3

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

cd /lib; ln -sv `basename /lib/librpmio.so.3.*` librpmio.so.3

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

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

If /lib/librpmio.so.3.* 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 https://ask.fedoraproject.org/question/35293/how-can-i-install-draftsight-on-fedora-19/, move the ./usr/lib*/librpmio.so.3.* to it's place on the filesystem and create the link.

edit flag offensive delete link more
0

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

jayjayking gravatar image

Yes! This worked! And the same was with the file /lib/librpm.so.3

Thank you so much! :)

edit flag offensive delete link more

Question Tools

Stats

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

Seen: 1,870 times

Last updated: Nov 05 '13