尝试在Debian Testing上安装Virtualbox时,添加存储库后出现404错误。
apt update
的内容:
Hit:1 http://ftp.us.debian.org/debian testing InRelease
Ign:2 http://download.virtualbox.org/virtualbox/debian testing InRelease
Err:3 http://download.virtualbox.org/virtualbox/debian testing Release
404 Not Found [IP: 23.218.90.109 80]
Reading package lists... Done
E: The repository 'http://download.virtualbox.org/virtualbox/debian testing Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
/etc/apt/sources/list
的内容:
#
# deb cdrom:[Debian GNU/Linux testing _Buster_ - Official Snapshot amd64 xfce-CD Binary-1 20190107-04:42]/ buster main
# deb cdrom:[Debian GNU/Linux testing _Buster_ - Official Snapshot amd64 xfce-CD Binary-1 20190107-04:42]/ buster main
deb http://ftp.us.debian.org/debian/ testing main
deb-src http://ftp.us.debian.org/debian/ testing main
# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
deb http://download.virtualbox.org/virtualbox/debian testing contrib
# deb-src http://download.virtualbox.org/virtualbox/debian testing contrib
# see the sources.list(5) manual.
答案 0 :(得分:2)
您需要来自虚拟盒子存储库的发布文件(如我所相信) 试试这些:
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
答案 1 :(得分:1)
由于使用Debian Testing而不是Stable / Stretch,我必须像为Ubuntu 18.0.4一样安装VirtualBox。我在这里找到了相关说明:https://www.itzgeek.com/how-tos/linux/ubuntu-how-tos/install-virtualbox-4-5-ubuntu-16-04.html
答案 2 :(得分:1)
您还可以从debian存储库在debian Buster上安装Virtualbox。
编辑您的sources.list
apt edit-sources
,其中包含以下几行(添加了contrib
组件):
deb http://ftp.us.debian.org/debian/ buster main contrib
deb-src http://ftp.us.debian.org/debian/ buster main contrib
deb http://ftp.us.debian.org/debian/ buster-updates main contrib
deb-src http://ftp.us.debian.org/debian/ buster-updates main contrib
然后:
apt update
apt install virtualbox