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
 
LinkBack Search this Thread
Old 07-17-2007, 01:21 PM   #1
war1025
Member
 
Registered: Jul 2006
Distribution: Debian: Squeeze AMD64
Posts: 317

Rep: Reputation: 31
apt-get hell


So this morning I was downloading the daily updates and noticed that the list of not-upgraded packages was getting pretty big (25 or so) so I figured I might as well do a apt-get dist-upgrade and get those...

Bad idea. Everything is all messed up and now apt is stuck. This is the output I have:

Code:
Engel:/home/war1025# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run `apt-get -f install' to correct these.
The following packages have unmet dependencies:
  locales: Depends: glibc-2.6-1
E: Unmet dependencies. Try using -f.
Engel:/home/war1025# apt-get install libc6
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
  libc6-dev: Depends: libc6 (= 2.5-9) but 2.6-2 is to be installed
  libc6-i386: Depends: libc6 (= 2.5-9) but 2.6-2 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Engel:/home/war1025# 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:
  cpp-4.1 gcc-4.1 gcc-4.1-base libc6 libc6-i386
Suggested packages:
  gcc-4.1-locales gcc-4.1-multilib gcc-4.1-doc glibc-doc
Recommended packages:
  libmudflap0-dev
The following packages will be REMOVED:
  build-essential g++ g++-4.1 libc6-dev libstdc++6-4.1-dev
The following packages will be upgraded:
  cpp-4.1 gcc-4.1 gcc-4.1-base libc6 libc6-i386
5 upgraded, 0 newly installed, 5 to remove and 13 not upgraded.
1 not fully installed or removed.
Need to get 0B/11.7MB of archives.
After unpacking 26.2MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 112373 files and directories currently installed.)
Preparing to replace libc6-i386 2.5-9 (using .../libc6-i386_2.6-2_amd64.deb) ...
Unpacking replacement libc6-i386 ...
dpkg: error processing /var/cache/apt/archives/libc6-i386_2.6-2_amd64.deb (--unpack):
 trying to overwrite `/usr/lib32', which is also in package lib32z1
Errors were encountered while processing:
 /var/cache/apt/archives/libc6-i386_2.6-2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Engel:/home/war1025#
What do I do?
 
Old 07-17-2007, 01:52 PM   #2
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 57
Post your /etc/apt/sources.list file.
 
Old 07-17-2007, 02:00 PM   #3
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 57
Quote:
Originally Posted by war1025
So this morning I was downloading the daily updates and noticed that the list of not-upgraded packages was getting pretty big (25 or so) so I figured I might as well do a apt-get dist-upgrade and get those...

Bad idea. Everything is all messed up and now apt is stuck. This is the output I have:

Code:
Engel:/home/war1025# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run `apt-get -f install' to correct these.
The following packages have unmet dependencies:
  locales: Depends: glibc-2.6-1
E: Unmet dependencies. Try using -f.
Engel:/home/war1025# apt-get install libc6
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
  libc6-dev: Depends: libc6 (= 2.5-9) but 2.6-2 is to be installed
  libc6-i386: Depends: libc6 (= 2.5-9) but 2.6-2 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Engel:/home/war1025# 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:
  cpp-4.1 gcc-4.1 gcc-4.1-base libc6 libc6-i386
Suggested packages:
  gcc-4.1-locales gcc-4.1-multilib gcc-4.1-doc glibc-doc
Recommended packages:
  libmudflap0-dev
The following packages will be REMOVED:
  build-essential g++ g++-4.1 libc6-dev libstdc++6-4.1-dev
The following packages will be upgraded:
  cpp-4.1 gcc-4.1 gcc-4.1-base libc6 libc6-i386
5 upgraded, 0 newly installed, 5 to remove and 13 not upgraded.
1 not fully installed or removed.
Need to get 0B/11.7MB of archives.
After unpacking 26.2MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 112373 files and directories currently installed.)
Preparing to replace libc6-i386 2.5-9 (using .../libc6-i386_2.6-2_amd64.deb) ...
Unpacking replacement libc6-i386 ...
dpkg: error processing /var/cache/apt/archives/libc6-i386_2.6-2_amd64.deb (--unpack):
 trying to overwrite `/usr/lib32', which is also in package lib32z1
Errors were encountered while processing:
 /var/cache/apt/archives/libc6-i386_2.6-2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Engel:/home/war1025#
What do I do?
dpkg -i --force-overwrite /var/cache/apt/archives/libc6-i386_2.6-2_amd64.deb to get past the packaging error then dpkg --configure -a to get the unconfigured packages when the error happened after this you might want to try re-installing the packages that were removed if you want/need them installed.
 
Old 07-17-2007, 02:07 PM   #4
war1025
Member
 
Registered: Jul 2006
Distribution: Debian: Squeeze AMD64
Posts: 317

Original Poster
Rep: Reputation: 31
Code:
war1025@Engel:~$ cat /etc/apt/sources.list
# 
# deb cdrom:[Debian GNU/Linux testing _Lenny_ - Official Snapshot amd64 NETINST Binary-1 20070628-09:04]/ lenny contrib main

#deb cdrom:[Debian GNU/Linux testing _Lenny_ - Official Snapshot amd64 NETINST Binary-1 20070628-09:04]/ lenny contrib main

deb http://ftp.us.debian.org/debian/ lenny main contrib non-free
deb-src http://ftp.us.debian.org/debian/ lenny main contrib non-free

deb http://security.debian.org/ lenny/updates main contrib non-free
deb-src http://security.debian.org/ lenny/updates main contrib non-free

deb http://ftp.debian-unofficial.org/debian testing main contrib non-free restricted

deb http://www.debian-multimedia.org testing main

deb http://debian.beryl-project.org/ etch main
If I run that command its not gonna like... make my system dead, is it? I guess I don't have much to lose either way...
 
Old 07-17-2007, 02:11 PM   #5
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,242

Rep: Reputation: 48
Quote:
Originally Posted by war1025
Code:
war1025@Engel:~$ cat /etc/apt/sources.list
# 
# deb cdrom:[Debian GNU/Linux testing _Lenny_ - Official Snapshot amd64 NETINST Binary-1 20070628-09:04]/ lenny contrib main

#deb cdrom:[Debian GNU/Linux testing _Lenny_ - Official Snapshot amd64 NETINST Binary-1 20070628-09:04]/ lenny contrib main

deb http://ftp.us.debian.org/debian/ lenny main contrib non-free
deb-src http://ftp.us.debian.org/debian/ lenny main contrib non-free

deb http://security.debian.org/ lenny/updates main contrib non-free
deb-src http://security.debian.org/ lenny/updates main contrib non-free

deb http://ftp.debian-unofficial.org/debian testing main contrib non-free restricted

deb http://www.debian-multimedia.org testing main

deb http://debian.beryl-project.org/ etch main
If I run that command its not gonna like... make my system dead, is it? I guess I don't have much to lose either way...
No, it won't. It will simply make the dpkg forget about the past error.
 
Old 07-17-2007, 02:13 PM   #6
war1025
Member
 
Registered: Jul 2006
Distribution: Debian: Squeeze AMD64
Posts: 317

Original Poster
Rep: Reputation: 31
Thanks! I had to install the normal libc6 first, but then I did the command you gave me and it installed that. Then I did another dist-upgrade and it only ended up removing the one file it was going to remove to being with.

I feel alot better about that now
 
Old 07-17-2007, 02:35 PM   #7
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,230
Blog Entries: 5

Rep: Reputation: 185Reputation: 185
Since Etch, you should be using aptitude now not apt-get, and since you are pulling packages from Lenny I would also suggest installing apt-listbugs to check for bugs, or things that will BREAK your system during an update.

aptitude keep-all you must do this the first time to lock in your current package selection
aptitude update
aptitude install apt-listbugs


once you switch to aptitude you should not use apt-get to install or remove packages any more.
 
Old 07-18-2007, 10:35 AM   #8
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,442

Rep: Reputation: 453Reputation: 453Reputation: 453Reputation: 453Reputation: 453
Quote:
Originally Posted by farslayer
Since Etch, you should be using aptitude now not apt-get, and since you are pulling packages from Lenny I would also suggest installing apt-listbugs to check for bugs, or things that will BREAK your system during an update.

aptitude keep-all you must do this the first time to lock in your current package selection
aptitude update
aptitude install apt-listbugs


once you switch to aptitude you should not use apt-get to install or remove packages any more.

Seconded. Here is my experience with a very similar problem.
 
  


Reply

Tags
dpkg


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apt, RPM and general hell Jiawen Mandriva 23 10-21-2005 01:31 AM
Apt-get hell joosep MEPIS 2 08-13-2005 03:49 PM
apt 4 suse hell tardigrade Linux - Software 1 01-04-2005 02:00 AM
Dependency Hell installing softw3are with apt-get londonboi Debian 7 03-19-2004 12:33 PM
apt-get Created Dependency Hell!! Shinobi Linux - Software 6 04-07-2003 11:35 AM


All times are GMT -5. The time now is 02:04 AM.

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
Open Source Consulting | Domain Registration