Error upgrading libc6 in Lenny

Hi there,

I tried to upgrade my Lenny installation and ran into an error:

Quote:

Preconfiguring packages ...
(Reading database ... 46918 files and directories currently installed.)
Preparing to replace binutils 2.17-3 (using .../binutils_2.17cvs20070426-8_amd64.deb) ...
Unpacking replacement binutils ...
Preparing to replace libc6-dev 2.3.6.ds1-13 (using .../libc6-dev_2.5-9_amd64.deb) ...
Unpacking replacement libc6-dev ...
Preparing to replace locales 2.3.6.ds1-13 (using .../archives/locales_2.5-9_all.deb) ...
Unpacking replacement locales ...
Preparing to replace libc6 2.3.6.ds1-13 (using .../archives/libc6_2.5-9_amd64.deb) ...
Unpacking replacement libc6 ...
dpkg: error processing /var/cache/apt/archives/libc6_2.5-9_amd64.deb (--unpack):
trying to overwrite `/usr/lib64', which is also in package gtk-qt-engine
Errors were encountered while processing:
/var/cache/apt/archives/libc6_2.5-9_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

This is apperently caused by an old version of gtk-qt-engine (see http://groups.google.com/group/linux.debian.user/browse_thread/thread/859db99bd3ca6825/92f2adf1f1100076?lnk=raot).
If I try to remove gtk-qt-engine I'm getting

Quote:

#apt-get -f remove gtk-qt-engine
Reading package lists... Done
Building dependency tree... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
binutils: Depends: libc6 (>= 2.5-5) but 2.3.6.ds1-13 is to be installed
libc6-dev: Depends: libc6 (= 2.5-9) but 2.3.6.ds1-13 is to be installed
locales: Depends: glibc-2.5-1
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Next attempt:

Quote:

#apt-get -f install
Reading package lists... Done
Building dependency tree... 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 178 not upgraded.
3 not fully installed or removed.
Need to get 0B/4905kB of archives.
After unpacking 1749kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
(Reading database ... 46941 files and directories currently installed.)
Preparing to replace libc6 2.3.6.ds1-13 (using .../archives/libc6_2.5-9_amd64.deb) ...
Unpacking replacement libc6 ...
dpkg: error processing /var/cache/apt/archives/libc6_2.5-9_amd64.deb (--unpack):
trying to overwrite `/usr/lib64', which is also in package gtk-qt-engine
Errors were encountered while processing:
/var/cache/apt/archives/libc6_2.5-9_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

And with that my apt-powers are totally exhausted. What should I do now?

TIA, Jabber

0

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Error upgrading libc6 in

I had a similar problem with a different package. The trick is either to make dpkg believe the older version isn't installed, the file in question doesn't belong to anyone else, or forcibly remove the old package without touching anything else.

1. Forcibly removing a package: this may fail because of the already existing install requests. Try 'apt-get install -f -s' to see what a 'fix' would do; if it temporarily removes the new package from the requests then that's fine. You might also try to temporarily remove the request for the new package by editing /var/lib/dpkg/status

2. Tricking dpkg into not seeing the file in the old package:
Try going to /var/lib/dpkg/info and edit the *.list file for the old package - delete the line with a reference to that problem file.

3. Make dpkg believe the old file isn't installed:
Remove it's entry from the 'status' file. Be sure to back up the status file first before something goes horribly wrong. Use the *.list file for the package to delete all other files installed. Make sure you do this before installing the new package or else you'll delete files that belong to the new one.

Always use the "-s" option until you're happy that your commands won't destroy your system; be especially careful when forcing the removal of packages. I removed 'libc' once and that was fun.

Error upgrading libc6 in

Hi,

Thanks a lot, that worked!

I went with 3. and deleted the entry for gtk-qt-engine, then did an "apt-get -f install && apt-get dist-upgrade". Afterwards I installed gtk-qt-engine, so I had no dangling files from its previous installation. All went fine.

Thanks again!

Syndicate content