![更新信息已过时,“无法获取 cdrom”](https://linux22.com/image/973950/%E6%9B%B4%E6%96%B0%E4%BF%A1%E6%81%AF%E5%B7%B2%E8%BF%87%E6%97%B6%EF%BC%8C%E2%80%9C%E6%97%A0%E6%B3%95%E8%8E%B7%E5%8F%96%20cdrom%E2%80%9D.png)
我的屏幕顶部有一个警告三角形。当我点击它时,它说我的更新信息已过期。当我sudo apt-get update && sudo apt-get upgrade
在终端中输入时,我收到以下消息:
W: Failed to fetch cdrom://Ubuntu 14.04 LTS _Trusty Tahr_ - Release i386 (20140417)/dists/trusty/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 14.04 LTS _Trusty Tahr_ - Release i386 (20140417)/dists/trusty/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
您的更新设置已启用您的 cdrom 文件。因此,每次尝试更新时,它都会自动查找那些文件,而这些文件按定义是过时的。只需取消选择那些 cdrom 选项,即可sudo apt-get update && sudo apt-get upgrade
正常运行。