为什么我不断收到此错误消息:
The repository 'cdrom://Kubuntu 20.04.3 LTS _Focal Fossa_ - Release amd64 (20210819.1) focal 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.
...那么究竟该如何改正呢?
非常感谢提供有关当前问题的任何信息。
答案1
正如所提到的阿奇斯曼·帕尼格拉希,您需要打开软件并更新应用程序并禁用CDrom存储库。
打开以下软件源文件
sources.list
:sudo nano /etc/apt/sources.list
找到类似于以下内容的行:
deb cdrom:[Ubuntu Desktop <version> <codename> - x86] <code name> <reponames>
最有可能的是它将是第一行。
#
在该行后面添加一个 来注释该行。# deb [<foo> <foo> blah blah whatever] foobar whatever...
如果需要,您还可以删除该行。
运行更新:
sudo apt update
或者,您可以将其更改/etc/apt/sources.list
为:
deb http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
deb http://archive.canonical.com/ubuntu focal partner
deb-src http://archive.canonical.com/ubuntu focal partner
然后运行apt update
:
sudo apt update
另一种 GUI 方式可以完成同样的操作:
首先,打开软件和更新应用程序。
sudo apt install software-properties-gtk sudo software-properties-gtk
然后导航至其他来源→Kubuntu 光盘。 名称可能不一样,您只需取消选中“CDrom”或类似的任何内容。
取消选中或者将其删除。
更新:
sudo apt update
就这样!
祝你好运!