I believe that is the case but I am not sure what the correct change is without deeper investigation.
It does look like a packaging issue to me though after a quick peek between doing other things.
It seems that clearly, /../trash/postinst.d/dkms is wrong.