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 › msys2 › MSYS2-packages › issues › 3913
libelf / libelf-devel not found via pacman -S · Issue #3913 · msys2/MSYS2-packages
July 18, 2023 - pacman -S libelf and pacman -S libelf-devel will find and install the relevant packages.
Author   msys2
🌐
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 - The following information may help to resolve the situation: The following packages have unmet dependencies: libelf-dev : Depends: libelf1 (= 0.170-0.4ubuntu0.1) but 0.176-1.1build1 is to be installed E: Unable to correct problems, you have held broken packages.
Author   netdata
🌐
Blogger
dtyjlui.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 28, 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... Done E: Unable to locate package libelf-devel E: Unable to locate package elfutils-libelf-devel rizwan@rizwan-HP:~$
🌐
Zoomadmin
zoomadmin.com › HowToInstall › UbuntuPackage › libelf-dev
How to install libelf-dev ubuntu package on Ubuntu 20.04/Ubuntu 18.04/Ubuntu 19.04/Ubuntu 16.04
libelf1 development libraries and ... library which allows reading and writing of ELF files on a high level. ... Run update command to update package repositories and get latest package information....
🌐
GitHub
github.com › buserror › simavr › issues › 170
Make error about fatal error: libelf.h: No such file or directory · Issue #170 · buserror/simavr
September 7, 2016 - Hi all, My system is fedora 22, the libelf-dev package seems not be install with command: sudo dnf install libelf-dev, the error is list as bellow: Last metadata expiration check performed 1:33:15 ago on Wed Sep 7 22:19:25 2016. No packa...
Author   buserror
Find elsewhere
🌐
Laineetcie
laineetcie.ca › post › libelf-h-no-such-file-or-directory
libelf.h no such file or directory
October 1, 2024 - Missing Development Package: The most common cause is that the development package for libelf is not installed on your system. Incorrect Include Paths: The compiler might not be configured to look in the correct directories where the libelf.h ...
🌐
UbuntuUpdates
ubuntuupdates.org › package › core › xenial › main › updates › libelf-dev
UbuntuUpdates - Package "libelf-dev" (xenial 16.04)
June 5, 2018 - libelf1 development libraries and header files · elfutils (0.165-3ubuntu1.2) xenial-security; urgency=medium
🌐
GitLab
gitlab.com › postmarketos › pmbootstrap › #1775
RuntimeError: Package 'libelf-dev': Could not find aport, and could not find this package in any APKINDEX! (#1775) · Issues · postmarketOS / pmbootstrap · GitLab
May 8, 2019 - I've been compiling custom kernels all day but just now I've stumbled upon the error message in the title. I've tried everything I know in order to try...
🌐
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 - edit : I noticed it may be interesting to make sure elfutils-libelf-devel comes from the right repository, so output of dnf info elfutils-libelf-devel is : Last metadata expiration check: 0:04:41 ago on Wed 04 Jul 2018 05:50:14 PM CEST. Installed Packages Name : elfutils-libelf-devel Version : 0.170 Release : 10.fc27 Arch : i686 Size : 32 k Source : elfutils-0.170-10.fc27.src.rpm Repo : @System From repo : updates Summary : Development support for libelf URL : http://elfutils.org/ License : GPLv2+ or LGPLv3+ Description : The elfutils-libelf-devel package contains the : libraries to create applications for handling : compiled objects.
🌐
DevManuals
devmanuals.net › install › ubuntu › ubuntu-12-04-lts-precise-pangolin › install-libelf-dev.html
Install libelf-dev on Ubuntu: sudo apt-get install libelf-dev
After downloading the latest package list with the help of above you can run the installation process. If libelf-dev is not installed on your compter then the command 'dpkg -L libelf-dev' will give followin error.
🌐
GitHub
github.com › ivandavidov › minimal › issues › 141
Linux kernel 4.14.12 requires "libelf-dev". · Issue #141 · ivandavidov/minimal
January 5, 2018 - For now the only long-term option I see is to add 'libelf-dev' as mandatory prerequisite. This means that all places where the phrase apt install is mentioned should be updated and the new dependency should be described there.
Author   ivandavidov
🌐
DevManuals
devmanuals.net › install › ubuntu › ubuntu-20-04-focal-fossa › installing-libelf-dev-on-ubuntu20-04.html
How to install libelf-dev on Ubuntu 20.04 (Focal Fossa)?
After downloading the latest package list with the help of above you can run the installation process. If libelf-dev Architecture: amd64 Version: 0.176-1.1build1 Multi-Arch: same is not installed on your compter then the command 'dpkg -L libelf-dev Architecture: amd64 Version: 0.176-1.1build1 ...
🌐
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.
🌐
GitHub
github.com › NVIDIA › gpu-operator › issues › 338
Failing to install NVIDIA GPU operator 1.7.1- Unable to find a match: elfutils-libelf-devel.x86_64 · Issue #338 · NVIDIA/gpu-operator
April 19, 2022 - # nvidia-driver init ... + dnf install -q -y elfutils-libelf.x86_64 elfutils-libelf-devel.x86_64 Error: Unable to find a match: elfutils-libelf-devel.x86_64
Author   NVIDIA