Wednesday 1 June 2011

/etc/apt/sources.list

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 http://ftp.uk.debian.org/debian/ squeeze main contrib non-free
deb-src http://ftp.uk.debian.org/debian/ squeeze main contrib non-free

deb http://ftp.uk.debian.org/debian/ squeeze-updates main contrib non-free
deb-src http://ftp.uk.debian.org/debian/ squeeze-updates main contrib non-free

deb http://security.debian.org/ squeeze/updates main contrib non-free
deb-src http://security.debian.org/ 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.