Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have multiple machines running Debian 6 (Squeeze) and 7 (Wheezy). I set up an Apt-Cacher server on a Debian 7 box, for the Debian 7 instances to use. Can this also be used (with the same wheezy sources.list) by the Debian 6 instances?

I copied the sources.list from the Debian 7 box to the Debian 6 box, and forgot to change the wheezy references back to squeeze. Then I did an apt-get update and an apt-get upgrade on the Debian 6 box, and of course it got all of the Debian 7 packages and upgraded. Have I broken that Debian 6 box now?

I would be very grateful of some clarification on how the package repositories work with different versions - are they entirely separate?

share|improve this question
up vote 1 down vote accepted

Yes differing Debian versions can use the same apt-cache.

The repositories upstream are shared, it's only the addition of the name that affects the package set that will be used.

deb squeeze main contrib non-free


deb wheezy main contrib non-free

In apt cache configuration you can also set different path maps to map a URL to a different upstream server. For instance if you wanted to use for Debian Lenny for instance which has been removed from the main Debian repo's.

For instance: path_map = debian ; security ; archive ; volatile ; backports ; archive-backports ; archive-security

As for if you have broken your Debian 6 server then it depends on the applications running there and if they are compatible with Debian 7. It should be safe to check the Release notes for Debian 7 and just follow the upgrade procedure to ensure you properly complete the process.

Downgrading Debian version is not supported. If you specifically need Debian 6, I would advise a re-install.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.