Since ubunut+1 didnt help here is a fix for
A copy of the C library was found in an unexpected directory:
'/lib/i386-linux-gnu/ld-2.17.so.dpkg-new'
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/i386-linux-gnu' and try again.
fix http://forum.ubuntu-it.org/viewtopic.php?f=30&t=541711&sid=588a1d84d0d07e6f5079afd9670b5e54&start=40#p4262699
replace the name of libc6_2.*(offending).deb with correct name
example
cd /tmp
cp /var/cache/apt/archives/libc6_2.13-20ubuntu5.2_i386.deb.deb /tmp
dpkg-deb --extract libc6_2.13-20ubuntu5.2_i386.deb libc
dpkg-deb --control libc6_2.13-20ubuntu5.2_i386.deb libc/DEBIAN
gedit /tmp/libc/DEBIAN/preinst
comment out 1 line
find the section that follows
# Output an error message and exit
echo
echo "A copy of the C library was found $msg:"
echo " '$lib'"
echo "It is not safe to upgrade the C library in this situation;"
echo "please remove that copy of the C library or get it out of"
echo "'$dir' and try again."
echo
exit 1
done
}
and comment out
# Output an error message and exit
echo
echo "A copy of the C library was found $msg:"
echo " '$lib'"
echo "It is not safe to upgrade the C library in this situation;"
echo "please remove that copy of the C library or get it out of"
echo "'$dir' and try again."
echo
# exit 1
done
}
save
dpkg-deb --build libc
sudo dpkg -i libc.deb
sudo apt-get update
sudo apt-get upgrade
if you need to do this from a chroot see
http://ubuntuforums.org/showthread.php?t=2135146
sudo mount /dev/'location of root' /mnt/raring
sudo mount -t proc none /mnt/raring/proc
sudo mount --rbind /sys /mnt/raring/sys
sudo mount --rbind /dev /mnt/raring/dev
sudo mount --rbind /run /mnt/raring/run
sudo chroot /mnt/raring /bin/bash
then the information from above.