How to Add Debian Sid Repository on Debian Based Systems

September 8, 2019 | By the+gnu+linux+evangelist | Filed in: Tutorial.

Setting Up Repo

  1. 2. Adding Repo

    Then to Add Debian Sid Repository
    Simply Copy and Execute this Command:

    su -c "echo 'deb http://ftp.fr.debian.org/debian sid main' > /etc/apt/sources.list.d/sid.list"

    Finally to Enable also the Contrib and Non-free Repos Instead:

    su -c "echo 'deb http://ftp.fr.debian.org/debian sid main contrib non-free' > /etc/apt/sources.list.d/sid.list"

    And in case of ‘authentication failure‘ use instead the ‘sudo su -c’ Command.

    Eventually Change the Debian Mirror in base of your Location.

    Debian Ftp Mirror List

    Finally, Ctrl+x to Save & Exit from nano Editor :)

  2. 3. Setting Up Default

    Then to Set the Default Release
    And this is Indispensable to Preserve the Stability of the System in Case of Updates/Upgrades!
    Make or Edit the Apt Config File:

    sudo nano /etc/apt/apt.conf

    And Depending of your Release Append
    For a Stable Based OS:

    APT::Default-Release "stable";

    Rather for Testing one:

    APT::Default-Release "testing";

    Finally, for a Rolling like Kali:

    APT::Default-Release "kali-rolling";

    Eventually if needed to Find out What’s your actual Repo Base
    Use the cat Command like:

    cat /etc/apt/sources.list

    Or again look into the sources Directory to find out eventual others Repos:

    cat /etc/apt/sources.list.d/*.list

    Thanks to dracae

  3. 4. Enabling Repo

    Finally, to Re-Load Repositories
    Do:

    sudo apt update
  4. 5. Installing Single Package

    Finally to Install One Package from Sid Repo
    Execute:

    sudo apt -t unstable install [MYCOOLPACKAGE]

    So for instance:

    sudo apt -t unstable install firefox

Contents


Tags: , , , , , , ,