Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
How to resolve apt repository problem on linux
Error: Could not resolve 'bionic' unable to find package

These problems occur when sources repository address is configured wrong.
To fix this problem sudo nano /etc/apt/sources.list find out which repository is causing problem and remove it.

To add add default repositories use below command:

sudo add-apt-repository main
sudo add-apt-repository universe
sudo add-apt-repository restricted
sudo add-apt-repository multiverse

And finally do an sudo apt-get update -y

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment