当前位置: 首页>>技术教程>>正文


sudo apt get update的问题:存储库cdrom…没有发布文件

,

问题描述

每当我尝试更新(使用sudo apt-get update)我的Ubuntu时,都会出现此问题:

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.
W: The repository 'ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu 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: Failed to fetch cdrom://Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)/dists/xenial/main/binary-i386/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: Failed to fetch ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu/dists/xenial/main/binary-amd64/Packages  404  Not Found
E: Failed to fetch ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu/dists/xenial/main/binary-i386/Packages  404  Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.

我该如何解决?我使用Ubuntu 16.04 LTS

最佳方法

要从终端解决此问题,必须直接从/etc/apt/sources.list删除/注释此CD-ROM存储库源

 sudo nano /etc/apt/sources.list

并注释或删除包含cdrom的行。例如:

deb cdrom:[Ubuntu-Server 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.3)]/ xenial main restricted

次佳方法

尝试以下操作:打开软件和更新并在“ Ubuntu软件”选项卡中,取消选中“可从CD-ROM /DVD安装”部分下的具有Ubuntu 16.04 LTS ‘Xenial Xerus’的Cdrom。

参考资料

本文由Ubuntu问答整理, 博文地址: https://ubuntuqa.com/article/11750.html,未经允许,请勿转载。