Wednesday, 1 June 2011


Since we have people posting to various lists for the correct format for an /etc/apt/sources.list file, here's one including the non-free repositories (which are not part of Debian proper but provided for the convenience of Debian users). Hope this helps somebody sometime.


deb squeeze main contrib non-free
deb-src squeeze main contrib non-free

deb squeeze-updates main contrib non-free
deb-src squeeze-updates main contrib non-free

deb squeeze/updates main contrib non-free
deb-src squeeze/updates main contrib non-free

and, of course, it wrapped in the browser. There's a single space between squeeze and main and between main and contrib and between contrib and non-free for example. There are six lines in total - three pairs.


  1. If everything else fails, maybe the manpage can help!

    man sources.list

    Oh, and be prepared that it could even be translated to your native tongue… unfortunately so far only en, ja, pt, es, pl, fr or de - but you can help increase the list. :)

  2. Some notes:

    For the most part you can replace the .uk. in the URLs with your country code in order to get a closer mirror.

    You only need the deb-src lines if you are going to be pulling in source packages. I only enable these lines when I'm actually trying to get a source package in order to speed up updates. Normally I leave them commented out (# character at the beginning of the line)