Some while ago I may have accidentally added an apt repository with an invalid URL. Now, every time I run
sudo apt update, the following error message shows at the bottom:
E: The repository 'http://archive.canonical.com (lsb_release Release' 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.
I've tried using
sudo add-apt-repository --remove 'http://archive.canonical.com (lsb_release Release', after running the command there was no difference. How can I remove this url from my apt repository list?
Edit: The url
http://archive.canonical.com (lsb_release Release is not found in my /etc/apt/sources.list
The following gist contains both the contents of
/etc/apt/sources.list as well as the output of
sudo apt update
Edit: Turns out it was the line
deb http://archive.canonical.com/ (lsb_release -sc) partner
You cannot have shell commands in your apt source file