Why does Virtualbox Fail to Install

Asked by tomdean

Has anytone seen this?
> lsb_release -a
LSB Version: core-11.1.0ubuntu4-noarch:security-11.1.0ubuntu4-noarch
Distributor ID: Ubuntu
Description: Ubuntu 22.04 LTS
Release: 22.04
Codename: jammy

> uname -a
Linux aorus 6.2.0-34-generic #34~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 7 13:12:03 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

> sudo apt install virtualbox
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
virtualbox is already the newest version (6.1.32-dfsg-1build1).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up virtualbox-dkms (6.1.32-dfsg-1build1) ...
Removing old virtualbox-6.1.32 DKMS files...
Deleting module virtualbox-6.1.32 completely from the DKMS tree.
Loading new virtualbox-6.1.32 DKMS files...
Building for 6.2.0-34-generic
Building initial module for 6.2.0-34-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/virtualbox-dkms.0.crash'
Error! Bad return status for module build on kernel: 6.2.0-34-generic (x86_64)
Consult /var/lib/dkms/virtualbox/6.1.32/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)

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu virtualbox Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

For diagnostic purposes, what is the output that you receive for the commands

sudo dpkg --audit
dpkg -l | grep -i virtualb
apt policy virtualbox
tail /var/lib/dkms/virtualbox/6.1.32/build/make.log

(Remark: There is a newer version 6.1.38-dfsg-3~ubuntu1.22.04.1 available in jammy-updates)

Revision history for this message
tomdean (tomdean) said :
#2

On 10/16/23 03:06, Manfred Hampl wrote:
> Your question #708194 on virtualbox in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/virtualbox/+question/708194
>
> Status: Open => Needs information
>
> Manfred Hampl requested more information:
> For diagnostic purposes, what is the output that you receive for the
> commands
>
> sudo dpkg --audit
> dpkg -l | grep -i virtualb
> apt policy virtualbox
> tail /var/lib/dkms/virtualbox/6.1.32/build/make.log
>
> (Remark: There is a newer version 6.1.38-dfsg-3~ubuntu1.22.04.1
> available in jammy-updates)
>

 > sudo dpkg --audit
The following packages are only half configured, probably due to problems
configuring them the first time. The configuration should be retried using
dpkg --configure <package> or the configure menu option in dselect:
  virtualbox-dkms x86 virtualization solution - kernel module
sources for d

aorus> dpkg -l | grep -i virtualb
ii virtualbox 6.1.32-dfsg-1build1
                 amd64 x86 virtualization solution - base binaries
iF virtualbox-dkms 6.1.32-dfsg-1build1
                 amd64 x86 virtualization solution - kernel
module sources for dkms
rc virtualbox-ext-pack
6.1.34-1~ubuntu1.20.04.1 all extra capabilities
for VirtualBox, downloader.
ii virtualbox-qt 6.1.32-dfsg-1build1
                 amd64 x86 virtualization solution - Qt based
user interface
ii virtualbox-source 6.1.32-dfsg-1build1
                 amd64 x86 virtualization solution - kernel
module source
aorus> apt policy virtualbox
virtualbox:
   Installed: 6.1.32-dfsg-1build1
   Candidate: 6.1.32-dfsg-1build1
   Version table:
  *** 6.1.32-dfsg-1build1 500
         500 http://us.archive.ubuntu.com/ubuntu jammy/multiverse amd64
Packages
         100 /var/lib/dpkg/status
aorus> tail /var/lib/dkms/virtualbox/6.1.32/build/make.log
/var/lib/dkms/virtualbox/6.1.32/build/vboxnetflt/linux/VBoxNetFlt-linux.c:
In function ‘vboxNetFltPortOsXmit’:
/var/lib/dkms/virtualbox/6.1.32/build/vboxnetflt/linux/VBoxNetFlt-linux.c:2314:23:
error: implicit declaration of function ‘netif_rx_ni’; did you mean
‘netif_rx’? [-Werror=implicit-function-declaration]
  2314 | err = netif_rx_ni(pBuf);
       | ^~~~~~~~~~~
       | netif_rx
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:260:
/var/lib/dkms/virtualbox/6.1.32/build/vboxnetflt/linux/VBoxNetFlt-linux.o]
Error 1
make[1]: *** [scripts/Makefile.build:512:
/var/lib/dkms/virtualbox/6.1.32/build/vboxnetflt] Error 2
make: *** [Makefile:2026: /var/lib/dkms/virtualbox/6.1.32/build] Error 2
make: Leaving directory '/usr/src/linux-headers-6.2.0-34-generic'

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

Apparently the kernel version 6.2.* and virtual package 6.1.32 are incompatible.

I suggest that you enable jammy-updates for multiverse in your package management configuration and try with virtualbox 6.1.38

Revision history for this message
tomdean (tomdean) said :
#4

On 10/17/23 00:02, Manfred Hampl wrote:
> Your question #708194 on virtualbox in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/virtualbox/+question/708194
>
> Status: Open => Answered
>
> Manfred Hampl proposed the following answer:
> Apparently the kernel version 6.2.* and virtual package 6.1.32 are
> incompatible.
>
> I suggest that you enable jammy-updates for multiverse in your package
> management configuration and try with virtualbox 6.1.38
>

That fixed it. Thanks.

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

If this problem has been resolved, then please set the status of this question document to "solved" and also close the related bug report (by setting its status to "invalid")

Can you help with this problem?

Provide an answer of your own, or ask tomdean for more information if necessary.

To post a message you must log in.