I have remove the disabled APT repositories, but as suggested here Remove APT repositories disabled after upgrade to 18.04 I didn't do this:

"Some of the disabled repositories may have "xenial" in the text. You will need to replace "xenial" with "bionic" before you enable them so that they point to the right repository version."

Which APT I need to add, this is my current list of APT:

enter image description here


There are four main repository which you need to ensure you get the most of Ubuntu packages, it is.

The "Ubuntu Software" tab displays a list of repositories or "Channels". The four main repositories are:

Main - Canonical-supported free and open-source software.

Universe - Community-maintained free and open-source software.

Restricted - Proprietary drivers for devices.

Multiverse - Software restricted by copyright or legal issues. 

For a detailed description of these repositories, see Repositories.

Considering you are upgraded from Xenial to Bionic, the repositories you own must have listed as Xenial version, you can simply all occurance of Xenial to Bionic.

sudo sed -i "s/xenial/bionic/g" /etc/apt/sources.list
sudo apt update

Also, creating a brand new source list may help. This will rename the old source list to sources.list.bak (in which you can return anytime), and create new sources.list—fill them with four main Bionic repository.

sudo mv /etc/apt/sources.list /etc/apt/sources.list.bak
echo "deb http://archive.ubuntu.com/ubuntu bionic main restricted multiverse universe" | sudo tee -a /etc/apt/sources.list
sudo apt update
  • Thank You Jim for quick and detailed report. As I understand I can just run the last commands that you posted. Means 1) Make backup of current sources.list and then 2) create a new one using the second command. Am I right? That would be the basic that I need? – Zoroaster Apr 9 at 8:34
  • 1
    Yeah, be aware that would remove 3rd party repositories. But you can anytime add it again, no big deal. – Jim Apr 9 at 8:45
  • Thanks Jim, I think you mean Vivaldi and Stacer; I will add them after.. Will try now – Zoroaster Apr 9 at 9:08
  • I run the two command, and now I have just one line in sources.list, this: cat /etc/apt/sources.list "deb archive.ubuntu.com/ubuntu bionic main restricted multiverse universe" – Zoroaster Apr 9 at 9:10
  • It's this correct? – Zoroaster Apr 9 at 9:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.