Link to home
Start Free TrialLog in
Avatar of jashcache
jashcache

asked on

RPM completely hosed during CentOS upgrade from 4.4 to 5

A little history....

Install of CentOS-5 kept ejecting CD saying something like, no CD was found with CentOS install files. So I figured I'd install an older version and upgrade. Since I've never done an upgrade with this distro in this way I used the upgrade "not recommended" on the CentOS.org website.

http://wiki.centos.org/HowTos/MigrationGuide/ServerCD_4.4_to_5

There were some version differneces between what was on the migration guid and the actual RPM index, but they were all minor so I figured that it was ok to use the later ones in the current index. found here:

http://mirror.centos.org/centos/5/os/i386/CentOS/

When I got to the section to "Remove deps/outdated packages", running the rpm command gave me this:

rpm: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory

Now anything using rpm give errors including yum and I'm to top it off I'm remote and to go reinstall is not impossible but fairly difficult as I am a couple hours away.

I'm currently attempting to reinstall rpm and just discovered that there is no compiler  installed (search for cc and gcc).

Any suggestions are greatly appreciated!!!


Avatar of Michael Worsham
Michael Worsham
Flag of United States of America image

Usually when you get a message like 'no CD was found with CentOS install files', it usually means you have a bad ISO.

I recommend downloading a new CentOS ISO. Another option would be to download the CentOS NetBoot ISO, burning it to a CD then using the Internet for downloading/installing CentOS in real-time from one of the CentOS image repositories.

CentOS NetInstall 5.3
http://www.chrisgountanis.com/technical/45-centos-netinstall.html
Avatar of jashcache
jashcache

ASKER

I thought so too... I've tried the following list:

CentOS-5.3-i386-LiveCD.iso  - (3 different CD's)
CentOS-5.3-i386-netinstall.iso - (2 different CD's)
CentOS-5.3-i386-bin-DVD.torrent - (3 different DVD's)

Then I tried Debian Etch and that installed no problem, but the most of the software I want to install is not supported for Debian.

So, after that I tried CentOS 4.4. Installed without any trouble.

Thanks for the response though! It seems this is a pretty tough question. I haven't gotten much response on other forums either.
ASKER CERTIFIED SOLUTION
Avatar of Mysidia
Mysidia
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Just for kicks, please describe your hardware being used. It quite possibly could be something isn't compatible with the latest version of CentOS, thus causing the problems.

SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you very much for the guidance!

I don't have another comparable CentOS machine with access to that network. So, copying may be difficult. Is there a way I can do that from the disk? Even if I could just restore rpm I believe I can correct the repo's, kernal, etc.

It looks like I can do that with the CPIO instructions. I will give those a try.

Not sure about the Server hardware off hand Because I inherited it. Though it had a RAM problem then, so i'm 99% sure on is the motherboard - Intel s3000ah. Any tool you can suggest to tell me what's on it? All I know is "lspci".
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
It took a while to get it done,  but after a couple of tries and thanks to the expert help, I was able to get it back to to a minimal OS and back to normal from there.

Thanks again for all your help!!