Issues with apt-get and dpkg related to Secure Boot
I've recently been having trouble with Ubuntu. Whenever I try to sudo apt get
something (in this case python 3), I get the error message: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem
So I enter the command and after a long process I get this message:
Configuring Secure Boot ├────────────────────────┐
│ │
│ Your system has UEFI Secure Boot enabled.
│
│ UEFI Secure Boot requires additional configuration to work with
│ third-party drivers.
│
│ The system will assist you in configuring UEFI Secure Boot. To permit
│ the use of third-party drivers, a new Machine-Owner Key (MOK) has been
│ generated. This key now needs to be enrolled in your system's firmware.
│
│ To ensure that this change is being made by you as an authorized user,
│ and not by an attacker, you must choose a password now and then confirm
│ the change after reboot using the same password, in both the "Enroll
│ MOK" and "Change Secure Boot state" menus that will be presented to you
│ when this system reboots.
If you proceed but do not confirm the password upon reboot, Ubuntu will
│ still be able to boot on your system but any hardware that requires
│ third-party drivers to work correctly may not be usable.
│
│ <Ok>
I am honestly stumped concerning overcoming this. I need help as to what I can do.
Select OK
. Then, you will be prompted to set a password. Set a simple password, then the command will complete. Simply type sudo reboot
, which will reboot your laptop. In the process of rebooting, you will see a blue screen with an option that reads Enroll MOK
. Click enter on it and type the password that you set. Do the same for the option Change Secure Boot state
. Then, continue. Your computer will reboot as normal. This is a normal procedure to prevent malware and not a bug.