Ошибка 404 при установке virtualbox при тестировании Debian - PullRequest
0 голосов
/ 14 января 2019

При попытке установить Virtualbox в Debian Testing я получаю сообщение об ошибке 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 ]

0 голосов
/ 14 января 2019

Из-за использования тестирования Debian вместо Stable / Stretch мне пришлось установить VirtualBox, как будто он установлен для Ubuntu 18.0.4. Инструкции для этого я нашел здесь: https://www.itzgeek.com/how-tos/linux/ubuntu-how-tos/install-virtualbox-4-5-ubuntu-16-04.html

0 голосов
/ 14 января 2019

Вы также можете установить Virtualbox на Debian Buster из репозитория debian.

Редактировать 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
0 голосов
/ 14 января 2019

Вам нужен файл релиза из хранилища виртуальных ящиков (как я полагаю) попробуйте это:

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 -
...