deb cdrom:[Ubuntu 20.04.3 LTS Focal Fossa - 发布 amd64 (20210819)]/ focal main restricted

deb cdrom:[Ubuntu 20.04.3 LTS Focal Fossa - 发布 amd64 (20210819)]/ focal main restricted

该存储库cdrom://Ubuntu 20.04.3 LTS _Focal Fossa_ - Release amd64 (20210819) Focal Release没有发布文件。

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

打开终端并运行以下命令来编辑存储库列表:

狂欢

sudo nano /etc/apt/sources.list

查找以 cdrom: 开头的行,并在行首添加 # 将其注释掉。它看起来应该像这样:

狂欢

deb cdrom:[Ubuntu 20.04.3 LTS Focal Fossa - 发布 amd64 (20210819)]/ focal main restricted

保存更改并退出文本编辑器。

更新软件包列表:

删除 CD-ROM 存储库后,更新软件包列表以刷新存储库:

狂欢

sudo apt-get 更新

删除不必要的存储库文件:

/etc/apt/sources.list.d/ 目录中可能有与 CD-ROM 存储库相关的文件。检查是否有与 CD-ROM 存储库相关的文件并将其删除。例如:

狂欢

sudo rm /etc/apt/sources.list.d/cdrom-something.list

Optional: Configure Software & Updates GUI:

If you prefer a graphical interface, you can also use the "Software & Updates" application to manage your software sources. Open it, go to the "Other Software" tab, and uncheck the CD-ROM repository.

相关内容