LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Sid apt-get error (https://www.linuxquestions.org/questions/debian-26/sid-apt-get-error-569527/)

JimBass 07-15-2007 12:33 PM

Sid apt-get error
 
I'm losing my mind! I have solved problems like this in the past, and somehow whatever I did in the past is completely escaping me at present.

I tried doing a dist-upgrade a few days ago on one of my Sid systems, and it borked over libc6. Here's the output -

Code:

jim@JimsBeastie:~$ sudo apt-get 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:
  libc6-dev: Depends: linux-libc-dev but it is not installed
  libc6-i386: Depends: libc6 (= 2.5-11) but 2.6-2 is installed
E: Unmet dependencies. Try using -f.

Code:

jim@JimsBeastie:~$ sudo 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-i386 linux-libc-dev
The following packages will be REMOVED:
  linux-kernel-headers
The following NEW packages will be installed:
  linux-libc-dev
The following packages will be upgraded:
  libc6-i386
1 upgraded, 1 newly installed, 1 to remove and 144 not upgraded.
3 not fully installed or removed.
Need to get 0B/4392kB of archives.
After unpacking 7115kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 143207 files and directories currently installed.)
Preparing to replace libc6-i386 2.5-11 (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)

I'm thinking that in the past I'd just yank out all the programs that were causing the complaints from apt, but removing any part of libc looks like it would take out 90% of my system with it. What should I do from here?

Peace,
JimBass

rickh 07-15-2007 12:54 PM

Did you try removing lib32z1, then rerunning apt-get -f install

JimBass 07-15-2007 01:12 PM

Yes, I had tried that, and unfortunately it didn't work. Here's the output -
Code:

jim@JimsBeastie:~$ sudo apt-get remove lib32z1
Password:
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:
  ia32-libs: Depends: lib32z1 but it is not going to be installed
  libc6-dev: Depends: linux-libc-dev but it is not going to be installed
  libc6-i386: Depends: libc6 (= 2.5-11) but 2.6-2 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
jim@JimsBeastie:~$ sudo apt-get remove ia32-libs
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:
  ia32-libs-gtk: Depends: ia32-libs (>= 1.20) but it is not going to be installed
  libc6-dev: Depends: linux-libc-dev but it is not going to be installed
  libc6-i386: Depends: libc6 (= 2.5-11) but 2.6-2 is to be installed
  nspluginwrapper: Depends: ia32-libs (>= 1.6) but it is not going to be installed
                  Depends: ia32-libs but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Peace,
JimBass

rickh 07-15-2007 02:54 PM

Strange, I just did a Sid dist-upgrade this morning, and everything installed easily. On my (mostly) Lenny machine, I had to pull in libc6 from Sid to get the latest ffmpeg from debian-multimedia and that installed problem free as well.

I use aptitude exclusively, but I hardly think that would be the answer. ... and I'm sure you've run apt-get update a few times.

JimBass 07-15-2007 06:17 PM

Yes Rick, at first I thought it was just unstable being unstable, and assumed somebody would fix it in a day or so. This happened maybe 4 days ago, and seeing that nothing was posted here or on the net at large about it, I realized it was just something that was screwed up on my machine in particular. I have been running apt-get updates almost daily.

At this point I think the best solution would be to use dpkg to list every installed program to a file, then wholesale remove libc6 and everything that has to go with it, then reinstall everything from the file.

I remember us point/counterpointing apt-get vs aptitude in the past. I do understand that aptitude is officially preferred by the Debian team, but I'm very comfortable with apt-get, as it is what I learned on. I do fully agree that it isn't actually the fault of apt-get vs aptitude, as the error is coming from dpkg.

Peace,
JimBass

HappyTux 07-15-2007 06:31 PM

dpkg -i --force-overwrite /var/cache/apt/archives/libc6-i386_2.6-2_amd64.deb then dpkg --configure -a to get the unconfigured packages what you are seeing is a packaging error only one package at a time can have the same file in it.

JimBass 07-15-2007 08:30 PM

Happy Tux thanks so much! I've been tinkering with it nonstop for the past 2 hours, and just saw your post now. I would have done much better to have just checked my email. Those commands cleared it right up.

It looks like somebody caught and tried to fix this error, as I found a buglist about it for version 2.6.1. I'm guessing 2.6.2 was the attempt at the fix, but it didn't work for me obviously.

http://article.gmane.org/gmane.linux...general/277358

Thanks again to both of you and anyone else that read here!

Peace,
JimBass

Andersonian 07-17-2007 07:03 PM

I had the exact same problem (2.6.21 amd64), Happy Tux's suggestion solved almost all problems.

JimBass 07-17-2007 07:59 PM

Quote:

Happy Tux's suggestion solved almost all problems.
The mighty Tux's suggestion would have cleared up all your problems, if that was the only one you were having. If anything wasn't resolved, either you didn't follow his instructions or you had another independent problem at the same time.

Peace,
JimBass


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