Jump to content

Recommended Posts

Posted

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

 

Posted
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.

Posted

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

 

Posted

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.

 

 

Posted
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}

 

Posted

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

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines