FS#32266 - [virtualbox] dkms stuff do not get removed on upgrade

Attached to Project: Community Packages
Opened by Peter Wu (Lekensteyn) - Sunday, 28 October 2012, 12:06 GMT
Last edited by Eric Belanger (Snowman) - Saturday, 17 November 2012, 12:19 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sébastien Luttringer (seblu)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

On upgrading virtualbox, old DKMS modules are not removed. When trying to remove these manually, an error occurs:

# dkms remove -m vboxhost -v 4.2.2 --all
Error! Could not locate dkms.conf file.
File: does not exist.

This was from an upgrade from 4.2.2-1 to 4.2.4-1. A workaround is to create /usr/src/vboxhost-4.2.2 and copy dkms.conf from the new 4.2.4 before running that command. After doing so, the directory and dkms.conf can be removed again.

Attached is a fix from https://wiki.archlinux.org/index.php/DKMS#How_to_create_.install_.2F_dkms.conf_files.3F
Closed by  Eric Belanger (Snowman)
Saturday, 17 November 2012, 12:19 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed with pacman 4.0.3-4 in [testing]
Comment by Sébastien Luttringer (seblu) - Sunday, 28 October 2012, 20:37 GMT
This issue is linked to pacman bug which doesn't give old version to upgrade script and doesn't allow dkms to remove old driver on upgrade...

Loading...