前段时间我可能不小心添加了一个带有无效 URL 的 apt 存储库。现在,每次我运行sudo apt update
时,底部都会显示以下错误消息:
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.
我试过使用sudo add-apt-repository --remove 'http://archive.canonical.com (lsb_release Release'
,运行命令后没有区别。如何从我的 apt 存储库列表中删除此 url?
http://archive.canonical.com (lsb_release Release
编辑:在我的 /etc/apt/sources.list 中找不到该 url
以下要点包含https://gist.github.com/MrSiliconGuy/4ae2c649e5133f7edff012bfd6483d70/etc/apt/sources.list
的内容和输出sudo apt update
编辑:原来是这条线deb http://archive.canonical.com/ (lsb_release -sc) partner
apt 源文件中不能有 shell 命令