I'm attempting to install emacs 25.1 on my ubuntu 16.04 system from a PPA. When attempting to install the build dependencies I got the error
>sudo apt-get build-dep emacs24
Reading package lists... Done
E: You must put some 'source' URIs in your sources.list
So apt-get can't find the dependencies, right? I thought adding the PPA to my system would solve this but it doesn't. Also, uncommenting the deb and deb-src pairs (individually and everything at once) in /etc/apt/sources.list didn't help.
What does help is checking the source box in the software & updates utility, as suggested in this post: https://askubuntu.com/a/795694/524588 does work. What exactly is this doing, and how can I replicate it without the gui?
Enabling sources allows downloading source code of the application. With
apt-get source pkg
you can get source code of that packageAs Mitch explains in his answer:
So essentially,
build-dep
will grab source code of your package, and try to install dependencies for it first , before actually building package. This is different frominstall
where the package may already be in.deb
package, with everything pre-made.