#1005928 dkms: removing: (5.15.0-2-amd64) (x86_64) → Error! Arguments <module> and <module-version> are not specified.

Package:
dkms
Source:
dkms
Submitter:
Axel Beckert
Date:
2022-05-30 07:57:07 UTC
Severity:
important
Tags:
#1005928#5
Date:
2022-02-17 12:20:22 UTC
From:
To:
Hi,

when purging linux-image-5.15.0-2-amd64 I got these unexpected error
messages and I'm not sure if this is an issue of src:linux' prerm script
or in dkms itself — note the two blanks after "dkms: removing:":

[…]
Removing linux-image-5.15.0-2-amd64 (5.15.5-2) ...
/etc/kernel/prerm.d/dkms:
dkms: removing:   (5.15.0-2-amd64) (x86_64)
Error! Arguments <module> and <module-version> are not specified.
Usage: remove <module>/<module-version> or
       remove -m <module>/<module-version> or
       remove -m <module> -v <module-version>
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-5.15.0-2-amd64
/etc/kernel/postrm.d/zz-update-grub:
[…]
Reading database ... 1878017 files and directories currently installed.)
Purging configuration files for linux-image-5.15.0-2-amd64 (5.15.5-2) ...
rmdir: failed to remove '/lib/modules/5.15.0-2-amd64': Directory not empty
dpkg: warning: while removing linux-image-5.15.0-2-amd64, directory '/lib/modules/5.15.0-2-amd64' not empty so not removed
Processing triggers for initramfs-tools (0.140) ...
[…]

Not sure about the severity either. It probably means that it leaves
files after removal, so it could be RC, but then again it seems to have
no real impact and is "presumably trivial to fix", so it could be
"minor" as well. Leaving it at the default. Feel free to adjust as you
like. :-)

#1005928#14
Date:
2022-02-17 12:43:23 UTC
From:
To:
HI Axel,

Thanks for reporting!

I believe this should be on the dkms side, and would be the same
as #996104. There is a pull request upstream apprently which got
merged upstream.

Regards,
Salvatore

#1005928#27
Date:
2022-03-13 09:07:30 UTC
From:
To:
Still present for me.

error messages are

Removing linux-image-5.16.0-1-amd64 (5.16.7-2) ...
/etc/kernel/prerm.d/dkms:
dkms: removing:   (5.16.0-1-amd64) (x86_64)
Error! Arguments <module> and <module-version> are not specified.
Usage: remove <module>/<module-version> or
       remove -m <module>/<module-version> or
       remove -m <module> -v <module-version>

so error seems to be in /etc/kernel/prerm.d/dkms

#1005928#44
Date:
2022-05-30 01:06:52 UTC
From:
To:
fyi: I'm force merging duplicate reports to #996104. The bug was fixed
upstream in 2.8.8, but Debian upgraded to 3.0.3 in the meantime
(bullseye never had this bug, because it only has version 2.8.4).

I assume folks tracking testing are going to have to manually downgrade
to 2.8.4, or upgrade to 3.0.3, because I think it's unlikely that there
will be a 2.8.8 release just for testing.

#1005928#55
Date:
2022-05-30 07:52:19 UTC
From:
To:
Bug 1006431 may have been fixed at the same time as bug 996104,
but this was not the same bug: bug 996104 was typos in the
/etc/kernel/prerm.d/dkms script, so that the

  dkms remove -m $name -v $vers -k $inst_kern -a $arch

command failed due to incorrect arguments. So what I did was to
run the correct command manually. This had the effect to remove
the installed module, but was still leaving some files there.

Or perhaps this command is expected to be run while the kernel
is still installed (it is normally run as a prerm.d script,
while I ran it after the kernel was removed).