How to Add Debian Stable Repository on Debian Based Systems

December 11, 2019 | By the+gnu+linux+evangelist | Filed in: Tutorial.

Setting Up Repo

  1. 2. Adding Repo

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

    (And in case of “su: Authentication failure” try instead with “sudo su“)

    su -c "echo 'deb stable main' > /etc/apt/sources.list.d/stable.list"

    Finally, to Enable also the Contrib and Non-free Repos Instead:
    (And in case of “su: Authentication failure” try instead with “sudo su“)

    su -c "echo 'deb stable main contrib non-free' > /etc/apt/sources.list.d/stable.list"

    Possibly 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 an OldStable Based OS:

    APT::Default-Release "oldstable";

    Possibly 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

    sudo apt update
  4. 5. Installing Single Package

    Finally, to Install One Package from Stable Repo

    sudo apt -t stable install [MYCOOLPACKAGE]

    So for instance:

    sudo apt -t stable install firefox


Tags: , , , , , , , , , , , , , ,

QuickChic Theme • Powered by WordPress