Sign up ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

I'm on the latest Linux Mint 12. In order to compile Firefox I need to do a

sudo apt-get build-dep firefox

which isn't working and showing the following error:

$ sudo apt-get build-dep firefox
[sudo] password for michael:
Reading package lists...
Done Building dependency tree
Reading state information... Done
E: You must put some 'source' URIs in your sources.list

I remember that this worked out of the box in Ubuntu. Which URL do I need to specify in sources.list? Am I doing something else wrong?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Your installation only has sources for binary packages specified, it has no source for source packages. (Note that the word “source” has two different meanings here: a source package is a package containing source code (as opposed to a binary package containing ready-to-install code and data); a package source is a site from which you can download packages.)

Edit the file /etc/apt/sources.list in a text editor. For each line that begins with deb, add a similar line that begins with deb-src. Be sure not to change anything else; in particular, if you use nano or another editor that wraps lines, take care not to introduce any extra line breaks.

For example, if the file looks like this (this is from Debian, the contents will be similar but have different names on Mint):

deb squeeze main non-free contrib
## Security updates
deb squeeze/updates main contrib non-free

Then change it to:

deb squeeze main non-free contrib
deb-src squeeze main non-free contrib
## Security updates
deb squeeze/updates main contrib non-free
deb-src squeeze/updates main contrib non-free

If you have files in the directory /etc/apt/sources.list.d, do the same with these files.

share|improve this answer
Thanks a lot! This helped. – Michael Kohler May 7 '12 at 20:42

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.