Tuesday, November 5, 2013

Unable to install after update in Fedora 19

It is common that we face issues after updates. Whatever the operating system you use, after update something goes wrong. Updates alter the core files of the operating system and so issue arises. In my Fedora 19, after updates, YUM stopped working. It means I was not able to install any packages using command line. After slogging in internet for hours I found the solution.

Issue:
When you try to install any package, say #yum install vlc; the following error message occurs.

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.

Solution:
During updates the /lib/librpmio.so.3 directory will be overwritten or deleted. So we need to configure this directory again to make YUM work as normal.

If /lib/librpmio.so.3 directory exists:
Use the below commands to configure the directory as default.

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

Now check if the following output appears after entering the below command.
# ls -l /lib/librpmio.so*
lrwxrwxrwx. 1 root root     3 Nov 18 10:51 /lib/librpmio.so.3 -> librpmio.so.3.2.0
-rwxr-xr-x. 1 root root 420404 Nov  9 14:07 /lib/librpmio.so.3.2.0

Note: so* version may differ from each computer.

If /lib/librpmio.so.3.* directory is not there:
1. Download rpm-libs RPM. You can download it from here: http://rpmfind.net/linux/rpm2html/search.php?query=rpm-libs http://rpmfind.net/linux/rpm2html/search.php?query=rpm-libs
2. Download depending on the version and your hardware.
3. Extract it and move to ./usr/lib*/librpmio.so.3.*
4. Append following command.
#ln -sv `basename /lib/librpmio.so.3.*` /lib/librpmio.so.3

No comments:

Post a Comment