Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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.