LinuxQuestions.org
Visit Jeremy's Blog.
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-20-2007, 03:36 AM   #1
davcefai
Member
 
Registered: Dec 2004
Location: Malta
Distribution: Debian Sid
Posts: 764

Rep: Reputation: 32
Can I roll back a failed libc6 upgrade?


I am running Debian Unstable, upgraded daily using Synaptic.

This morning I tried to upgrade libc6 from 2.6.1-5 to 2.6.1-6. However dpkg-configure segfaults on this package.

I cannot remove it without synaptic wanting to remove lots of packages. I can't find version 2.6.1-5 anywhere. Trying to force the version in testing also will remove lots of packages.

Is there somewhere I can get version 2.6.1-5 from or a way to work myself out of this mess?
 
Old 10-20-2007, 05:09 AM   #2
Daws
Member
 
Registered: May 2006
Location: UK
Distribution: Debian, Linux From Scratch
Posts: 416
Blog Entries: 1

Rep: Reputation: 30
http://snapshot.debian.net/archive/2...6.1-5_i386.deb

Is that the one you are looking for? If you want to find any of the optimised packages too, you can find them in the same place.

As a sidenote I just upgraded to 2.6.1-6 and dpkg had no problems. There may be something else afoot....
 
Old 10-20-2007, 07:38 AM   #3
davcefai
Member
 
Registered: Dec 2004
Location: Malta
Distribution: Debian Sid
Posts: 764

Original Poster
Rep: Reputation: 32
Quote:
There may be something else afoot....
I have to agree. I got the same error with the downgraded version.

My problem is, I don't know what to do next.

Any help appreciated.
 
Old 10-20-2007, 10:33 AM   #4
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,733
Blog Entries: 12

Rep: Reputation: 456Reputation: 456Reputation: 456Reputation: 456Reputation: 456
First stop using Synaptic to upgrade packages. In the long run in Sid that is a great way to trash your system. I dist-upgrade daily and 2.6.1-6 upgraded for me with no problems.

$ apt-cache policy libc6
libc6:
Installed: 2.6.1-6
Candidate: 2.6.1-6


You can also try looking in your dpkg/cache for the older version, should still be there as long as you haven't done apt-get autoclean or clean lately.

Last edited by craigevil; 10-20-2007 at 10:45 AM.
 
Old 10-20-2007, 12:16 PM   #5
davcefai
Member
 
Registered: Dec 2004
Location: Malta
Distribution: Debian Sid
Posts: 764

Original Poster
Rep: Reputation: 32
hmm.....
I thought that Synaptic would "protect" me from doing silly things. Time for a re-think.

I ran apt-get clean today to get rid of any potentially corrupt files which might have been causing the problem.

I downloaded the previous versions of libc6 and libc6-dev from snapshot.debian.net but dpkg still segfaults on libc6. libc6-dev won't configure because it depends on libc6. This even from the command line.

These 2 unconfigured packages are blocking anything I try to do because dpkg stops because of them.

While poking around I found that the directory /var/cache/apt-build/repository has subdirectories which are links to themselves Thus each one has subdirectories which are links to themselves, ad infinitum.

I'm assuming that this is wrong. Could it be causing my problem? If so could somebody tell me what the directory structure should be? My other Linux PC does not have apt-build installed.
 
Old 10-20-2007, 01:16 PM   #6
Daws
Member
 
Registered: May 2006
Location: UK
Distribution: Debian, Linux From Scratch
Posts: 416
Blog Entries: 1

Rep: Reputation: 30
Infinite symlinks to ./ usually serve a purpose. Even if they don't, they are usually harmless. I don't think it would be causing dpkg to fail.

I have run into dpkg segfaults before, unfortunately it usually involved me reinstalling, none the wiser as to what caused the original problem. It's not too much of a hassle for me, but of course I can't speak for you.

Are there any other errors or odd messages that might provide a clue?

Beyond that, I should warn you that if you haven't made backups already you definitely should. Possible solutions to these sorts of problems usually involve overriding dpkg's normal behaviour (never a good idea), even worse libc6 is the problem package (aaaaahhh!)
 
Old 10-20-2007, 08:22 PM   #7
jay73
Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
Afaik apt-get clean doesn't remove corrupt files - it only cleans out the cache of downloaded debs.

I have to say that I have found synaptic very reliable but then I've never used sid, which may (and probably is) a totally different story. I was stupid enough on one occasion, though, to enable sid in my sources.list in order to get a package that was not in testing and then do a full upgrade. Nothing broken but it was an unpleasant sensation to realize why I was suddenly receiving 100+ updates.

Have you tried an apt-get update && apt-get dist-upgrade? libc6 may come with some dependencies that can't be installed with a regular upgrade.

Last edited by jay73; 10-20-2007 at 08:25 PM.
 
Old 10-21-2007, 02:04 AM   #8
davcefai
Member
 
Registered: Dec 2004
Location: Malta
Distribution: Debian Sid
Posts: 764

Original Poster
Rep: Reputation: 32
Fixed!

The problem was in Debconf. See:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=443753

My frontend was, in fact, KDE.

Solution:

1. Edit the config.dat file as in the bug report.
2. Run dpkg --audit
3. For each problem package run dpkg --configure <package>
Fix the half-configured ones first.

Thanks to all the people who offered advice - it led me in the right direction.
 
  


Reply


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
How to roll back kernel? Geminias Linux - Newbie 2 09-14-2006 04:04 PM
updates and roll back imagineaxion Ubuntu 1 09-02-2006 08:31 AM
Roll back to stable ? tuxuser19 Debian 1 12-10-2005 06:59 AM
Any way to roll back? FKK Linux - Newbie 1 11-12-2005 03:44 AM
Kernel Roll Back jannino Linux - General 1 04-22-2005 11:11 AM


All times are GMT -5. The time now is 03:19 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration