DEV Community

Ritik Soni
Ritik Soni

Posted on

apt update-fix not found packages! or guide to update successfully your Ubuntu

Alt Text
this picture is about nodejs but ill tell you how you can handle this type of issue for any module or packages.

when you mistakenly edit your source.list or you are having any error on updating your distro with sudo apt-get update
Alt Text

reason:-

this is maybe your ubuntu mirror{your local region distribution for ubuntu} have some issues or you messed up with it.
my region is India you can see in the image below it has in. Alt Text
you can check yours by sudo nano /etc/apt/sources.list

when you open your sources.list by the above command you just make a copy of this file for backup if something bad happens after pasting these URLs into sources.list

deb http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiv>

deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe mu>
deb-src http://archive.ubuntu.com/ubuntu/ focal-updates main restricted univers>

deb http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe m>
deb-src http://archive.ubuntu.com/ubuntu/ focal-security main restricted univer>

deb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe >
deb-src http://archive.ubuntu.com/ubuntu/ focal-backports main restricted unive>

deb http://archive.canonical.com/ubuntu focal partner
deb-src http://archive.canonical.com/ubuntu focal partner


Enter fullscreen mode Exit fullscreen mode

this will help you!
now save it and try to update by
sudo apt-get update
and Voila!

if you are still facing issues then let me know

Top comments (0)