Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How do i enable some of oldstable (Etch) packages in my stable (Lenny) Debian install? I'm asking especially about last part of line, what do i write there - oldstable? Or that won't work?

share|improve this question

4 Answers 4

Anywhere you would use the generic dists (stable, testing, unstable), you can use the specific dist codename (woody, sarge, etch, etc.). So for dists that are still supported by the Debian project:

deb http://http.us.debian.org/debian etch main contrib non-free

For older, unsupported Debian dists, use Debian archive server:

deb http://archive.debian.org/debian-archive/ woody main contrib non-free
share|improve this answer
1  
It was archive.debian.org/debian and not archive.debian.org/debian-archive for me –  Strayer Apr 23 '12 at 10:47

It typically looks like this:

deb http://us.archive.ubuntu.com/ubuntu/ hardy main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ hardy main restricted

Explanation of each field:

  • deb: These repositories contain binaries or precompiled packages. These repositories are required for most users.

  • deb-src: These repositories contain the source code of the packages. Useful for developers.

  • http://archive.ubuntu.com/ubuntu: The URI (Uniform Resource Identifier), in this case a location on the internet. See the official mirror list or the self-maintained mirror list to find other mirrors.

  • hardy is the release name or version of your distribution.

  • main & restricted are the section names or components. There can be several section names, separated by spaces.

So for an example etch repository (add it to the end of sources.list):

deb http://examplemirror.debian.org/debian/ etch main
deb-src http://examplemirror.debian.org/debian/ etch main

The section names are dependent on the packages you'd like to download. The repository should supply you with the appropriate line for sources.list.

share|improve this answer
    
The question is about Debian, your answer is about Ubuntu. –  bahamat Jan 24 '11 at 5:11
    
@bahamat I used ubuntu repo as an example for an explanation. There are etch repositories at the end of my answer. Thanks for the unqualified downvote. –  John T Jan 24 '11 at 5:42

I had to append /debian to the URL to be able to download older dists.

deb http://archive.debian.org/debian-archive/debian etch main contrib non-free

share|improve this answer

Actually. The "debian/" part is for the main repos. The backports, security and volatile repos use "debian-backports/", "debian-security/", and "debian-volatile/" respectively.

share|improve this answer

Your Answer

 
discard

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