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

My current sources.list:

## main & security repositories
deb lenny main
deb-src lenny main
deb lenny/updates main
deb-src lenny/updates main

#deb lenny contrib
#deb-src lenny contrib
#deb lenny/updates contrib
#deb-src lenny/updates contrib

#deb lenny non-free
#deb-src lenny non-free
#deb lenny/updates non-free
#deb-src lenny/updates non-free

deb lenny-backports main contrib non-free

Lenny stable has nginx 0.6.32. I have 0.7.6xish from lenny backports. I want to recompile the .deb with the uwsgi module. If I apt-get source nginx I am given the 0.6.32 files.

How can I modify my sources.list such that I get my lenny backports version? Or is that not possible? If so would I solely have to rely on sid? And if so, could someone tell me what exact lines I need to add for sid?

And if I do end up adding a deb-src line for sid, that's just temporary in order for me to run the apt-get source nginx command, because otherwise I'd be grabbing sid packages across the board?

share|improve this question

I copied deb lenny-backports main contrib non-free and changed deb to deb-src.

Afterwards, I did a apt-get update and then apt-get -t lenny-backports source nginx and that did it.

share|improve this answer
That's the correct way ;-) – weeheavy Oct 18 '10 at 9:15

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.