Hi Everyone,
I am working on developing a kernel module. SO To compile, I need to install the headers for the exact version of my kernel build(4.14.78). I checked /lib/modules/ and there is a file named 4.14.78 in it. However, the build file in it is empty (broken symbolic link). Then I tried to install Linux-header that is the same version as my kernel build version. But I got some errors like below. I haven't found any solutions yet. Do you have any solutions or ideas?
root@maaxboard:/lib/modules/4.14.78# apt-get install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-4.14.78
E: Couldn't find any package by glob 'linux-headers-4.14.78'
E: Couldn't find any package by regex 'linux-headers-4.14.78'
root@maaxboard:/lib/modules/4.14.78#
root@maaxboard:/lib/modules/4.14.78# ls -l
total 356
lrwxrwxrwx 1 user user 26 Jan 14 2020 build -> /home/embest/compile/linux
drwxrwxr-x 9 user user 4096 Jan 14 2020 kernel
-rw-r--r-- 1 user user 63521 Jan 14 2020 modules.alias
-rw-r--r-- 1 user user 68154 Jan 14 2020 modules.alias.bin
-rw-rw-r-- 1 user user 31857 Jan 14 2020 modules.builtin
-rw-r--r-- 1 user user 34659 Jan 14 2020 modules.builtin.bin
-rw-r--r-- 1 user user 22212 Jan 14 2020 modules.dep
-rw-r--r-- 1 user user 35969 Jan 14 2020 modules.dep.bin
-rw-r--r-- 1 user user 98 Jan 14 2020 modules.devname
-rw-rw-r-- 1 user user 12832 Jan 14 2020 modules.order
-rw-r--r-- 1 user user 85 Jan 14 2020 modules.softdep
-rw-r--r-- 1 user user 29705 Jan 14 2020 modules.symbols
-rw-r--r-- 1 user user 36180 Jan 14 2020 modules.symbols.bin
lrwxrwxrwx 1 user user 26 Jan 14 2020 source -> /home/embest/compile/linux
root@maaxboard:/lib/modules/4.14.78# cd /home/embest/compile/linux
-bash: cd: /home/embest/compile/linux: No such file or directory
root@maaxboard:/lib/modules/4.14.78# cd /home/embest/compile/
-bash: cd: /home/embest/compile/: No such file or directory
root@maaxboard:/lib/modules/4.14.78# cd /home/embest
-bash: cd: /home/embest: No such file or directory
root@maaxboard:/lib/modules/4.14.78# cd /home/embest