更新过程中出错:
W: Failed to fetch cdrom://Ubuntu 15.10 _Wily Werewolf_ - Release amd64 (20151021)/dists/wily/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
W: Failed to fetch cdrom://Ubuntu 15.10 _Wily Werewolf_ - Release amd64 (20151021)/dists/wily/restricted/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
W: Failed to fetch cdrom://Ubuntu 15.10 _Wily Werewolf_ - Release amd64 (20151021)/dists/wily/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
W: Failed to fetch cdrom://Ubuntu 15.10 _Wily Werewolf_ - Release amd64 (20151021)/dists/wily/restricted/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: Some index files failed to download. They have been ignored, or old ones used instead.
答案1
此错误是由 CD-ROM APT 存储库引起的。如果您有 Ubuntu Live CD,则可以使用此存储库离线安装软件。您可能希望禁用此功能,否则某些 APT 操作会抛出类似这样的错误。
为此,请在 Dash 中搜索“软件源”。打开软件源,转到系统管理选项卡,取消选中“Ubuntu 的 CD-ROM”之类的选项。重新加载源并关闭。现在,如果您运行sudo apt-get update
或使用更新管理器检查软件升级,问题应该不会再出现。