DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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#
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.
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...
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.