在Debian testing上安装VirtualBox时出现404错误

3
尝试在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.
3个回答

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 -

希望我有所帮助 :D !! - Anthony Kalampogias
当我尝试执行此操作时,出现“gpg:无法打开'oracle_vbox_2016.asc':没有那个文件或目录”的错误。 - yourknightmares
我会尝试两件事: 1)https://wiki.debian.org/VirtualBox || 根据您使用的Debian版本查看是否有帮助 2)gedit /etc/apt/sources.list
并添加到deb http://download.virtualbox.org/virtualbox/debian stretch contrib(可能是这个链接) "non-free",不要加上“”
- Anthony Kalampogias
抱歉语法有误,我还是Stack Overflow的新手;-; - Anthony Kalampogias
无法将其切换到安装Stretch,因为它依赖的几个软件包已在测试中更新。 - yourknightmares
显示剩余2条评论

1

1
你可以从Debian仓库安装Virtualbox在Debian Buster上。请编辑你的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

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接