I 'accedentley' installed a wheezy package (by including the source in my sources.list) to a squeeze system. For the last few days I've been trying to restore it but I have no luck.
Here is the problem:
The following packages have unmet dependencies: build-essential : Depends: libc6-dev but it is not going to be installed or libc-dev Depends: g++ (>= 4:4.4.3) but it is not going to be installed Depends: dpkg-dev (>= 1.13.5) but it is not going to be installed locales : Depends: glibc-2.13-1 but it is not installable multiarch-support : Depends: libc6 (>= 2.13-5) but 2.11.3-4 is to be installed
What did I try:
- apt-get -f install
- clean / purge old packages
- tried to lookup the appropriate versions and install manually, but I don't know how to be sure I have the correct version
- restored glibc from /var/cache/apt/archives/ (as stated here Wrong libc6 version in Debian Squeeze -- can I go back?)
- tried using aptitude (you need to remove this 100 or so packages, so that's a no-go)
- created apt preferences with priority settings for squeeze
Also lots of other stuff found in the internet but nothing seems to match my situation and provides me with any useful thing to go with.
So: is there any way to see what wheezy packages are installed, remove them and re-install the appropriate squeeze packages instead?
My linux version
root@vps:~# uname -a Linux vps 2.6.32-042stab068.8 #1 SMP Fri Dec 7 17:06:14 MSK 2012 i686 GNU/Linux
Any leads would be much appreciated!
If I execute
apt-cache showpkg g++
This is the response:
root@vps:~/a# apt-cache showpkg g++ Package: g++ Versions: 4:4.4.5-1 (/var/lib/apt/lists/ftp.debian.org_debian_dists_squeeze_main_binary-i386_Packages) (/var/lib/dpkg/status) Description Language: File: /var/lib/apt/lists/ftp.debian.org_debian_dists_squeeze_main_binary-i386_Packages MD5: abf7a21a88a8ba95858d401b8ca23b7c
To me it seems the correct version is installed? But why is g++ listed as an error?
I've upgraded my entire system to wheezy, the only option left for me to try, so far so good :)