"update-secureboot-policy --enroll-key" running on every new startup eating resources

I had same problem and I found a solution, actually it was quite easy.

The problem was that a script was waiting on me to confirm for adding an UEFI entry on my computer but the terminal was not showing up and consuming all ressources (active waiting ?)

Brief

My solution was to run manually the command line, restart the computer and enroll the MOK key.

Complete explication

  1. Get the actual command copy-pastable

    ps aux | grep -e "update-secureboot-policy"

  2. Stop the current process

    sudo kill <pid>

  3. Run manually the command and follow UEFI instructions

    sudo /usr/bin/perl -w /usr/share/debconf/frontend /usr/sbin/update-secureboot-policy --enroll-key

  4. Reboot the computer and in the bios go to "MOK key" management

  5. Enroll the key (see image below)

  6. Finish

enter image description here