How to switch to Insecure Boot on Ubuntu

QUOTE

If you are facing this error modprobe: ERROR: could not insert ‘rtl8723de’: Operation not permitted

The solution is to disabled the Secure Boot. Firstly check if SecureBoot is enabled on Ubuntu.

Install mokutil “sudo apt-get install mokutil”

and check the status of SecureBoot “mokutil –sb-state”

In case it is enabled run command “sudo mokutil –disable-validation”

Now enter a temporary password between 8 to 16 digits. We will use this password later. Enter the same password again to confirm. Once it’s done reboot the system and press any key when you see the blue screen (MOK management). Select Change Secure Boot state. Enter the password you had selected before and press Enter. Select Yes to disable

END QUOTE

Error messages when trying to install the driver on Ubuntu with Secure Boot

roland@roland-XPS-13-9310:~/Downloads/r8152-2.13.0$ sudo make all
[sudo] password for roland: 
make -C /lib/modules/5.6.0-1042-oem/build M=/home/roland/Downloads/r8152-2.13.0 clean
make[1]: Entering directory '/usr/src/linux-headers-5.6.0-1042-oem'
  CLEAN   /home/roland/Downloads/r8152-2.13.0/Module.symvers
make[1]: Leaving directory '/usr/src/linux-headers-5.6.0-1042-oem'
make -C /lib/modules/5.6.0-1042-oem/build M=/home/roland/Downloads/r8152-2.13.0 modules
make[1]: Entering directory '/usr/src/linux-headers-5.6.0-1042-oem'
  CC [M]  /home/roland/Downloads/r8152-2.13.0/r8152.o
  MODPOST 1 modules
  CC [M]  /home/roland/Downloads/r8152-2.13.0/r8152.mod.o
  LD [M]  /home/roland/Downloads/r8152-2.13.0/r8152.ko
make[1]: Leaving directory '/usr/src/linux-headers-5.6.0-1042-oem'
make -C /lib/modules/5.6.0-1042-oem/build M=/home/roland/Downloads/r8152-2.13.0 INSTALL_MOD_DIR=kernel/drivers/net/usb modules_install
make[1]: Entering directory '/usr/src/linux-headers-5.6.0-1042-oem'
  INSTALL /home/roland/Downloads/r8152-2.13.0/r8152.ko
At main.c:160:
- SSL error:02001002:system library:fopen:No such file or directory: ../crypto/bio/bss_file.c:69
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: ../crypto/bio/bss_file.c:76
sign-file: certs/signing_key.pem: No such file or directory
  DEPMOD  5.6.0-1042-oem
Warning: modules_install: missing 'System.map' file. Skipping depmod.
make[1]: Leaving directory '/usr/src/linux-headers-5.6.0-1042-oem'
modprobe r8152
modprobe: ERROR: could not insert 'r8152': Operation not permitted
make: *** [Makefile:42: install] Error 1
roland@roland-XPS-13-9310:~/Downloads/r8152-2.13.0$

Leave a comment on github