How to Add Ubuntu 18.04 Bionic Repository

December 6, 2019 | By the+gnu+linux+evangelist.

GNU/Linux Ubuntu Enabling Ubuntu Bionic Repo Guide

Hi! The Tutorial shows you Step-by-Step How to Add/Enable Ubuntu 18.04 Bionic Repository in Ubuntu-Based GNU/Linux OSes.

And Ubuntu Bionic Repository contains some Extra Stuff that you may want Installed on your System.

Especially relevant: using the Apt Pinning after this Setup the System Stability is Preserved.

Finally, this Setup is valid for all the Ubuntu Linux Based Distros like:

  • Linux Mint
  • Lubuntu
  • Kubuntu
  • Xubuntu
  • Zorin OS
  • Elementary OS
  • Linux Lite
  • Bodhi Linux
  • Kde Neon
  • Pop!_OS
  • Voyager
  • Trisquel
  • LXLE
  • feren OS
  • Peppermint
  • Q4OS
  • Linux Ultimate Edition
How to Add Ubuntu Bionic Repository for Ubuntu-based Systems - Featured
  1. 1. Launching Terminal

    How to QuickStart with Command Line on GNU/Linux

    Bash Shell Ubuntu QuickStart Guide
  2. 2. Adding Repo

    Then to Add Ubuntu Bionic Repository
    Simply Copy and Execute this Command for the Universe:

    sudo su -c "echo 'deb [trusted=yes] http://cz.archive.ubuntu.com/ubuntu bionic main universe multiverse' >> /etc/apt/sources.list.d/bionic.list"

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

  3. 3. Pinning Apt

    Then to make Apt Pinning Setup
    (Optional if you need to install only some Packages and after you disable it)
    And this is Fundamental to Preserve the Stability of the System in Case of Updates/Upgrades!
    So then Edit the Apt Preferences File with:

    sudo nano /etc/preferences

    And for a Ubuntu 20.04 Focal Based Distro Append:

    Package: *
    Pin: release n=focal
    Pin-Priority: 700
    
    Package: *
    Pin: release n=bionic
    Pin-Priority: 600
    

    Instead, for a Ubuntu 16.04 Xenial Based Distro:

    Package: *
    Pin: release n=xenial
    Pin-Priority: 700
    
    Package: *
    Pin: release n=bionic
    Pin-Priority: 600
    

    Ctrl+Shift+v to Paste in Code.
    And finally, Ctrl+x to Save & Exit from nano.
    Possibly to Find 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
  4. 4. Enabling Repo

    Finally, to Re-Load Repositories
    Do:

    sudo apt update
  5. 5. Installing Single Package

    Finally, to Install One Package from Bionic Repo
    Execute:

    sudo apt -t bionic install [MYCOOLPACKAGE]

    So for instance:

    sudo apt -t bionic install libgconfmm-2.6-1v5
  6. 6. Disabling Repo

    Then in case to Remove Bionic Repository
    Issue:

    sudo rm /etc/apt/sources.list.d/bionic.list

    And after Update the Apt Sources again!


QuickChic Theme • Powered by WordPress