I wanted to install anbox, which requires the anbox-modules-dkms package.

During this package installation a prompt appears on the terminal with a message saying it will guide you through the secure boot configuration, and there is only one option to choose: "OK". At this point I realized I really don't want to be messing with my boot/kernel right now, so I decided to abort, but the only way to quit the prompt is killing the apt process (next step after clicking "OK" is creating a password). If I do so, next time I need to use apt-get I will have to fix it first using dpkg --configure -a, the problem is this resumes anbox-modules-dkms installation and the prompt appears again.

How do I stop the module configuration, remove it entirely, and repair my system state (I don't want dpkg --configure -a to bring it up again)

  • If you don't want to configure, disable it - Secure Boot - instead. – user880592 Apr 24 '19 at 9:46
  • @GabrielaGarcia nonono - I have a secure computer that does not have a complete backup system. I want to install other items now, but don't want this module. – Stephen Apr 24 '19 at 9:50
  • Secure Boot is a UEFI feature, independent of the OS. It does prevent booting unsigned kernels, drivers, etc. If you want to keep it enabled then you must manually sign whatever modules you want to install. This and what I mentioned in the first comment are your only options. Your choice. – user880592 Apr 24 '19 at 9:55
  • I don't want to install this module. How do I stop the process and restore my system? – Stephen Apr 24 '19 at 9:57
  • Stop what exactly? Please edit because the question isconfusing] – user880592 Apr 24 '19 at 10:00

I am handling this issue (in Ubuntu 16.04) by commenting out relevant parts in /var/lib/dpkg/info/shim-signed.postinst and /usr/sbin/dkms but looking for a more permanent way.

My system has secure boot enabled, I have own key, sign updated modules before rebooting. Yet the dpkg part keeps insisting that a new MOK needs to be enrolled in the firmware. For both Virtualbox as well as for Nvidia drivers.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.