Can't install kernal-headers


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 post
Share on other sites
Armbian is a community driven open source project. Do you like to contribute your code?

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