I need to test a debugging tool on a variety of outdated distributions. It works with Debian Wheezy, but it seems impossible to add the working compiler and building tools with Debian Squeeze docker image. I get the image from DockerHub then fix the apt
repositories to ignore the date and use archive.debian.org:
docker run -it --rm debian:squeeze
$ echo "deb http://archive.debian.org/debian squeeze main" > /etc/apt/sources.list
$ echo "deb http://archive.debian.org/debian-security squeeze/updates main" >> /etc/apt/sources.list
$ echo "Acquire::Check-Valid-Until no;" > /etc/apt/apt.conf.d/99no-check-valid-until
After that I do usual installation with
apt-get update
apt-get install build-essential
But it fails with the "E: Broken packages", no solutions helped to solve it. Is it possible to workaround this somehow?
root@01feb057d927:/# apt-get install build-essential
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:
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
E: Broken packages
root@01feb057d927:/#