При установке гостевых дополнений Ubuntu 16.04 | конфигурация Ядра недопустима?

Я запускаю Ubuntu 16.04 как гостевую систему в Windows 8.1 (VirtualBox), и я пытаюсь установить гостевые дополнения для активации 3D ускорения. Однако я получаю следующие сообщения об ошибках:

/var/log/vboxadd-install.log

grep: /lib/modules/4.4.0-104-generic/build/include/linux/version.h: No such file or directory
make KBUILD_VERBOSE=1 CONFIG_MODULE_SIG= -C /lib/modules/4.4.0-104-generic/build SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -j2 modules
make[1]: warning: -jN forced in submake: disabling jobserver mode.
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (        \
echo >&2;                           \
echo >&2 "  ERROR: Kernel configuration is invalid.";       \
echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";  \
echo >&2 ;                          \
/bin/false)
mkdir -p /tmp/vbox.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*
make -f ./scripts/Makefile.build obj=/tmp/vbox.0

sudo sh./VBoxLinuxAdditions.run:

Verifying archive integrity... All good.
Uncompressing VirtualBox 5.1.28 Guest Additions for Linux...........
VirtualBox Guest Additions installer
Removing installed version 5.1.28 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
vboxadd.sh: Starting the VirtualBox Guest Additions.

You may need to restart the Window System (or just restart the guest system)
to enable the Guest Additions.

Шаги я взял:

  • Установите последние драйверы Virtualbox 5.2.4

  • установка linux-headers-generic

Как я могу знать, поддерживается ли моя версия Ядра или нет? Какие шаги я мог сделать отсюда?

➜  ~ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.3 LTS
Release:    16.04
Codename:   xenial
➜  ~ uname -r      
4.4.0-104-generic
3
задан 4 January 2018 в 20:34

1 ответ

Нашел решение здесь , как сказал @ N0rbert, я установил build-essential и затем подготовил свою систему для сборки модуля ядра, используя следующие команды:

sudo apt update && sudo apt dist-upgrade 
sudo apt install build-essential module-assistant dkms
sudo m-a prepare

I не думайте, что dist-upgrade необходимо, может быть, upgrade достаточно, но используйте его по своему усмотрению.

/ usr / lib / nux / unity_support_test -p:

Not software rendered:    yes
Not blacklisted:          yes
GLX fbconfig:             yes
GLX texture from pixmap:  yes
GL npot or rect textures: yes
GL vertex program:        yes
GL fragment program:      yes
GL vertex buffer object:  yes
GL framebuffer object:    yes
GL version is 1.4+:       yes

Unity 3D supported:       yes
2
ответ дан 4 January 2018 в 20:34

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

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