Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
jmccreaaOffline
Post subject: libc upgrade issue: error loop  PostPosted: 08.07.2011, 11:40



Joined: 2011-07-08
Posts: 4
Location: Pittsburgh, PA
Status: Offline
About a week ago I tried to do an upgrade, and the process barfed on libc6. Scanning the fora, I saw where others had an issue and were advised to wait. I have waited, and my issue still persists. Here is the output from "apt-get -f install":

root@ShuttleGlamor:/home/john# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
libc6
Suggested packages:
glibc-doc
The following packages will be upgraded:
libc6
1 upgraded, 0 newly installed, 0 to remove and 271 not upgraded.
2 not fully installed or removed.
Need to get 0 B/4,316 kB of archives.
After this operation, 4,096 B of additional disk space will be used.
Do you want to continue [Y/n]?
debconf: Perl may be unconfigured (Attempt to reload DynaLoader.pm aborted.
Compilation failed in require at /usr/lib/perl/5.12/Hash/Util.pm line 32.
Compilation failed in require at /usr/share/perl/5.12/fields.pm line 122.
Compilation failed in require at /usr/share/perl5/Debconf/Log.pm line 10.
Compilation failed in require at (eval 1) line 4.
BEGIN failed--compilation aborted at (eval 1) line 4.
) -- aborting
(Reading database ... 153162 files and directories currently installed.)
Preparing to replace libc6 2.13-7 (using .../libc6_2.13-10_amd64.deb) ...
Attempt to reload DynaLoader.pm aborted.
Compilation failed in require at /usr/lib/perl/5.12/Hash/Util.pm line 32.
Compilation failed in require at /usr/share/perl/5.12/fields.pm line 122.
Compilation failed in require at /usr/share/perl5/Debconf/Log.pm line 10.
Compilation failed in require at /usr/share/perl5/Debconf/Db.pm line 7.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Db.pm line 7.
Compilation failed in require at /usr/share/debconf/frontend line 6.
BEGIN failed--compilation aborted at /usr/share/debconf/frontend line 6.
dpkg: error processing /var/cache/apt/archives/libc6_2.13-10_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 255
configured to not write apport reports
Errors were encountered while processing:
/var/cache/apt/archives/libc6_2.13-10_amd64.deb
localepurge: Disk space freed in /usr/share/locale: 0 KiB
localepurge: Disk space freed in /usr/share/man: 0 KiB
localepurge: Disk space freed in /usr/share/gnome/help: 0 KiB
localepurge: Disk space freed in /usr/share/omf: 0 KiB
localepurge: Disk space freed in /usr/share/doc/kde/HTML: 0 KiB

Total disk space freed by localepurge: 0 KiB

E: Sub-process /usr/bin/dpkg returned an error code (1)
root@ShuttleGlamor:/home/john#


Attempts to configure perl with "dpkg --configure -a" result in this:

root@ShuttleGlamor:/home/john# dpkg --configure -a
Setting up man-db (2.6.0.2-1) ...
Attempt to reload DynaLoader.pm aborted.
Compilation failed in require at /usr/lib/perl/5.12/Hash/Util.pm line 32.
Compilation failed in require at /usr/share/perl/5.12/fields.pm line 122.
Compilation failed in require at /usr/share/perl5/Debconf/Log.pm line 10.
Compilation failed in require at /usr/share/perl5/Debconf/Db.pm line 7.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Db.pm line 7.
Compilation failed in require at /usr/share/debconf/frontend line 6.
BEGIN failed--compilation aborted at /usr/share/debconf/frontend line 6.
dpkg: error processing man-db (--configure):
subprocess installed post-installation script returned error exit status 255
dpkg: dependency problems prevent configuration of libc6-dev:
libc6-dev depends on libc6 (= 2.13-10); however:
Version of libc6 on system is 2.13-7.
dpkg: error processing libc6-dev (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
man-db
libc6-dev
root@ShuttleGlamor:/home/john#


This appears to me to be an insurmountable issue, since perl requires the libc upgrade in order to configure, and the libc upgrade requires perl to be configured in order to be installed. Any suggestions on how to fix this, short of reinstalling?
 
 View user's profile Send private message  
Reply with quote Back to top
redsidOffline
Post subject:   PostPosted: 08.07.2011, 21:53



Joined: 2011-02-08
Posts: 32
Location: Lake Otsego
Status: Offline
SIGH! Here is a perfect example of how you all need to understand that it is not the end of life as
you know it if you don't update a particular package. If I get an update with a problem package I
put it on hold and get on with the rest of the update. Of course I use ALL that Debian has to offer
to make this a trivial step.
You should never get yourself in a position where you have to
reinstall to get Aptosid working! My main system has been running now for 6 years, updated twice a
day and problems, and there have been a few nasty ones, dealt with in a logical manner. I have never
scripted, compiled or sourced! But I do check documentation and THINK before I act.
Why you have your problem, I have no idea. I have had similar circular dependencies but they work themselves out
by checking holds at a later update.
Of course, if you have panicked and done bad things, well, I guess you will have to reinstall!
 
 View user's profile Send private message  
Reply with quote Back to top
jmccreaaOffline
Post subject:   PostPosted: 08.07.2011, 23:13



Joined: 2011-07-08
Posts: 4
Location: Pittsburgh, PA
Status: Offline
[quote="redsid"]SIGH! Here is a perfect example of how you all need to understand that it is not the end of life as
you know it if you donI have done no bad things, simply trying to figure out how to resolve this issue.

I have no intention of reinstalling, since the system is still quite functional, albeit not able to upgrade nor install new *.deb packages until the issue is fixed. Thank you for your reply.
 
 View user's profile Send private message  
Reply with quote Back to top
piperOffline
Post subject:   PostPosted: 09.07.2011, 02:06
Moderator


Joined: 2010-09-11
Posts: 480
Location: cheektowaga, ny
Status: Offline
Can you define the way you upgraded ?

(upgrade or dist-upgrade)

_________________
debian sid | apt-get into it
 
 View user's profile Send private message  
Reply with quote Back to top
jmccreaaOffline
Post subject:   PostPosted: 09.07.2011, 03:05



Joined: 2011-07-08
Posts: 4
Location: Pittsburgh, PA
Status: Offline
      piper wrote:
Can you define the way you upgraded ?

(upgrade or dist-upgrade)
it was just an upgrade, not a dist-upgrade
 
 View user's profile Send private message  
Reply with quote Back to top
slamOffline
Post subject:   PostPosted: 09.07.2011, 04:33
Team Member


Joined: 1970-01-01
Posts: 607
Location: w3
Status: Offline
Our manual explicitely warns about "apt-get upgrade", which we cannot support in Debian Sid. Please proceede with
      Code:
apt-get clean
apt-get update && apt-get dist-upgrade
apt-get -f install


I have moved this topic, as it is not a "Upgrade Warning".

Geetings,
Chris

_________________
an operating system must operate
development is life
my Debian repo
 
 View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number 
Reply with quote Back to top
jacmoeOffline
Post subject:   PostPosted: 09.07.2011, 08:52



Joined: 2011-04-13
Posts: 40
Location: Denmark
Status: Offline
      jmccreaa wrote:
it was just an upgrade, not a dist-upgrade

As Slam said: in Debian Sid, there is no such thing as an upgrade.
Everything is a dist-upgrade.

The libc / Perl transition went smoothly on my system, so I can't see why it shouldn't be smooth on yours. Smile
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
jmccreaaOffline
Post subject:   PostPosted: 09.07.2011, 12:58



Joined: 2011-07-08
Posts: 4
Location: Pittsburgh, PA
Status: Offline
I have tried slam's suggested fix, to no avail -- the problem persists. Thank you for your responses (and the reminder to RTFM -- I did not know about the dist-upgrade rule).
 
 View user's profile Send private message  
Reply with quote Back to top
piperOffline
Post subject:   PostPosted: 09.07.2011, 13:50
Moderator


Joined: 2010-09-11
Posts: 480
Location: cheektowaga, ny
Status: Offline
      jmccreaa wrote:
I have tried slam's suggested fix, to no avail -- the problem persists. Thank you for your responses (and the reminder to RTFM -- I did not know about the dist-upgrade rule).


Now you know why in sid (especially with a rolling release) you never do upgrade (this is a perfect example)

yes, sometimes it works lol, but sooner or later it will bite you in the ass
 
 View user's profile Send private message  
Reply with quote Back to top
piperOffline
Post subject:   PostPosted: 09.07.2011, 14:07
Moderator


Joined: 2010-09-11
Posts: 480
Location: cheektowaga, ny
Status: Offline
I do not have the time to try this (plane to catch) and wondering if this would work

slh, your insight please

      Code:
root@x1:/home/piper# apt-get remove --purge libc6-dev -s
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  apt-build* build-essential* dmakms* g++* g++-4.6* libc6-dev* libc6-dev-i386* libncurses5-dev* libstdc++6-4.6-dev* libwine-dev* virtualbox-source*
0 upgraded, 0 newly installed, 11 to remove and 1 not upgraded.
Purg apt-build [0.12.38]
Purg virtualbox-source [4.0.10-dfsg-1]
Purg dmakms [0.6.12]
Purg build-essential [11.5]
Purg g++ [4:4.6.0-6]
Purg g++-4.6 [4.6.1-2] [libstdc++6-4.6-dev:amd64 ]
Purg libstdc++6-4.6-dev [4.6.1-2]
Purg libwine-dev [1.0.1-3.1]
Purg libc6-dev-i386 [2.13-10]
Purg libncurses5-dev [5.9-1]
Purg libc6-dev [2.13-10]


      Code:
apt-get clean
apt-get update && apt-get dist-upgrade


      Code:
apt-get clean && apt-get install libc6-dev


All of this done OUTSIDE OF X (init 3)

Of course you wouldn't use -s if actually doing this Wink
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by Zafenio