virtualbox-dkms from mantic is not compatible with kernel from lunar and fails when upgrading from lunar to mantic

Bug #2039283 reported by Thomas Debesse
This bug report is a duplicate of:  Bug #2017101: [SRU] Virtualbox 7.0.12 and 6.1.48. Edit Remove
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
virtualbox (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

When upgrading from lunar to mantic I got this error:

```
Setting up virtualbox-dkms (7.0.10-dfsg-3) ...
Removing old virtualbox-7.0.10 DKMS files...
Deleting module virtualbox-7.0.10 completely from the DKMS tree.
Loading new virtualbox-7.0.10 DKMS files...
Building for 6.2.0-33-generic 6.5.0-9-generic
Building initial module for 6.2.0-33-generic
ERROR (dkms apport): kernel package linux-headers-6.2.0-33-generic is not supported
Error! Bad return status for module build on kernel: 6.2.0-33-generic (x86_64)
Consult /var/lib/dkms/virtualbox/7.0.10/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 (>= 7.0.10-dfsg-3) | virtualbox-source (>= 7.0.10-dfsg-3) | 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
No apport report written because the error message indicates its a followup error from a previous failure.
 Errors were encountered while processing:
 v4l2loopback-dkms
 virtualbox-dkms
 virtualbox
E: Sub-process /usr/bin/dpkg returned an error code (1)
```

It looks like virtualbox-dkms from mantic is not compatible with lunar kernel, but since I'm upgrading from lunar to mantic I'm still running the lunar kernel.

ProblemType: Bug
DistroRelease: Ubuntu 23.10
Package: virtualbox-dkms (not installed)
ProcVersionSignature: Ubuntu 6.2.0-33.33-generic 6.2.16
Uname: Linux 6.2.0-33-generic x86_64
NonfreeKernelModules: vboxnetadp vboxnetflt vboxdrv amddrm_ttm_helper amdttm amdxcp amddrm_buddy amd_sched amdkcl
ApportVersion: 2.27.0-0ubuntu5
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: GNOME
Date: Fri Oct 13 16:01:23 2023
RebootRequiredPkgs: Error: path contained symlinks.
SourcePackage: virtualbox
UpgradeStatus: No upgrade log present (probably fresh install)
modified.conffile..etc.default.apport: [modified]
mtime.conffile..etc.default.apport: 2018-06-16T17:39:00.798346

Revision history for this message
Thomas Debesse (illwieckz) wrote :
Revision history for this message
Thomas Debesse (illwieckz) wrote :

I was able to finish the mantic installation by doing:

```
apt-get remove virtualbox virtualbox-dkms
apt-get --fix-broken install
```

I'll have to manually reinstall virtualbox and virtualbox-dkms after the reboot.

summary: virtualbox-dkms from mantic is not compatible with kernel from lunar and
- fails when upgrading when upgrading from lunar to mantic
+ fails when upgrading from lunar to mantic
Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

Having the log file would be helpful

Revision history for this message
Thomas Debesse (illwieckz) wrote :

Unfortunately, having needed to remove that package to finish the installation the log was deleted at some point.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in virtualbox (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.