我收到这些错误
W: Failed to fetch http://download.virtualbox.org/virtualbox/debian/dists/utopic/contrib/binary-amd64/Packages 404 Not found
W: Failed to fetch http://download.virtualbox.org/virtualbox/debian/dists/utopic/non-free/binary-amd64/Packages 404 Not found
我怎样才能阻止这些消息出现?
答案1
您的 apt-get 源存储在 中/etc/apt/sources.list
,因此如果您确实只是想删除一个源,您可以编辑该文件并删除相应的行。
但是,你还安装了 virtualbox 吗?如果安装了,你可能需要将正确的信息输入 sources.list。来自 virtualbox 网站:
Debian-based Linux distributions
Add one of the following lines according to your distribution to your /etc/apt/sources.list:
deb http://download.virtualbox.org/virtualbox/debian trusty contrib
deb http://download.virtualbox.org/virtualbox/debian saucy contrib
deb http://download.virtualbox.org/virtualbox/debian raring contrib
deb http://download.virtualbox.org/virtualbox/debian quantal contrib
deb http://download.virtualbox.org/virtualbox/debian precise contrib
deb http://download.virtualbox.org/virtualbox/debian lucid contrib non-free
deb http://download.virtualbox.org/virtualbox/debian wheezy contrib
deb http://download.virtualbox.org/virtualbox/debian squeeze contrib non-free
因此,也许可以尝试将 virtualbox 行更改为/etc/apt/sources.list
上面的其中一行(选择与您的 ubuntu 版本相匹配的行)。