Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 need to install pure-ftpd from source and need to do apt-get source pure-ftpd but I get this message: E: You must put some 'source' URIs in your sources.list

I found some documentation about this for Debian on but what URIs should I add to sources.list for Ubuntu and if I want the source for pur-ftpd?

EDIT: I found some URIs on Sources.List For Ubuntu Hardy Heron (8.04) So I added these lines to my /etc/apt/sources.list:

deb-src hardy main restricted universe
deb-src hardy-updates main restricted
share|improve this question
up vote 27 down vote accepted

The source lines look exactly the same as the normal package lines, they just say deb-src instead of deb.

so just copy the ones you have now and change them to be deb-src.

Update - You may also need to apt-get update after adding the deb-src lines.

share|improve this answer
Thanks. I would like to upvote your answer, but since I'm new user I cannot upvote. – Jonas Mar 5 '10 at 23:12
You may also need to apt-get update after adding the deb-src lines (as Sunny had mentioned below) – nimrodm Apr 13 '12 at 8:08

If you open /etc/apt/sources.list file, you will see commented out lines (starts with #) which have "source" on them.

Uncomment the one for universe (thats where pure-ftpd is). Then save and close the file.


> sudo apt-get update

And then you'll be able to download the sources.

share|improve this answer
No, I have no commented out lines there :( only three uncommented deb lines and no deb-src lines. I'm using Ubuntu Server 8.04 LTS. – Jonas Mar 5 '10 at 22:45
Would have been nice if you have put this info in your original question :) – Sunny Mar 8 '10 at 15:16

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.