How to get apt-get build-dep working?

Hi there,

when I try to install build dependencies, e.g., sudo apt-get build-dep emacs25, I’m informed that I need to add source URIs to sources.list. Which ones are available or recommended?


I had a sources.list with the following:

deb green main
deb-src green main

deb green-debug main

and I got the same result as you, and solved by adding a line identical to the last one, but starting with deb-src instead of deb.

Also note that you need to do an apt-get update after editing before it will work.

I had only the first line, adding the second one worked for me.
Many thanks!