For some unknown reason, dkms removal did not work for me. However, deleting the directory /var/lib/dkms/intel-platform-vsec-dkms did the job for me. Although I'm not certain whether this has any negative effects, this method worked for me.
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2033421 Title: package linux-headers-6.2.0-31-generic 6.2.0-31.31~22.04.1 failed to install/upgrade: installed linux-headers-6.2.0-31-generic package post-installation script subprocess returned error exit status 1 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux-hwe-6.2/+bug/2033421/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs