Setting Up a Complete Repository for Debian Squeeze

May 27th, 2011 by Regaz

This Document Show a Detailed Setup for the Debian Squeeze Repository.

Following this Short Guide you will have a Nicely Working Debian System Repo.

Linux, Debian Linux Setup, Debian Linux Tutorial, Debian Linux Documentation, Ubuntu Linux Tutorial, Debian Debian Debian, Ubuntu Ubuntu Ubuntu, Linux Virtualization, Linux Workstation, Linux Software, Linux Kernel, Debian GNU, Ubuntu GNU
  1. Edit your /etc/apt/sources.list File and insert the text below:
    ## Debian Squeeze sources.list

    ## Debian security updates:
    deb http://security.debian.org/squeeze/updates main contrib non-free
    deb-src http://security.debian.org/squeeze/updates main contrib non-free

    ## Debian.org:
    deb http://ftp.debian.org/debian/squeeze main contrib non-free
    deb-src http://ftp.debian.org/debian/squeeze main contrib non-free

    ## Debian Official Repository Mirror squeeze:
    deb ftp://debian.oregonstate.edu/debian/squeeze main contrib non-free
    deb-src ftp://debian.oregonstate.edu/debian/squeeze main contrib non-free
    deb ftp://debian.oregonstate.edu/debian/squeeze-proposed-updates main contrib non-free
    deb-src ftp://debian.oregonstate.edu/debian/squeeze-proposed-updates main contrib non-free

    ## Debian NL mirror:
    deb http://ftp.nl.debian.org/debian squeeze main contrib non-free
    deb-src http://ftp.nl.debian.org/debian squeeze main contrib non-free

    ## Debian DE mirror:
    deb http://ftp.de.debian.org/debian squeeze main contrib non-free
    deb-src http://ftp.de.debian.org/debian squeeze main contrib non-free

    ## Debian US mirror:
    deb ftp://ftp.us.debian.org/debian/squeeze main contrib non-free
    deb-src ftp://ftp.us.debian.org/debian/squeeze main contrib non-free

    ## Wine repositories:
    deb http://www.lamaresh.net/apt squeeze main

    ## Opera webbrowser:
    deb http://deb.opera.com/opera/squeeze non-free

    ## Tor:
    # deb http://mirror.noreply.org/pub/tor squeeze main

    ## moblock: mobloquer http://moblock-deb.sourceforge.net
    ## gpg --keyserver wwwkeys.eu.pgp.net --recv 9072870B
    ## gpg --export --armor 9072870B | sudo apt-key add -
    # deb http://moblock-deb.sourceforge.net/debian squeeze main
    ## Quoted cause of index failure
    # deb-src http://moblock-deb.sourceforge.net/debian squeeze main

    ## EFTel mirror updates
    deb http://mirror.eftel.com/debian squeeze main non-free contrib
    deb-src http://mirror.eftel.com/debian squeeze main non-free contrib

    ## Debian.hands.com squeeze:
    deb http://debian.hands.com/debian/squeeze main non-free contrib
    deb-src http://debian.hands.com/debian/squeeze main non-free contrib

    ## Debian Multimedia squeeze:
    deb http://mirror.home-dn.net/debian-multimedia squeeze main



    ## All testing repositories:

    ## Debian.org testing:
    deb ftp://ftp.debian.org/debian testing main contrib non-free
    deb-src ftp://ftp.debian.org/debian testing main contrib non-free

    ## Debian Official Repository Mirror testing:
    deb ftp://debian.oregonstate.edu/debian/testing main contrib non-free
    deb-src ftp://debian.oregonstate.edu/debian/testing main contrib non-free

    ## Austrian testing mirror:
    deb http://ftp.au.debian.org/debian/testing main non-free contrib
    deb-src http://ftp.au.debian.org/debian/testing main non-free contrib

    ## Debian Unofficial:
    ## For more info visit http://debian-unofficial.org/
    deb http://ftp.debian-unofficial.org/debian testing main contrib non-free restricted
    deb-src http://ftp.debian-unofficial.org/debian testing main contrib non-free restricted

    ## Debian Multimedia - Christian Marrillat repository:
    deb http://www.debian-multimedia.org testing main
    deb-src http://www.debian-multimedia.org testing main

    ## Google software repository:
    ## http://www.google.com/linuxrepositories/apt.html
    ## (wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - )
    ## or (gpg --keyserver subkeys.pgp.net --recv A040830F7FAC5991 && gpg --export --armor A040830F7FAC5991 | sudo apt-key add - )
    ## Quoted cause of index failure
    # deb http://dl.google.com/linux/deb/testing non-free

    ## Debian.hands.com testing:
    deb http://debian.hands.com/debian/testing main non-free contrib
    deb-src http://debian.hands.com/debian/testing main non-free contrib

    ## Debian Multimedia testing:
    deb http://mirror.home-dn.net/debian-multimedia testing main

    ## Compiz /Compiz-Fusion testing:
    ## Quoted cause of index failure
    # deb http://download.tuxfamily.org/osrdebian testing compiz-fusion-git
    # deb http://download.tuxfamily.org/shames/debian-lenny/desktopfx/testing/./



    ## All expirimental repositories:

    ## Debian experimental US mirror:
    # deb http://ftp.us.debian.org/debian/experimental main contrib non-free
    # deb http://www.debian-multimedia.org experimental main



    ## All unstable repositories:

    ## Compiz /Compiz-Fusion unstable:
    ## Quoted cause of index failure
    # deb http://download.tuxfamily.org/osrdebian unstable compiz-fusion-git
    # deb http://download.tuxfamily.org/shames/debian-lenny/desktopfx/unstable/./



    ## Legacy, obsoleted repositories:

    ## XFCE repositories:
    ## Squeeze not available yet
    # deb http://www.debian-desktop.org/pub/linux/debian/xfce46 lenny xfce460
    # deb-src http://www.debian-desktop.org/pub/linux/debian/xfce46 lenny xfce460

    ## Virtual box (not OSE but SUN)
    ## Squeeze not available yet
    ## Quoted cause of index failure
    # deb http://download.virtualbox.org/virtualbox/debian lenny non-free

    ## Kirya Unofficial Debian packages:
    ## Squeeze not available yet
    ## Testing is linked to lenny and results in compatibility errors (old lenny = testing)
    ## http://packages.kirya.net/
    # deb http://packages.kirya.net/debian/lenny main contrib non-free
    # deb-src http://packages.kirya.net/debian/lenny main contrib non-free

    #################### squeeze-backports ########################################
    deb http://backports.debian.org/debian-backports squeeze-backports main

    After this to keep your system stable you need to set priorities, so insert on /etc/apt/preferences the text below:


    Package: *
    Pin: release o=Debian,a=squeeze
    Pin-Priority: 900

    Package: *
    Pin: release o=Debian,a=testing
    Pin-Priority: 800

    Package: *
    Pin: release a=testing
    Pin-Priority: 700

    Package: *
    Pin: release a=experimental
    Pin-Priority: 600

    Package: *
    Pin: release a=sid
    Pin-Priority: 500

    Package: *
    Pin: release a=unstable
    Pin-Priority: 300

    Package: *
    Pin: release o=Debian,a=lenny
    Pin-Priority: 200

    Latest to prevent some cache’s error edit or add a file /etc/apt/apt.conf with:


    APT::Cache-Limit "100000000";

    Now you can execute:

    sudo apt-get update

    and use your new Repository.

  2. Detailed Tutorials for Debian Linux:

    Debian Visual-Tutorials

Good Luck! ;)

Tags: , ,