Last Updated on March 18, 2023 by itsubuntu
How to fix the “Updating from such a repository can’t be done securely” error in Linux
You might have encountered this error while trying to run the
apt update or the
apt upgrade command.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
Along with the above error message, you will also come across the following error:
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/precise/Release.gpg
How To Fix “Updating from such a repository can’t be done securely” Error In Linux
Adding an unsigned repository with a flag in Linuz
If you are using an unsigned repository, you might be getting this error as Linux flags unsigned repositories as insecure. Go through the following steps to add an option to it in your
sources.list file using a text editor:
Add the following option to the source you are using:
Save and exit using the ESC key then
sudo apt-get update command and see if the problem is resolved.
Bypass the safeguard in Linux
You can bypass the authentication safety measures and allow the package to be installed without getting any errors.
Disable the repositories that are causing trouble in Linu
Go through the following steps:
Open the software updater
Under the Other Software tab, find the concerned repositories and uncheck them
Close the software updater and run the following command:
Leave a Comment