[Pkg-dkms-maint] Bug#666023: dkms: /usr/lib/dkms/common.postinst fails if /lib/modules does not exist

Andreas Beckmann debian at abeckmann.de
Tue Mar 27 21:32:41 UTC 2012


Package: dkms
Version: 2.2.0.3-1
Severity: important

I noticed a dkms failure during a piuparts test add added set -x to the
(generated by dh_dkms) postinst script to get the following log:

# dpkg --configure --pending
Setting up nvidia-kernel-dkms (295.20-1) ...
+ DKMS_NAME=nvidia
+ DKMS_PACKAGE_NAME=nvidia-dkms
+ DKMS_VERSION=295.20
+ postinst_found=0
+ [ -f /usr/lib/dkms/common.postinst ]
+ /usr/lib/dkms/common.postinst nvidia 295.20 /usr/share/nvidia-dkms
ls: cannot access /lib/modules/: No such file or directory
dpkg: error processing nvidia-kernel-dkms (--configure):
 subprocess installed post-installation script returned error exit status 2

Also the -f test should probably be a -x test.


Andreas





More information about the Pkg-dkms-maint mailing list