I'm working on a Debian 6.0 server where I think the repo was wrong on the server.
deb http://ftp.uk.debian.org/debian/ stable main
deb-src http://ftp.uk.debian.org/debian/ stable main
I compared a new docker image and the correct one seems to be
deb http://archive.debian.org/debian squeeze main
deb http://archive.debian.org/debian squeeze-lts main
Since they were already using the wrong repo I think most packages got updated to a newer version. Now when I try to install build-essentials or libc6-dev, I get that the following error.
What was wrong with the old repo? The distribution entry seems to be "stable" instead of "squeeze" and I wonder what has happened..? what can be done now? I could of course use the old repo but some packages aren't available there OR I could build a new OS instead and use the correct repo. I'm not sure downgrading libc6 is an option...Last time I messed with it I had the OS corrupted.
sudo apt-get install libc6-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libc6-dev : Depends: libc6 (= 2.11.3-4+deb6u11) but 2.19-18+deb8u7 is to be installed
Depends: libc-dev-bin (= 2.11.3-4+deb6u11) but it is not going to be installed
E: Broken packages
sudo apt-cache madison libc6
libc6 | 2.11.3-4+deb6u11 | http://archive.debian.org/debian/ squeeze-lts/main amd64 Packages
libc6 | 2.11.3-4 | http://archive.debian.org/debian/ squeeze/main amd64 Packages