Skip to content

Instantly share code, notes, and snippets.

@imneonizer
Last active May 14, 2020 05:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imneonizer/426e01a538315cc9c1d03d721b72ba85 to your computer and use it in GitHub Desktop.
Save imneonizer/426e01a538315cc9c1d03d721b72ba85 to your computer and use it in GitHub Desktop.
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