5

After an initial installation of Ubuntu, the software sources window has check marks on main, universe, restricted, and multiverse, but a minus sign on source code.

Software Sources window

Nevertheless, all deb-src lines in /etc/apt/sources.list are uncommented.

What is the difference to explicitly selecting the checkbox?

3

It means that not all repositories have a deb-src repository enabled. It's the equivilent of a half-tick.

You can find the repos without source with this command:

comm -3 \
    <(grep -Eo '^deb[^#]+' /etc/apt/sources.list{,.d/*.list} | sed 's/^[^ ]* //;s/#.*$//;s/ +$//' | sort -u) \
    <(grep -Eo '^deb-src[^#]+' /etc/apt/sources.list{,.d/*.list} | sed 's/^[^ ]* //;s/#.*$//;s/ +$//' | sort -u)

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.