LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-19-2009, 12:51 AM   #1
debsys07
Member
 
Registered: Mar 2007
Posts: 46

Rep: Reputation: 16
Ooh -- Help! Upgrade to Lenny Gone Bad


Is there a way to force aptitude or apt-get to completely re-do a version upgrade that got screwed up in the 'upgrade' step? I ran out of room during the 'aptitude full-grade' step. I had done:

(Changed sources.list to refer to 'lenny' instead of 'etch.)
aptitude update
aptitude install dpkg aptitude apt
aptitude upgrade
aptitude full-upgrade

I have since opened up more free space, then did the following:

aptitude update
aptitude upgrade
aptitude full-upgrade
shutdown -r now

All seemed to go well (except I expected more to happen to finish the full-upgrade step). As root I can execute commands. However, although users can log in, they can't execute commands, not even 'ls'. They can't find shared libraries, such as for the 'ls' command, I get the msg:

"ls: error while loading shared libraries: librt.so.1: cannot open shared object file: No such file or directory"

The runlevel is the default: 2.

Can the upgrade be "fixed," or do I have to reload from a full system backup & start over?

Any help?
Thanks,
Ron
 
Old 10-19-2009, 02:46 AM   #2
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Rep: Reputation: 103Reputation: 103
Start over.

I've often heard of this type of failure / problem (something goes screwy during an "upgrade") and it usually leaves a system in such a mess that you'll save yourself time and heartbreak by just reformatting and reinstalling from scratch. Trying to pick such a mess apart usually will take much longer than just admitting defeat and reinstalling from first principles.

For my part, I -never- upgrade, OR use auto-updates. Upgrades rarely succeed, and can be incredibly sensitive operations. It is much better to get a new version in its entirety, and reformat completely and reinstall, than trying to "upgrade". Auto-updates also are notorious for screwing up configurations and systems. "If it ain't broke, don't fix it."
 
Old 10-19-2009, 02:54 AM   #3
Lordandmaker
Member
 
Registered: Sep 2005
Location: London, UK
Distribution: Debian
Posts: 258

Rep: Reputation: 39
Hm, I've never had a system completely break on a dist-upgrade.

Code:
apt-get -f install
is the 'fix whatever went wrong last time' for apt-get, I don't know if it'll get you out of this mess, but it's likely worth a go. Sometimes it needs running a few times.
 
Old 10-19-2009, 11:38 AM   #4
debsys07
Member
 
Registered: Mar 2007
Posts: 46

Original Poster
Rep: Reputation: 16
Actually I never do the "auto" updates/upgrades, either. However, the last sarge-to-etch upgrade went fine. This time it's my fault for not double-checking disk space. It seems to me always starting from a reformat is putting yourself through the worst case scenario as a default. I may be resorting to that, but it's worth giving an easier route a chance.

Anyway, back to my current problem: re-doing 'apt-get -f install(or upgrade)' does nothing. I tried 'aptitude clean' then 'aptitude update' to re-get all the packages. It gets nothing into /var/cache/apt/archives. Obviously if I can't get the packages down I'm definitely starting from scratch.

So, any apt command or option that FORCES it to bring down all packages for a dist?

Thanks for the replies!
-Ron
 
  


Reply



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
Looking to upgrade Lenny... mkisow Debian 2 06-12-2009 01:39 PM
Broken upgrade to Lenny Ephracis Debian 2 02-21-2009 07:49 PM
Can not upgrade from Etch to Lenny ? ashikaumanga Linux - General 6 02-02-2009 08:14 PM
bad OpenGL on Intel 945GM Thinkpad X60 lenny Peterius Debian 1 12-30-2008 11:48 PM
lenny upgrade problem buhtl Debian 1 01-03-2008 05:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 07: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
Open Source Consulting | Domain Registration