View Issue Details

IDProjectCategoryView StatusLast Update
0006742Kali LinuxKali Package Bugpublic2020-12-01 10:48
ReporterGian42 Assigned Tosbrun  
PrioritynormalSeverityblockReproducibilityalways
Status resolvedResolutionno change required 
Product Version2020.3 
Summary0006742: virtualbox-dkms build error after upgrade to 6.1.14-dfsg-4
Description

After the last upgrade virtualbox-dkms doesn't recompile module.
I tried to remove all VirtualBox packages and reinstall them, but the error is always the same:


Deleting module version: 6.1.14
completely from the DKMS tree.

Done.
Loading new virtualbox-6.1.14 DKMS files...
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf8)
Building for 5.8.0-kali1-amd64
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf8)
Building initial module for 5.8.0-kali1-amd64
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf8)
Error! Bad return status for module build on kernel: 5.8.0-kali1-amd64 (x86_64)
Consult /var/lib/dkms/virtualbox/6.1.14/build/make.log for more information.
dpkg: error processing package virtualbox-dkms (--configure):
installed virtualbox-dkms package post-installation script subprocess returned error exit status 10
Errors were encountered while processing:
virtualbox-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)

~# cat /var/lib/dkms/virtualbox/6.1.14/build/make.log
DKMS make.log for virtualbox-6.1.14 for kernel 5.8.0-kali1-amd64 (x86_64)
Wed Sep 23 08:03:31 CEST 2020
make: Entering directory '/usr/src/linux-headers-5.8.0-kali1-amd64'

ERROR: Kernel configuration is invalid.
include/generated/autoconf.h or include/config/auto.conf are missing.
Run 'make oldconfig && make prepare' on kernel src to fix it.

make[1]: [/usr/src/linux-headers-5.8.0-kali1-common/Makefile:718: include/config/auto.conf] Errore 1
make:
[/usr/src/linux-headers-5.8.0-kali1-common/Makefile:185: __sub-make] Error 2
make: Leaving directory '/usr/src/linux-headers-5.8.0-kali1-amd64'

Steps To Reproduce

~# apt remove --purge virtualbox*
~# apt update && apt upgrade
~# apt install --reinstall linux-headers-5.8.0-kali1-common linux-headers-5.8.0-kali1-amd64
~# apt install virtualbox

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
virtualbox-dkms virtualbox-qt
Suggested packages:
vde2 virtualbox-guest-additions-iso
The following NEW packages will be installed:
virtualbox virtualbox-dkms virtualbox-qt
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 42.8 MB/43.5 MB of archives.
After this operation, 174 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://kali.download/kali kali-rolling/contrib amd64 virtualbox amd64 6.1.14-dfsg-4 [21.3 MB]
Get:2 http://kali.download/kali kali-rolling/contrib amd64 virtualbox-qt amd64 6.1.14-dfsg-4 [21.5 MB]
Fetched 42.8 MB in 12s (3524 kB/s)
Selecting previously unselected package virtualbox-dkms.
(Reading database ... 421594 files and directories currently installed.)
Preparing to unpack .../virtualbox-dkms_6.1.14-dfsg-4_amd64.deb ...
Unpacking virtualbox-dkms (6.1.14-dfsg-4) ...
Selecting previously unselected package virtualbox.
Preparing to unpack .../virtualbox_6.1.14-dfsg-4_amd64.deb ...
Unpacking virtualbox (6.1.14-dfsg-4) ...
Selecting previously unselected package virtualbox-qt.
Preparing to unpack .../virtualbox-qt_6.1.14-dfsg-4_amd64.deb ...
Unpacking virtualbox-qt (6.1.14-dfsg-4) ...
Setting up virtualbox-dkms (6.1.14-dfsg-4) ...
Loading new virtualbox-6.1.14 DKMS files...
Building for 5.8.0-kali1-amd64
Building initial module for 5.8.0-kali1-amd64
Error! Bad return status for module build on kernel: 5.8.0-kali1-amd64 (x86_64)
Consult /var/lib/dkms/virtualbox/6.1.14/build/make.log for more information.
dpkg: error processing package virtualbox-dkms (--configure):
installed virtualbox-dkms package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of virtualbox:
virtualbox depends on virtualbox-dkms (>= 6.1.14-dfsg-4) | virtualbox-source (>= 6.1.14-dfsg-4) | virtualbox-modules; however:
Package virtualbox-dkms is not configured yet.
Package virtualbox-source is not installed.
Package virtualbox-modules is not installed.
Package virtualbox-dkms which provides virtualbox-modules is not configured yet.

dpkg: error processing package virtualbox (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of virtualbox-qt:
virtualbox-qt depends on virtualbox (= 6.1.14-dfsg-4); however:
Package virtualbox is not configured yet.

dpkg: error processing package virtualbox-qt (--configure):
dependency problems - leaving unconfigured
Processing triggers for menu (2.1.47+b1) ...
Processing triggers for kali-menu (2020.3.2) ...
Processing triggers for desktop-file-utils (0.26-1) ...
Processing triggers for mime-support (3.64) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.36.0-1) ...
Processing triggers for systemd (246.2-1) ...
Processing triggers for man-db (2.9.3-2) ...
Processing triggers for shared-mime-info (1.15-1) ...
Errors were encountered while processing:
virtualbox-dkms
virtualbox
virtualbox-qt
E: Sub-process /usr/bin/dpkg returned an error code (1)

cat /var/lib/dkms/virtualbox/6.1.14/build/make.log

DKMS make.log for virtualbox-6.1.14 for kernel 5.8.0-kali1-amd64 (x86_64)
Wed Sep 23 08:03:31 CEST 2020
make: Entering directory '/usr/src/linux-headers-5.8.0-kali1-amd64'

ERROR: Kernel configuration is invalid.
include/generated/autoconf.h or include/config/auto.conf are missing.
Run 'make oldconfig && make prepare' on kernel src to fix it.

make[1]: [/usr/src/linux-headers-5.8.0-kali1-common/Makefile:718: include/config/auto.conf] Errore 1
make:
[/usr/src/linux-headers-5.8.0-kali1-common/Makefile:185: __sub-make] Error 2
make: Leaving directory '/usr/src/linux-headers-5.8.0-kali1-amd64'

Additional Information

cat /etc/apt/sources.list

deb http://http.kali.org/kali kali-rolling main non-free contrib
deb-src http://http.kali.org/kali kali-rolling main non-free contrib

uname -v
0000001 SMP Debian 5.8.7-1kali1 (2020-09-14)

Activities

Michu

Michu

2020-09-23 08:55

reporter   ~0013478

did you tried this 'make oldconfig && make prepare' it's apt hint from your output
repositories looks good
do you have those packages installed
virtualbox-source
virtualbox-modules

Gian42

Gian42

2020-09-24 06:29

reporter   ~0013482

Yes, I have installed all the needed packages:

ii linux-headers-5.8.0-kali1-amd64 5.8.7-1kali1 amd64 Header files for Linux 5.8.0-kali1-amd64
ii linux-headers-5.8.0-kali1-common 5.8.7-1kali1 all Common header files for Linux 5.8.0-kali1
ii linux-image-5.8.0-kali1-amd64 5.8.7-1kali1 amd64 Linux 5.8 for 64-bit PCs
ii virtualbox 6.1.14-dfsg-4 amd64 x86 virtualization solution - base binaries
iF virtualbox-dkms 6.1.14-dfsg-4 amd64 x86 virtualization solution - kernel module sources for dkms
ii virtualbox-qt 6.1.14-dfsg-4 amd64 x86 virtualization solution - Qt based user interface
ii virtualbox-source 6.1.14-dfsg-4 amd64 x86 virtualization solution - kernel module source

If I try to run the commands above, another error occours:

/usr/src/linux-headers-5.8.0-kali1-amd64# make oldconfig && make prepare

sh: 0: Can't open /usr/src/linux-headers-5.8.0-kali1-common/scripts/mkmakefile
make[1]: [/usr/src/linux-headers-5.8.0-kali1-common/Makefile:552: outputmakefile] Error 127
make:
[/usr/src/linux-headers-5.8.0-kali1-common/Makefile:185: __sub-make] Error 2

Gian42

Gian42

2020-09-24 07:54

reporter   ~0013483

Same problem with virtualbox's original packages "stable", "testing" and "developement", downloaded from virtualbox.org.
I think that the real problem is the new kernel "5.8.0-kali1-amd64".

Gian42

Gian42

2020-09-24 08:10

reporter   ~0013484

SOLVED: my fault. I tried to run the make commands in the wrong place:

cd /usr/src/
xz -d linux-source-5.8.tar.xz && tar xf linux-source-5.8.tar
cd linux-source-5.8
make oldconfig && make prepare
...
cp include/generated/autoconf.h /usr/src/linux-headers-5.8.0-kali1-amd64/include/generated/

Now all works fine.
Thanks!

Michu

Michu

2020-09-28 16:33

reporter   ~0013511

don't be gratefull apt told you what to do i just told you that apt did that you have to read output because it's helpfull sometimes it gives solution to problem so don't be grateful i didn't do nothing but i'm happy that your problem is solved.

Issue History

Date Modified Username Field Change
2020-09-23 06:22 Gian42 New Issue
2020-09-23 08:55 Michu Note Added: 0013478
2020-09-24 06:29 Gian42 Note Added: 0013482
2020-09-24 07:54 Gian42 Note Added: 0013483
2020-09-24 08:10 Gian42 Note Added: 0013484
2020-09-28 16:33 Michu Note Added: 0013511
2020-11-04 07:36 sbrun Assigned To => sbrun
2020-11-04 07:36 sbrun Status new => resolved
2020-11-04 07:36 sbrun Resolution open => no change required
2020-12-01 10:48 g0tmi1k Priority high => normal