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.

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?

share|improve this question

1 Answer 1

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)
share|improve this answer

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.