From 696c13c46cf60093f2c6a74a2bada9aea1526c60 Mon Sep 17 00:00:00 2001 From: Asocia Date: Tue, 18 May 2021 21:11:59 +0300 Subject: [PATCH] TIL: Deleting a repository that is not needed --- system/deleting-a-repository-that-is-not-needed.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 system/deleting-a-repository-that-is-not-needed.md diff --git a/system/deleting-a-repository-that-is-not-needed.md b/system/deleting-a-repository-that-is-not-needed.md new file mode 100644 index 0000000..e31d52f --- /dev/null +++ b/system/deleting-a-repository-that-is-not-needed.md @@ -0,0 +1,13 @@ +Say you added a repository with `sudo add-apt-repository -y ppa:...` and you want to delete it maybe because it gives you an error while you are trying to update your system: +``` +E: The repository 'http://ppa.launchpad.net/...' does not have a Release file. +N: Updating from such a repository can't be done securely, and is therefore disabled by default. +N: See apt-secure(8) manpage for repository creation and user configuration details. +``` + +You will need to find corresponding file in `sources.list.d` and delete it. + +``` +cd /etc/apt/sources.list.d +sudo rm bad-repo.list +```