you need to install linix headers generic by:

sudo apt-get update
sudo apt-get install linux-generic

I see you already have downloaded the realtek wifi drivers make sure you are in the right directory and run this to install them:

cd rtlwifi_new
sudo dkms add ../rtlwifi_new
sudo dkms build rtlwifi-new/0.6 
sudo dkms install rtlwifi-new/0.6
sudo modprobe -v rtl8723de ant_sel=2

Congrats you have running wifi.

Save the config with this command:

sudo /bin/sh -c 'echo "options rtl8723de ant_sel=2" >> /etc/modprobe.d/rtl8723de.conf'

Restart.

Details here:

https://h30434.www3.hp.com/t5/Notebook-Wireless-and-Networking/Realtek-8723DE-wifi-module-amp-Bluetooth-Linux-driver/td-p/6477307

Answer from Wolfie on askubuntu.com
🌐
GitHub
github.com › ivandavidov › minimal › issues › 141
Linux kernel 4.14.12 requires "libelf-dev". · Issue #141 · ivandavidov/minimal
January 5, 2018 - The most recent stable kernel has new build dependency. Makefile:942: *** "Cannot generate ORC metadata for CONFIG_UNWINDER_ORC=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel". The issue has been discussed here. The ...
Author   ivandavidov
🌐
GitHub
github.com › dockcross › dockcross › issues › 383
linux-x86: please install libelf-dev, libelf-devel or elfutils-libelf-devel · Issue #383 · dockcross/dockcross
April 7, 2020 - Trying to build kernel 4.14.72: Makefile:955: "Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel"
Author   dockcross
🌐
Blogger
bdtyktl.blogspot.com › 2019 › 02 › how-to-install-libelf-devel-or-elfutils.html
How to install libelf-devel or elfutils-libelf-devel in ubuntu 18.04 hp laptop ay503tx
February 3, 2019 - rizwan@rizwan-HP:~$ sudo apt install libelf-dev libelf-devel elfutils-libelf-devel [sudo] password for rizwan: Reading package lists... Done Building dependency tree Reading state information...
🌐
Stack Exchange
unix.stackexchange.com › questions › 452029 › elfutils-libelf-devel-installed-but-not-detected-during-virtualbox-install
fedora - elfutils-libelf-devel installed but not detected during VirtualBox install - Unix & Linux Stack Exchange
June 26, 2018 - make V=1 CONFIG_MODULE_SIG= -C /lib/modules/4.16.16-200.fc27.x86_64/build SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -j8 modules make[1]: warning: -jN forced in submake: disabling jobserver mode. Makefile:978: *** "Cannot generate ORC metadata for CONFIG_UNWINDER_ORC=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel". Stop.
🌐
Launchpad
bugs.launchpad.net › starlingx › +bug › 1880248
Bug #1880248 “kmods fail to build due to missing elfutils-libelf...” : Bugs : StarlingX
ORC=y, please install libelf-dev, libelf-devel or elfutils- libelf- devel". Stop. make: *** [default] Error 2 RPM build errors: Test Activity ------------- Build · Workaround ---------- N/A · Tags: stx.4.0 stx.build · Revision history for this message · Reviewed: https:/ /review.
🌐
Fedora Discussion
discussion.fedoraproject.org › ask fedora
Cannot install elfutils-libelf-devel-static - Fedora Discussion
February 11, 2021 - Hi everyone! I need to install elfutils-libelf-devel-static because it provides a file I need for compiling a bpf program. The file is libelf.a. I see that this file is provided by elfutils-libelf-devel-static but running the following command: [VM] sudo dnf install elfutils-libelf-devel-static Last metadata expiration check: 0:30:35 ago on Thu 11 Feb 2021 02:20:34 PM UTC.
Find elsewhere
🌐
Debian
packages.debian.org › sid › libelf-dev
Debian -- Details of package libelf-dev in sid
This package contains development libraries and header files for libelf1.
🌐
Red Hat
access.redhat.com › solutions › 267063
How can we download specific version of "elfutils-libelf-devel" and "libaio-devel" needed for Oracle 11gR2 upgrade ? - Red Hat Customer Portal
We are currently running RHEL5.6 x64 and trying to upgrade Oracle 10gR2 -> 11gR2... Oracle support states that 11gR2 requires these exact rpm packages: >> 3.Packages Required: >> elfutils-libelf-devel-0.125 >> libaio-devel(x86_64)-0.3.106 The official RH repo seems to have slightly newer [minor] ...
🌐
GitHub
github.com › patjak › bcwc_pcie › issues › 149
Fedora dependency error in `make` · Issue #149 · patjak/facetimehd
January 26, 2018 - make[1]: Entering directory '/usr/src/kernels/4.14.14-300.fc27.x86_64' Makefile:946: *** "Cannot generate ORC metadata for CONFIG_UNWINDER_ORC=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel". Stop. Fixed by installin...
Author   patjak
🌐
Stack Overflow
stackoverflow.com › questions › 29889286 › oracle-installation-missing-dependency-elfutils-libelf-devel-and-elfutils-libe
Oracle installation: Missing Dependency: elfutils-libelf-devel and elfutils-libelf-devel-static - Stack Overflow
Missing Dependency: elfutils-libelf-devel-i386 = 0.137-3.el5 is needed by package elfutils-libelf-devel-static-0.137-3.el5.i386 (/elfutils-libelf-devel-static-0.137-3.el5.i386)
🌐
GitHub
github.com › netdata › netdata › issues › 10665
Libs libelf-dev, liblz4-dev, libuv1-dev and uuid-dev could not be installed · Issue #10665 · netdata/netdata
February 20, 2021 - Bug report summary Typed: $ sudo apt install libelf-dev -y Response: Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. T...
Author   netdata
🌐
Fedora
packages.fedoraproject.org › pkgs › elfutils › elfutils-libelf-devel › index.html
elfutils-libelf-devel - Fedora Packages
The elfutils-libelf-devel package contains the libraries to create applications for handling compiled objects.
🌐
Managed-protection
dl.managed-protection.com › u › baas › help › 20.10 › user › en-US › linux-packages.html
Linux packages – Cyber Protection
To add the necessary modules to the Linux kernel, the setup program needs the following Linux packages: · The names of these packages vary depending on your Linux distribution
🌐
Debian
packages.debian.org › stretch › libelf-dev
Debian -- Error
Developers' Corner · / Packages · two or more packages specified (libelf-dev stretch) See our contact page to get in touch. Content Copyright © 1997 - 2025 SPI Inc.; See license terms. Debian is a trademark of SPI Inc. Learn more about this site.