Can't upgrade libc6 on Debian Wheezy

Solution 1:

ok probably found a solution.

first of all go here /lib/x86_64-linux-gnu move these files to /root: libc-2.13.so libdl-2.13.so libm-2.13.so libpthread-2.13.so librt-2.13.so

your versions maybe different already. Then lots of things will stop working, you need to launch bash with predefined LD_PRELOAD:

 LD_PRELOAD=/root/libc-2.13.so:/root/libdl-2.13.so:/root/libm-2.13.so:/root/libpthread-2.13.so:/root/librt-2.13.so bash

after that dist-upgrade works:

apt-get -f dist-upgrade

Solution 2:

First, you do what it told you to do.

A copy of the C library was found in an unexpected directory:
  '/lib/x86_64-linux-gnu/libc-2.13.so'
It is not safe to upgrade the C library in this situation;
please remove that copy of the C library or get it out of
'/lib/x86_64-linux-gnu' and try again.

Maybe that will fix everything. But you still have enough going on there that you should have a maintenance period and reinstall the system.

Solution 3:

You need to do 2 jobs:

1. apt-get -f dist-upgrade
2. dpkg -a --configure 

Of course repeatation of them is essential.