17

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 http://www.debian.org/doc/manuals/apt-howto/ch-basico.en.html#s-sources.list 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 http://archive.ubuntu.com/ubuntu/ hardy main restricted universe
deb-src http://archive.ubuntu.com/ubuntu/ hardy-updates main restricted
universe
udo
  • 8,061
Jonas
  • 28,660

3 Answers3

28

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.

ripper234
  • 11,903
user23307
  • 7,127
1

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.

Run:

> sudo apt-get update

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

Sunny
  • 951
0

Try the following,

apt-cache show programName