E: Пакет 'linux -headers-4.18.12-041812-generi c' не имеет кандидата на установку - PullRequest
0 голосов
/ 08 апреля 2020

Я пытался запустить Virtual Box на Ubuntu 18.04, но постоянно получаю сообщение об ошибке.

Драйвер ядра не установлен (rc = -1908)

Драйвер ядра VirtualBox Linux либо не загружен, либо неправильно настроен. Пожалуйста, попробуйте настроить его снова, выполнив

'/ sbin / vboxconfig'

как root.

Если в вашей системе включена безопасная загрузка EFI, вам также может потребоваться подписать модули ядра (vboxdrv, vboxnetflt, vboxnetadp, vboxpci), прежде чем вы сможете загрузить их. Для получения дополнительной информации см. Документацию системы Linux.

где: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - драйвер поддержки не установлен. На linux, open возвращает ENOENT.

Поэтому я пытаюсь запустить sudo / sbin / vboxconfig, я получаю следующие ошибки:

sudo /sbin/vboxconfig
[sudo] password for user: 
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
This system is currently not set up to build kernel modules.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.
The distribution packages containing the headers are probably:
    linux-headers-generic linux-headers-4.18.12-041812-generic
This system is currently not set up to build kernel modules.
Please install the Linux kernel "header" files matching the current kernel
for adding new hardware support to the system.
The distribution packages containing the headers are probably:
    linux-headers-generic linux-headers-4.18.12-041812-generic

There were problems setting up VirtualBox.  To re-start the set-up process, run
  /sbin/vboxconfig
as root.  If your system is using EFI Secure Boot you may need to sign the
kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load
them. Please see your Linux system's documentation for more information.

Если я пытаюсь установить Linux заголовки, которые я получаю:

sudo apt-get install linux-headers-$(uname -r)
[sudo] password for user: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package linux-headers-4.18.12-041812-generic is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'linux-headers-4.18.12-041812-generic' has no installation candidate

Так как мне это исправить, чтобы я мог запустить Vbox? Должен ли я обновить свое ядро?

...