我是这个 Ubuntu 系统的新手,我经常使用 Windows。无论如何,我叔叔给了我一台使用 Ubuntu 10 或类似系统的笔记本电脑,我将它更新到 12.04。
系统弹出这个 Ubuntu,我点击了安装按钮,但几分钟后出现了一些错误,如下所示。
W:Failed to fetch cdrom://Ubuntu 10.04.1 LTS_Lucid Lynx_-Release i386 (20100816.1)/dists/lucid/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 10.04.1 LTS_Lucid Lynx_-Release i386 (20100816)/dists/lucid/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
尝试运行gksu software-properties-gtk
并取消选中 10.04 CDROM。
答案2
或者如果你想要在终端中使用解决方案:
sudo sed -i 's/deb\ cdrom/#deb\ cdrom/g' /etc/apt/sources.list
sudo sed -i 's/deb-src\ cdrom/#deb\ cdrom/g' /etc/apt/sources.list
它将-i
就地编辑文件,这意味着它将编辑文件本身。