在 debian 测试中安装 virtualbox 时出现 404 错误
404 error installing virtualbox on debian testing
尝试在 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.
您需要来自 virtual box 存储库的发布文件(我相信)
试试这些:
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 -
由于使用 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
您还可以从 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
尝试在 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.
您需要来自 virtual box 存储库的发布文件(我相信) 试试这些:
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 -
由于使用 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
您还可以从 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