Control: tag -1 - moreinfo + upstream Control: retitle -1 dkms: throws up after digesting an empty "$arch" Control: forwarded -1 https://github.com/dell/dkms/pull/334
to reproduce in a sid chroot: # ln -s /bin/true /usr/bin/rpm # apt-get install dkms linux-headers-amd64 ... # apt-get install dkms-test-dkms ... # apt-get install --reinstall dkms-test-dkms Reading package lists... Done Building dependency tree... Done Reading state information... Done 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 8 not upgraded. Need to get 0 B/9484 B of archives. After this operation, 0 B of additional disk space will be used. debconf: unable to initialize frontend: Dialog debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 78, <> line 1.) debconf: falling back to frontend: Readline (Reading database ... 31482 files and directories currently installed.) Preparing to unpack .../dkms-test-dkms_3.0.11-1_all.deb ... Unpacking dkms-test-dkms (3.0.11-1) over (3.0.11-1) ... Setting up dkms-test-dkms (3.0.11-1) ... debconf: unable to initialize frontend: Dialog debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 78.) debconf: falling back to frontend: Readline Removing old dkms_test-1.0 DKMS files... Loading new dkms_test-1.0 DKMS files... Error! DKMS tree already contains: dkms_test-1.0 You cannot add the same module/version combo more than once. dpkg: error processing package dkms-test-dkms (--configure): installed dkms-test-dkms package post-installation script subprocess returned error exit status 3 Errors were encountered while processing: dkms-test-dkms E: Sub-process /usr/bin/dpkg returned an error code (1) # apt-get install --reinstall dkms-test-dkms Reading package lists... Done Building dependency tree... Done Reading state information... Done 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 8 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. E: Internal Error, No file name for dkms-test-dkms:amd64 # apt-get remove dkms-test-dkms Reading package lists... Done Building dependency tree... Done Reading state information... Done The following packages will be REMOVED: dkms-test-dkms 0 upgraded, 0 newly installed, 1 to remove and 8 not upgraded. 1 not fully installed or removed. After this operation, 22.5 kB disk space will be freed. Do you want to continue? [Y/n] (Reading database ... 31650 files and directories currently installed.) Removing dkms-test-dkms (3.0.11-1) ... # apt-get install dkms-test-dkms Reading package lists... Done Building dependency tree... Done Reading state information... Done The following NEW packages will be installed: dkms-test-dkms 0 upgraded, 1 newly installed, 0 to remove and 8 not upgraded. Need to get 0 B/9484 B of archives. After this operation, 22.5 kB of additional disk space will be used. Selecting previously unselected package dkms-test-dkms. (Reading database ... 31643 files and directories currently installed.) Preparing to unpack .../dkms-test-dkms_3.0.11-1_all.deb ... Unpacking dkms-test-dkms (3.0.11-1) ... Setting up dkms-test-dkms (3.0.11-1) ... Removing old dkms_test-1.0 DKMS files... Loading new dkms_test-1.0 DKMS files... Error! DKMS tree already contains: dkms_test-1.0 You cannot add the same module/version combo more than once. dpkg: error processing package dkms-test-dkms (--configure): installed dkms-test-dkms package post-installation script subprocess returned error exit status 3 Errors were encountered while processing: dkms-test-dkms E: Sub-process /usr/bin/dpkg returned an error code (1) In the end I had to clean up with rm -rf /var/lib/dkms/dkms_test to get back to a sane state Andreas