Виртуальное Поле “система в настоящее время не настраивается для создания модулей ядра” на 16,04 (гостеприимный)

Я пытался установить виртуальное поле, но я получаю следующую ошибку.

$ sudo /sbin/vboxconfig 
[sudo] password for dude: 
vboxdrv.sh: Building VirtualBox kernel modules.
This system is not currently set up to build kernel modules (system extensions).
Running the following commands should set the system up correctly:

  apt-get install linux-headers-4.4.0-24-generic
(The last command may fail if your system is not fully updated.)
  apt-get install linux-headers-generic
vboxdrv.sh: failed: Look at /var/log/vbox-install.log to find out what went wrong.
This system is not currently set up to build kernel modules (system extensions).
Running the following commands should set the system up correctly:

  apt-get install linux-headers-4.4.0-24-generic
(The last command may fail if your system is not fully updated.)
  apt-get install linux-headers-generic

There were problems setting up VirtualBox.  To re-start the set-up process, run
  /sbin/vboxconfig
as root.

Мое текущее ядро:

$ uname -r
4.4.0-24-generic

При попытке обновить заголовки дают мне следующее.

$ sudo apt-get upgrade && sudo apt-get install linux-headers-generic
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
linux-headers-generic is already the newest version (4.4.0.21.22).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Попробованный для установки linux-headers-4.4.0-24-generic непосредственно от deb, все еще получая ошибки. Из Кв. - добираются, я добираюсь:

$ sudo apt-get install linux-headers-4.4.0-24-generic
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package linux-headers-4.4.0-24-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.4.0-24-generic' has no installation candidate

Конечно, должен быть способ зафиксировать это. Какие-либо предложения?На помощь!

2
задан 17 August 2016 в 06:04

1 ответ

Вывод apt-cache policy linux-headers-4.4.0-24-generic, который вы предоставили, был важным ключом к выяснению причины этой проблемы. Поскольку команда сообщила (частично) Candidate: none, стало ясно, что репозитории не были правильно настроены в вашей системе, и поэтому она не знала, где найти нужный пакет. Добавьте http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main в список источников, и вы сможете установить пакет.

Точно так же вы можете проверить остальную часть списка источников, вот как выглядит мой, чтобы использовать его в качестве примера (я удалил закомментированные строки).

deb http://us.archive.ubuntu.com/ubuntu/ trusty main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty main restricted
deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
deb http://us.archive.ubuntu.com/ubuntu/ trusty universe
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty universe
deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-updates universe
deb http://us.archive.ubuntu.com/ubuntu/ trusty multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty multiverse
deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-updates multiverse
deb http://us.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb http://us.archive.ubuntu.com/ubuntu/ trusty-security main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-security main restricted
deb http://us.archive.ubuntu.com/ubuntu/ trusty-security universe
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-security universe
deb http://us.archive.ubuntu.com/ubuntu/ trusty-security multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-security multiverse
deb http://extras.ubuntu.com/ubuntu trusty main
deb-src http://extras.ubuntu.com/ubuntu trusty main
0
ответ дан 2 December 2019 в 10:12

Другие вопросы по тегам:

Похожие вопросы: