Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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

I know I can download binary packages from repositories beginning with "deb", but what does deb-src do?


deb-src http://archive.ubuntu.com/ubuntu natty universe

in /etc/apt/sources.list in Ubuntu 11.04

share|improve this question
up vote 6 down vote accepted

These are repositories for source packages. See the sources.list man page.

share|improve this answer
For the apt-get source [package-name] to work, a deb-src entry is needed. – Lekensteyn Jun 17 '11 at 13:05

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.