sudo apt-get update:CD-ROM 没有发布文件

sudo apt-get update:CD-ROM 没有发布文件

运行时出现以下错误apt-get update

W: The repository 'cdrom://Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1) xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch cdrom://Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)/dists/xenial/main/binary-amd64/Packages  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
E: Some index files failed to download. They have been ignored, or old ones used instead.

我该如何继续?

答案1

看起来您正在尝试使用 CD 作为存储库。您无法通过这种方式执行此操作,因为 CD 没有必要的结构。如果您想让 APT 可以访问 CD,则必须使用。您可以在s 手册页apt-cdrom上找到更多信息apt-cdrom

man apt-cdrom

并且,没有冒犯的意思,但是你在问题中引用的错误信息确实告诉你:

请使用 apt-cdrom 使 APT 识别此 CD-ROM。apt-get update 不能用于添加新的 CD-ROM

相关内容