If the bcmwl-kernel-source solution did not work for you and you want to keep secure boot enabled, then try the following:
Create a set of keys for signing:
openssl req -new -x509 -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -nodes -days 36500 -subj "/CN=Descriptive common name/"
Import the key. You'll be prompted for a password here, which you'll need to remember. Your BIOS should prompt you for the password after the reboot.
sudo mokutil --import MOK.der
Restart:
reboot
You should have been prompted by your BIOS for the password. Assuming that worked, then you'll want to test that your MOK was successfully enrolled.
mokutil --test-key MOK.der
Now that your MOK has been enrolled. You will need to install the drivers for you wifi.
git clone https://github.com/lwfinger/rtlwifi_new.git cd rtlwifi_new git checkout extended sudo make install
Your drivers are available for adding to your kernel, but you need to sign them first before adding them because you have secure boot enabled. So use the keys you generated earlier to sign your drivers.
sudo /usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n rtlwifi) sudo /usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n rtl_pci) sudo /usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n btcoexist) sudo /usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n rtl8723-common) sudo /usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n phydm_mod) sudo /usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n rtl8723de)
Finally, add the rtl8723de drivers to the kernel in this order
sudo modprobe -r rtlwifi sudo modprobe rtlwifi sudo modprobe -r rtl_pci sudo modprobe rtl_pci sudo modprobe -r btcoexist sudo modprobe btcoexist sudo modprobe -r rtl8723-common sudo modprobe rtl8723-common sudo modprobe -r phydm_mod sudo modprobe phydm_mod sudo modprobe -r rtl8723de sudo modprobe rtl8723de
On a side note: for the final step you might be able to get away with just writing:
sudo modprobe -r rtl8723de sudo modprobe rtl8723de
modprobe knows which drivers rtl8723de depends on and should therefore be able to add everything that rtl8723de depends on along with rtl8723de. However, I didn't add my drivers this way and thus, can't guarantee this option will work.
Sources: 1, 2, 3
lspciorlsusbthat defines the network adapter? (Both of these need to be added to your question.)lspci -knn | grep Net -A3