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

We've got a working lenny repository in our office. This is the sources.list line from a machine where the repo works fine:

deb lenny main contrib non-free

I would like to install lenny on another machine but using:

as address and /debian/ as directory doesn't work.

Are these addresses correct? Must repo and install image be exactly the same version? (netinstall image: debian-501-i386-netinst.iso)

share|improve this question
up vote 1 down vote accepted

Go to the dists directory inside the debian folder and create a symlink to lenny as stable

ln -s lenny stable

The installer looks for stable or testing and not for lenny.

I found this looking at the apache logs when I first encountered this problem.

share|improve this answer

Finally I modified /target/etc/apt/sources.list from console (and apt-get update of course) while installing and that made the trick. Anyway, it would be great to know why the elegant way didn't work.

share|improve this answer

I don't know what is, but I guess it's just something you made up? Try some of the following addresses.

Host name            FTP  	           HTTP  

  (     /debian/ 	      /debian/   	  /debian/          /debian/ 	      /debian/           /debian/ 	      /debian/             /debian/ 	      /debian/              /mirror/debian/   /mirror/debian/          /debian/ 	      /debian/           /debian/ 	       /debian/             /mirror/debian/ 		
share|improve this answer
"foo" it's just an example. I cannot use a public mirror because of company's firewall. Just company's mirror. – aitorpazos May 29 '09 at 19:22

The mirror should be the full path to the base of the mirror. This directory should contain the "dists" folder.

So, it's basically the same thing as you'd put in your sources.list

A quick breakdown of the sources.list URL, which is

deb lenny main contrib non-free

  • deb - this means that this is a binary repository
  • - the URL of the repository
  • lenny - the distribution that you're working with (lenny, etch, stable, unstable, etc)
  • main contrib non-free - the components of Debian you wish to use

In fact, I have an old image from when I was trying to explain it to people before

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.