wollik Posted May 11, 2020 Share Posted May 11, 2020 Hi forum members, when I try to install the kernel headers via: "sudo apt-get install kernel-headers-$(uname -r)" I gote these errors: Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package kernel-headers-4.19.62-sunxi E: Couldn't find any package by glob 'kernel-headers-4.19.62-sunxi' E: Couldn't find any package by regex 'kernel-headers-4.19.62-sunxi' In the /etc/apt/sources.list the lines with the deb-src links are comments. I've tried to uncomment these but got the same errors. So please can somwone point me right kernel-headers Armbian is using ? Many Thanks wollik 0 Quote Link to comment Share on other sites More sharing options...
Igor Posted May 11, 2020 Share Posted May 11, 2020 16 minutes ago, wollik said: So please can somwone point me right kernel-headers Armbian is using ? We fix kernel headers only lately, since they were mainly broken before. With latest kernel, they are present. Install them via armbian-config to make sure. 0 Quote Link to comment Share on other sites More sharing options...
wollik Posted May 11, 2020 Author Share Posted May 11, 2020 Hi Igor, thanks for this hint! But i still need the build directory and I have no idea how to get it created and filled with the tools to get the compilation done. compile with KDIR=/lib/modules/4.19.62-sunxi/build/, at /home/pi/tools/CAN/can4linux_svn273/can4linux CC = cc make -C /lib/modules/4.19.62-sunxi/build/ C=0 M=/home/pi/tools/CAN/can4linux_svn273/can4linux TARGET=BANANAPI modules make[1]: *** /lib/modules/4.19.62-sunxi/build/: No such file or directory. Stop. Makefile:664: recipe for target 'all' failed make: *** [all] Error 2 Please can you help again ? Many Thanks wollik 0 Quote Link to comment Share on other sites More sharing options...
Werner Posted May 11, 2020 Share Posted May 11, 2020 Update to a recent kernel version. 0 Quote Link to comment Share on other sites More sharing options...
ning Posted June 27, 2020 Share Posted June 27, 2020 kernel-headers-$(uname -r) is not kernel header package name provided by armbian. the real name is linux-headers-next-sunxi_5.31 linux-headers-{branch}-{family}_{armbian version} is the syntax. it is in /etc/armbian-release , it is updated with board package, but I don't know whether kernel header package is update with board package? need @Igor to answer. 0 Quote Link to comment Share on other sites More sharing options...
wollik Posted June 27, 2020 Author Share Posted June 27, 2020 Thanks to all, I ve updated to the latest image and installed the kernel headers via armbian-config. Regards WolliK 1 Quote Link to comment Share on other sites More sharing options...
Igor Posted June 27, 2020 Share Posted June 27, 2020 1 hour ago, ning said: but I don't know whether kernel header package is update with board package? If installed, yes, otherwise not. This is the correct way: apt install linux-headers-${BRANCH}-${FAMILY} 0 Quote Link to comment Share on other sites More sharing options...
bthoven Posted March 25, 2022 Share Posted March 25, 2022 I'm trying to compile a wifi driver for RTL8898ES chip on my S905x box which is running Armbian 20.10.1 Focal with Linux 5.9.0-arm-64. I can't get the kernel-headers installed either within the armbian-config menu or all the above apt install commands. It reported it can't find the kernel header files. sudo apt install linux-headers-${BRANCH}-${FAMILY} [sudo] password for bthoven: Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package linux-headers- bthoven@bthoven-X96:~$ sudo apt-get install kernel-headers-$(uname -r) Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package kernel-headers-5.9.0-arm-64 E: Couldn't find any package by glob 'kernel-headers-5.9.0-arm-64' E: Couldn't find any package by regex 'kernel-headers-5.9.0-arm-64' Anyone has succeeded doing it lately? Thanks 0 Quote Link to comment Share on other sites More sharing options...
Igor Posted March 25, 2022 Share Posted March 25, 2022 source /etc/armbian-release apt install linux-headers-${BRANCH}-${LINUXFAMILY} Otherwise https://docs.armbian.com/User-Guide_Armbian-Config/ 43 minutes ago, bthoven said: Armbian 20.10.1 Focal with Linux 5.9.0-arm-64. Which will most likely fail since this is not official Armbian build. 0 Quote Link to comment Share on other sites More sharing options...
Werner Posted March 25, 2022 Share Posted March 25, 2022 4 hours ago, bthoven said: box tvboxes are unsupported in general. Ask the person who gave you this image. https://docs.armbian.com/User-Guide_FAQ/#why-does-armbian-not-support-tv-boxes-the-market-is-huge 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.