This bug was fixed in the package shim-signed - 1.34.5
---
shim-signed (1.34.5) bionic; urgency=medium
* Don't try to save new dkms list if we're still dealing with password
validation for enrollment. (LP: #1766312)
* Specify kernel version when installing/uninstalling modules
Thanks for the report. This is indeed a regression affecting only those
users who have the dkms package installed but not any dkms module
packages.
The previous incarnation of the code did:
dkms_list=$(find /var/lib/dkms -maxdepth 1 -type d -print 2>/dev/null \
| LC_ALL=C sort)
dk