LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-17-2009, 06:04 PM   #1
rcache
LQ Newbie
 
Registered: Jul 2009
Posts: 1

Rep: Reputation: 0
rpm hosed during CentOS upgrade from 4.4 to 5.3


Hello All, this is my first post to LQ and I'm fairly new to CentOS.

Attempting to install CentOS-5 kept ejecting CD saying something like, no CD was found with CentOS install files. So I figured maybe if I installed an older version and upgraded I'd avoid the hardware issue. 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/Migrat...verCD_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:

rpm -e VFlib2 caching-nameserver autofs kudzu pcmcia-cs xorg-x11 newt-perl hal crypto-utils --nodeps

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 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 (searched for cc and gcc).

Any suggestions are greatly appreciated!!!

Last edited by rcache; 07-17-2009 at 06:05 PM.
 
Old 07-18-2009, 11:36 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531
Quote:
Originally Posted by rcache View Post
Attempting to install CentOS-5 kept ejecting CD saying something like, no CD was found with CentOS install files.
Maybe your installer CD wasn't OK. Did you verify the hash?


Quote:
Originally Posted by rcache View Post
rpm: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory
Install the right nss RPM by hand? Doubt that'll be the end of it though.


Quote:
Originally Posted by rcache View Post
Any suggestions are greatly appreciated!!!
The "upgrade path" you choose is problematic to say the least because I'm pretty sure there have been major RPM/SQLite/Python changes between Centos-4 and Centos-5. Like said at EE I *really* would stress finding a way to cleanly install Centos-5: in the end this will prove to be the least error-prone, most efficient and most stable solution. That said, with 'rpm2cpio filename.rpm|cpio -idm' you should be able to get most things into place (run the 'rpm -q filename.rpm --scripts' parts manually) after which you can 'rpm -i --justdb filename.rpm' to update the RPMDB. I would also like to say that "give errors" isn't as qualitatively good as posting (or attaching files containing) exact error lines.
 
  


Reply

Tags
centos, rpm


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Upgrade hosed up my xwindows mossy Linux - Desktop 12 01-12-2008 12:18 AM
Hosed my rpm installation (i.e. "rpm -e rpm") Mad Scientist Fedora 6 03-02-2007 01:42 AM
Help saving data in /home after upgrade attempt hosed system SuperK Linux - Software 6 02-25-2007 09:58 PM
tried to upgrade to GIMP 2.0...hosed Gnome solstice123 Linux - General 9 02-17-2004 12:33 PM
apt-get dist-upgrade hosed gnome bosewicht Linux - Newbie 6 10-25-2003 05:34 PM


All times are GMT -5. The time now is 06:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration