Jump to content

Can't install kernal-headers


wollik

Recommended Posts

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

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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.

 

 

Link to comment
Share on other sites

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}

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines