Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I need to install build-dependencies of something, how do I ensure the source code section of my software sources is enabled?

share|improve this question
add comment

2 Answers

up vote 4 down vote accepted

Launch the software center and select software sources:

enter image description here

In the software sources make sure "Source Code" is checked:

enter image description here

share|improve this answer
add comment

The default archive repositories have the source archives enabled as well as the binaries. Also, adding any PPAs with sudo add-apt-repository ppa:user/archive should enable the source and binary archives both.

To verify, you can check in the /etc/apt/sources.list file, and in the files in /etc/apt/sources.list.d/, to ensure the deb-src lines for each deb archive line, are there. Also, in the Software Sources properties dialog, you can check that the Source code option is checked on the Ubuntu Software tab, and that there are corresponding Source entries for the Binaries entries, in the list of additional sources under the Other Software tab.

share|improve this answer
add comment

Your Answer

 
discard

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.