I did this:

$ uname -r
$ git clone https://github.com/jeremyb31/rtl8723de.git Cloning into 'rtl8723de'... remote: Counting objects: 536, done. remote: Total 536 (delta 0), reused 0 (delta 0), pack-reused 536 Receiving objects: 100% (536/536), 2.41 MiB | 356.00 KiB/s, done. Resolving deltas: 100% (195/195), done. Checking connectivity... done.
$ sudo dkms add ./rtl8723de Creating symlink /var/lib/dkms/rtl8723de/ -> /usr/src/rtl8723de- DKMS: add completed.
$ sudo dkms install rtl8723de/ Kernel preparation unnecessary for this kernel. Skipping... Building module: cleaning build area.... 'make' all KVER=4.15.0-041500-generic....(bad exit status: 2) ERROR (dkms apport): binary package for rtl8723de: not found Error! Bad return status for module build on kernel: 4.15.0-041500-generic (x86_64) Consult /var/lib/dkms/rtl8723de/ for more information.
I suspect is because the kernel 4.15 but i wanted to see what you think it is, im struggling with this the whole day
$ cat make.log 
DKMS make.log for rtl8723de- for kernel 4.15.0-041500-generic (x86_64)
mar ini 30 14:47:00 PET 2018
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.15.0-041500-generic/build M=/var/lib/dkms/rtl8723de/  modules
make[1]: Entering directory '/usr/src/linux-headers-4.15.0-041500-generic'
  CC [M]  /var/lib/dkms/rtl8723de/
In file included from /var/lib/dkms/rtl8723de/,
                 from /var/lib/dkms/rtl8723de/,
                 from /var/lib/dkms/rtl8723de/
/var/lib/dkms/rtl8723de/ In function ‘_init_timer’:
/var/lib/dkms/rtl8723de/ error: ‘_timer {aka struct timer_list}’ has no member named ‘data’
  ptimer->data = (unsigned long)cntx;
/var/lib/dkms/rtl8723de/ error: implicit declaration of function ‘init_timer’ [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
scripts/Makefile.build:316: recipe for target '/var/lib/dkms/rtl8723de/' failed
make[2]: * [/var/lib/dkms/rtl8723de/] Error 1
Makefile:1514: recipe for target 'module/var/lib/dkms/rtl8723de/' failed
make[1]: * [module/var/lib/dkms/rtl8723de/] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-041500-generic'
Makefile:1884: recipe for target 'modules' failed
make: *** [modules] Error 2

  • 2
    @Jeremy31 will be better able to help you if you run: cat /var/lib/dkms/rtl8723de/ Next paste the result here and give us the link: paste.ubuntu.com
    – chili555
    Jan 31, 2018 at 0:18

2 Answers 2


For anyone finding this page via Google, it is not necessary to downgrade the kernel, use the official drivers instead. See this thread at the HP forum and the instructions at the GitHub repo.

git clone https://github.com/lwfinger/rtlwifi_new.git
cd rtlwifi_new
sudo make install


That's how I got this error fixed on my HP 14-bp071nd with rtl8723de and kernel 4.15.


I already solved the problem, the conclusion is that it doesn't work on kernel 4.15 so i downgraded to 4.14, the result was:

$ sudo dkms install rtl8723de/
Kernel preparation unnecessary for this kernel. Skipping... Building module: cleaning build area.... 'make' all KVER=4.14.0-041400-generic.................. cleaning build area....
DKMS: build completed.
rtl8723de.ko: Running module version sanity check.
Good news! Module version v5.1.1.8_21285.20171026 for rtl8723de.ko exactly matches what is already found in kernel 4.14.0-041400-generic. DKMS will not replace this module. You may override by specifying --force.
DKMS: install completed.

Not the answer you're looking for? Browse other questions tagged or ask your own question.