unable to update

THIS IS THE ERROR I AM GETTING WHENEVER I RUN UPDATE FROM WEBMIN

Now updating ust-virtual-server-mobile ..

Installing package(s) with command yum -y install ust-virtual-server-mobile ..

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

/usr/lib/librpm-4.4.so: invalid ELF header

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.4.3 (#1, Sep 3 2009, 15:37:12) [GCC 4.1.2 20080704 (Red Hat 4.1.2-46)]

If you cannot solve this problem yourself, please go to the yum faq at: http://wiki.linux.duke.edu/YumFaq

.. install failed!

No packages were installed. Check the messages above for the cause of the error.

Status: 
Closed (fixed)

Comments

bislinks's picture
Submitted by bislinks on Fri, 07/02/2010 - 14:07 Pro Licensee

I GET THE SAME ERROR WHEN I RUN yum -y update FROM SSH

That looks pretty bad .. that is a rather critical library.

You can check for file corruption by running

rpm -V rpm-libs

let me know what it outputs..

bislinks's picture
Submitted by bislinks on Sat, 07/03/2010 - 12:49 Pro Licensee

Results of command: rpm -v rpm-libs

rpm: error while loading shared libraries: /usr/lib/librpm-4.4.so: invalid ELF header

Joe's picture
Submitted by Joe on Sat, 07/03/2010 - 16:53 Pro Licensee

This probably indicates some serious issues on your system. Either a failing disk, some sort of malware running loose, an accidental "rm -rf *" somewhere where it was a really bad idea to "rm -rf", or something else gone horribly astray.

So, what else is not working on the system? I'd be surprised it there aren't a lot of broken bits...unless you or someone just killed this one file.

If it's not failing hardware, the easiest way you can probably start getting back to sanity is by copying this file in from a known-good location (an existing install of the same OS version with the same rpm version would be ideal).

If it turns out that there are more broken files than just that one, you'll still have your work cut out for you in figuring out what went wrong, and how to get it fixed. But, maybe we'll be lucky and it really is just one bad file.

I do want to point out that this is not a Webmin or Virtualmin issue (and was not caused by them; you just happen to use the Virtualmin UI to RPM, so that's where you saw the problem first). So we're maybe not the absolute best people to be asking. But we'll try to help...failing that, you might try bringing this problem up in a CentOS forum. They may have better advice and more experience in recovering from this particular problem. ;-)

bislinks's picture
Submitted by bislinks on Sat, 07/03/2010 - 21:41 Pro Licensee

Thanks.

I have decided to re-install the OS, sometime next week.

If that does not solve the issue, I will replace the HDD.

In case you want to have a look at the system, let me know, I will send the root credentials.

This is my backup server.

That seems like the safest thing to do - you are likely seeing some kind of disk corruption that is destroying files.

That seems like the safest thing to do - you are likely seeing some kind of disk corruption that is destroying files.

bislinks's picture
Submitted by bislinks on Mon, 07/05/2010 - 14:44 Pro Licensee

Well, Jamie, I did what you said: "copying from another system", and it worked like a charm.

But, while the yum -y update was going on, i accidentally pressed cntrl c on the ssh window, and it stopped abrutply. thereafter, i could not do yum -y update on ssh.

But when I did the update from webmin, it looks like it (recovered from accident?) is doing well. i did not see that warning again.

Now the system is up-to-date.

Thanks for your help.

CJ

bislinks's picture
Submitted by bislinks on Mon, 07/05/2010 - 14:49 Pro Licensee

Now, if I do yum -y update on ssh, I am not getting that error any more.

Ok, cool .. hopefully that was the only corrupt file! If so, just copying it from another system will do the job.