6

Very often now I have seen sources.list files (including my own) that contain lines like these:

deb     http://security.debian.org/         testing/updates main contrib non-free
deb     http://security.debian.org/         wheezy/updates  main contrib non-free
deb     http://http.debian.net/debian       wheezy-updates  main

I understood the meaning of the components (main, contrib and non-free). I also partially understood the meaning of the distribution (wheezy, testing, stable etc.) and that of the path. This is all well documented in the wiki.

  • But what does the /updates or -updates mean?
  • Should I write it with - or / myself?
  • How am I supposed to know that?
6

Here is an explanation of the three source URIs you have listed.

  1. wheezy-updates: See the StableUpdates page on the Debian Wiki

    As the page explains,

    This path will be used for updates which many users may wish to install on their systems before the next point release is made, such as updates to virus scanners and timezone data.

    These were previously known as volatile.

  2. Both wheezy/updates and testing/updates are security fixes, to the stable release and testing respectively. Security fixes for testing are relatively recent, and supported on a best-effort basis.

    These correspond to the pages Security Information for wheezy/updates and security fixes for testing for testing/updates.

If you are asking why these have different forms, that is just how the people concerned choose how to have things set up. The / forward slash corresponds to the structure of the underlying URL, which in turn corresponds to the directory structure of the corresponding apt repository.

So, for example

  1. the source URI

    deb http://http.debian.net/debian wheezy-updates main

    corresponds to the URL

    http://security.debian.org/dists/wheezy/updates/

  2. the source URI

    deb http://security.debian.org/ testing/updates main contrib non-free

    corresponds to the URL

    http://security.debian.org/dists/testing/updates/

  3. the source URI

    deb http://debian.lcs.mit.edu/debian/ wheezy-updates main contrib non-free

    corresponds to the URL

    http://debian.lcs.mit.edu/debian/dists/wheezy-updates/

  • So (in a production environment) one should never only take the stable deb but ever also the stable/updates, because the stable might have open security issues? (Thanks btw for the nice answer!) – Matmarbon Aug 2 '14 at 16:35
  • @Matmarbon No, you should use both. The stable/updates only contains security updates. For everything else, you will need the stable sources. – Faheem Mitha Aug 2 '14 at 17:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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