When I install the Ubuntu 19.10 I cannot turn on secure boot when I boot from the USB key which contains the installation medium (because I used grub2 to chain-load the Ubuntu live cd).

After than I cannot load nvidia drivers when the secure boot is turned on in BIOS. This seems to be because the secure boot is off the installer did not go through all the mok generation steps described in How can I install Nvidia drivers on Ubuntu 18.04 with secure boot?. Normally if there is a mok key enrolled, when installing the nvidia drivers it will prompt to give some passwords and next boot will be in mok manager.

I wonder what the steps are now to do shim sign and enable secure boot again with the nvidia drivers.

  • 5
    Possible duplicate of install Nvidia drivers ubuntu 18.04 with secure boot – dobey Nov 20 '19 at 1:20
  • That one is exactly opposite. He installed the Ubuntu with secure boot turned on. As I described I knew how to do it since it is the normal we. I installed with secure boot turned off. Now I want to enable it after the system installed. – Wang Nov 20 '19 at 6:24
  • If secure boot is enabled in the BIOS, and you remove the NVidia drivers, and then boot and check bootctl status in the console, does it not say secure boot is enabled? If so, then you would be at the same point as the other question. If not, have you installed any other additional kernel modules that are unsigned? If not to that, then you likely have a deeper issue to deal with. – dobey Nov 20 '19 at 14:28
  • Do not know for sure, but I think you have to first create your key. Then when you re-enable nVidia, it will ask for key. Also see at bottom manual mode: wiki.ubuntu.com/UEFI/SecureBoot/DKMS – oldfred Nov 20 '19 at 14:38

Your Answer

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

Browse other questions tagged or ask your own question.