[Pkg-dkms-maint] Bug#695824: dkms: Confirming on update to linux-image-3.16-2

Mathias Behrle mathiasb at m9s.biz
Mon Sep 29 09:54:45 UTC 2014


Package: dkms
Version: 2.2.0.3-1.2
Followup-For: Bug #695824

Dear Maintainer,

upgrading to linux-image-3.16-2 showed

...
Entpacken von linux-image-3.16-2-amd64 (3.16.3-2) über (3.16.3-2) ...
linux-image-3.16-2-amd64 (3.16.3-2) wird eingerichtet ...
/etc/kernel/postinst.d/dkms:
Error! Could not locate dkms.conf file.
File:  does not exist.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-3.16-2-amd64
/etc/kernel/postinst.d/zz-update-grub:
grub.cfg wird erstellt …
Linux-Abbild gefunden: /boot/vmlinuz-3.16-2-amd64
initrd-Abbild gefunden: /boot/initrd.img-3.16-2-amd64
Linux-Abbild gefunden: /boot/vmlinuz-3.14-2-amd64
initrd-Abbild gefunden: /boot/initrd.img-3.14-2-amd64
Linux-Abbild gefunden: /boot/vmlinuz-3.14-1-amd64
initrd-Abbild gefunden: /boot/initrd.img-3.14-1-amd64
erledigt
...

While nvidia and virtualbox modules weher built fine for 14.1 and 14.2,
this failed for 16.2.

Reinstalling dkms and the nvidia*dms and virtualbox*dkms packages solved
the problem.

Find attached below the output of bash -x dkms status, that shows, that
the dkms database referred to some old nvidia version (304.108 instead
of 340.32 being installed).

Cheers,
Mathias

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'stable'), (400, 'unstable'), (300, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.14-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to de_DE.UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages dkms depends on:
ii  build-essential    11.7
ii  coreutils          8.23-2
ii  dpkg-dev           1.17.13
ii  gcc                4:4.9.1-1
ii  make               4.0-8
ii  module-init-tools  18-2
ii  patch              2.7.1-6

Versions of packages dkms recommends:
ii  fakeroot             1.20.1-1.1
ii  linux-headers-amd64  3.16+61
pn  linux-image          <none>
ii  menu                 2.1.47
ii  sudo                 1.8.10p3-1

dkms suggests no packages.

-- Configuration Files:
/etc/modprobe.d/dkms.conf changed:


o- no debconf information

*** /home/mathiasb/dkms

t at obelix:/home/mathiasb# bash -x dkms status
+ shopt -s extglob
+ readonly 'dkms_conf_variables=CLEAN REMAKE_INITRD remake_initrd PACKAGE_NAME
       PACKAGE_VERSION POST_ADD POST_INSTALL POST_REMOVE PRE_BUILD
       PRE_INSTALL BUILD_EXCLUSIVE_KERNEL BUILD_EXCLUSIVE_ARCH
       build_exclude OBSOLETE_BY MAKE MAKE_MATCH MODULES_CONF
       modules_conf_array PATCH PATCH_MATCH patch_array BUILT_MODULE_NAME
       built_module_name BUILT_MODULE_LOCATION built_module_location
       DEST_MODULE_NAME dest_module_name MODULES_CONF_OBSOLETES
       DEST_MODULE_LOCATION dest_module_location
       modules_conf_obsoletes MODULES_CONF_ALIAS_TYPE
       modules_conf_alias_type STRIP strip MODULES_CONF_OBSOLETE_ONLY
       modules_conf_obsolete_only AUTOINSTALL'
+ dkms_conf_variables='CLEAN REMAKE_INITRD remake_initrd PACKAGE_NAME
       PACKAGE_VERSION POST_ADD POST_INSTALL POST_REMOVE PRE_BUILD
       PRE_INSTALL BUILD_EXCLUSIVE_KERNEL BUILD_EXCLUSIVE_ARCH
       build_exclude OBSOLETE_BY MAKE MAKE_MATCH MODULES_CONF
       modules_conf_array PATCH PATCH_MATCH patch_array BUILT_MODULE_NAME
       built_module_name BUILT_MODULE_LOCATION built_module_location
       DEST_MODULE_NAME dest_module_name MODULES_CONF_OBSOLETES
       DEST_MODULE_LOCATION dest_module_location
       modules_conf_obsoletes MODULES_CONF_ALIAS_TYPE
       modules_conf_alias_type STRIP strip MODULES_CONF_OBSOLETE_ONLY
       modules_conf_obsolete_only AUTOINSTALL'
+ readonly 'y_re=^(Y|y)'
+ y_re='^(Y|y)'
+ readonly 'mv_re=^([^/]*)/(.*)$'
+ mv_re='^([^/]*)/(.*)$'
+ readonly 'rh_kernels=(debug|summit|smp|enterprise|bigmem|hugemem|BOOT|vmnix)'
+ rh_kernels='(debug|summit|smp|enterprise|bigmem|hugemem|BOOT|vmnix)'
+ PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/lib/dkms
+ umask 022
+ unset CC CXX CFLAGS CXXFLAGS LDFLAGS
++ uname -r
+ current_kernel=3.14-1-amd64
++ uname -s
+ current_os=Linux
+ dkms_tree=/var/lib/dkms
+ source_tree=/usr/src
+ install_tree=/lib/modules
+ tmp_location=/tmp
+ verbose=
+ dkms_frameworkconf=/etc/dkms/framework.conf
+ [[ ! -n '' ]]
+ [[ -e /etc/sysconfig/module-init-tools ]]
+ addon_modules_dir=
+ [[ ! -n '' ]]
++ distro_version
++ local LSB_DESCRIPTION DISTRIB_ID DISTRIB_RELEASE ver
++ '[' -r /etc/lsb-release ']'
++ type lsb_release
+++ lsb_release -i -s
++ DISTRIB_ID=Debian
+++ lsb_release -r -s
++ DISTRIB_RELEASE=testing
++ case ${DISTRIB_ID} in
++ [[ -n Debian ]]
++ [[ -n testing ]]
++ echo Debiantesting
+ running_distribution=Debiantesting
+ weak_modules=
+ '[' -e /etc/dkms/framework.conf ']'
+ . /etc/dkms/framework.conf
+ module=
+ module_version=
+ template_kernel=
+ distro=
+ media=
+ release=
+ conf=
+ kernel_config=
+ archive_location=
+ kernel_source_dir=
+ ksourcedir_fromcli=
+ action=
+ force=
+ no_prepare_kernel=
+ no_clean_kernel=
+ binaries_only=
+ source_only=
+ all=
+ module_suffix=
+ rpm_safe_upgrade=
+ size=1440
+ specfile=
+ legacy_postinst=1
+ directive_array=()
+ kernelver=()
+ arch=()
+ declare -a directive_array kernelver arch
+ weak_modules=
+ last_mvka=
+ last_mvka_conf=
+ try_source_tree=
+ die_is_fatal=yes
+ '[' -x /sbin/weak-modules ']'
+ '[' -x /usr/lib/module-init-tools/weak-modules ']'
+ action_re='^(remove|(auto|un)?install|match|mk(driverdisk|tarball|rpm|deb|dsc|kmp)|build|add|status|ldtarball)$'
+ (( 1 > 0 ))
+ case $1 in
+ [[ status =~ ^(remove|(auto|un)?install|match|mk(driverdisk|tarball|rpm|deb|dsc|kmp)|build|add|status|ldtarball)$ ]]
+ action=' status'
+ shift
+ (( 0 > 0 ))
+ [[ -n '' ]]
+ ((  0 != 0 &&     0 > 1  ))
+ [[ -n '' ]]
+ [[ -n '' ]]
+ for action_to_run in '$action'
+ setup_kernels_arches status
+ [[ -n '' ]]
+ [[ status != status ]]
+ (( 0 == 1 && 0 > 1 ))
+ multi_arch=
+ local i=0
+ (( i=0 ))
+ (( 0 < 0 ))
+ case "$action_to_run" in
+ show_status
+ local j state_array
+ (( 0 == 0 ))
+ do_status '' '' '' ''
+ local status mvka m v k a
+ read status mvka
++ module_status '' '' '' ''
++ local 'oifs= 
' IFS= mv m v directory ret=1
++ for directory in '"$dkms_tree/"${1:-*}/${2:-*}'
++ IFS=' 
'
++ mv=nvidia/current-304.108
++ m=nvidia
++ v=current-304.108
++ is_module_added nvidia current-304.108
++ [[ -n nvidia ]]
++ [[ -n current-304.108 ]]
++ [[ -d /var/lib/dkms/nvidia/current-304.108 ]]
++ [[ -L /var/lib/dkms/nvidia/current-304.108/source ]]
++ ret=0
++ module_status_built nvidia current-304.108 '' ''
++ local ret=1 directory ka k a state 'oifs= 
' IFS=
++ for directory in '"$dkms_tree/$1/$2/"${3:-+([0-9]).*}/${4:-*}'
++ IFS=' 
'
++ ka=3.9-1-amd64/x86_64
++ k=3.9-1-amd64
++ a=x86_64
++ is_module_built nvidia current-304.108 3.9-1-amd64 x86_64
++ [[ -n nvidia ]]
++ [[ -n current-304.108 ]]
++ [[ -n 3.9-1-amd64 ]]
++ [[ -n x86_64 ]]+ ksourcedir_fromcli=
+ action=
+ force=
+ no_prepare_kernel=
+ no_clean_kernel=
+ binaries_only=
+ source_only=
+ all=
+ module_suffix=
+ rpm_safe_upgrade=
+ size=1440
+ specfile=
+ legacy_postinst=1
+ directive_array=()
+ kernelver=()
+ arch=()
+ declare -a directive_array kernelver arch
+ weak_modules=
+ last_mvka=
+ last_mvka_conf=
+ try_source_tree=
+ die_is_fatal=yes
+ '[' -x /sbin/weak-modules ']'
+ '[' -x /usr/lib/module-init-tools/weak-modules ']'
+ action_re='^(remove|(auto|un)?install|match|mk(driverdisk|tarball|rpm|deb|dsc|kmp)|build|add|status|ldtarball)$'
+ (( 1 > 0 ))
+ case $1 in
+ [[ status =~ ^(remove|(auto|un)?install|match|mk(driverdisk|tarball|rpm|deb|dsc|kmp)|build|add|status|ldtarball)$ ]]
+ action=' status'
+ shift
+ (( 0 > 0 ))
+ [[ -n '' ]]
+ ((  0 != 0 &&     0 > 1  ))
+ [[ -n '' ]]
+ [[ -n '' ]]
+ for action_to_run in '$action'
+ setup_kernels_arches status
+ [[ -n '' ]]
+ [[ status != status ]]
+ (( 0 == 1 && 0 > 1 ))
+ multi_arch=
+ local i=0
+ (( i=0 ))
+ (( 0 < 0 ))
+ case "$action_to_run" in
+ show_status
+ local j state_array
+ (( 0 == 0 ))
+ do_status '' '' '' ''
+ local status mvka m v k a
+ read status mvka
++ module_status '' '' '' ''
++ local 'oifs= 
' IFS= mv m v directory ret=1
++ for directory in '"$dkms_tree/"${1:-*}/${2:-*}'
++ IFS=' 
'
++ mv=nvidia/current-304.108
++ m=nvidia
++ v=current-304.108
++ is_module_added nvidia current-304.108
++ [[ -n nvidia ]]
++ [[ -n current-304.108 ]]
++ [[ -d /var/lib/dkms/nvidia/current-304.108 ]]
++ [[ -L /var/lib/dkms/nvidia/current-304.108/source ]]
++ ret=0
++ module_status_built nvidia current-304.108 '' ''
++ local ret=1 directory ka k a state 'oifs= 
' IFS=
++ for directory in '"$dkms_tree/$1/$2/"${3:-+([0-9]).*}/${4:-*}'
++ IFS=' 
'
++ ka=3.9-1-amd64/x86_64
++ k=3.9-1-amd64
++ a=x86_64
++ is_module_built nvidia current-304.108 3.9-1-amd64 x86_64
++ [[ -n nvidia ]]
++ [[ -n current-304.108 ]]
++ [[ -n 3.9-1-amd64 ]]
++ [[ -n x86_64 ]]
++ local d=/var/lib/dkms/nvidia/current-304.108/3.9-1-amd64/x86_64 m=
++ [[ -d /var/lib/dkms/nvidia/current-304.108/3.9-1-amd64/x86_64/module ]]
++ read_conf_or_die 3.9-1-amd64 x86_64 /var/lib/dkms/nvidia/current-304.108/source/dkms.conf
++ read_conf 3.9-1-amd64 x86_64 /var/lib/dkms/nvidia/current-304.108/source/dkms.conf
++ local return_value=0
++ local read_conf_file=/var/lib/dkms///source/dkms.conf
++ local kernelver=3.9-1-amd64
++ local arch=x86_64
++ set_kernel_source_dir 3.9-1-amd64
+++ _get_kernel_dir 3.9-1-amd64
+++ KVER=3.9-1-amd64
+++ case ${current_os} in
+++ DIR=/lib/modules/3.9-1-amd64/build
+++ echo /lib/modules/3.9-1-amd64/build
++ kernel_source_dir=/lib/modules/3.9-1-amd64/build
++ [[ -n '' ]]
++ [[ -n /var/lib/dkms/nvidia/current-304.108/source/dkms.conf ]]
++ read_conf_file=/var/lib/dkms/nvidia/current-304.108/source/dkms.conf
++ [[ -r /var/lib/dkms/nvidia/current-304.108/source/dkms.conf ]]
++ die 4 'Could not locate dkms.conf file.' 'File:  does not exist.'
++ ret=4
++ shift
++ error 'Could not locate dkms.conf file.' 'File:  does not exist.'
++ exec
++ echo -n 'Error! '
Error! ++ for s in '"$@"'
++ echo 'Could not locate dkms.conf file.'
Could not locate dkms.conf file.
++ for s in '"$@"'
++ echo 'File:  does not exist.'
File:  does not exist.
++ [[ yes = yes ]]
++ exit 4
+ do_status_weak '' '' '' ''
+ local mvka m v k a kern status
+ read status mvka
++ module_status_weak '' '' '' ''
++ [[ -n '' ]]
++ return 1



More information about the Pkg-dkms-maint mailing list