Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Can't install kernal-headers

Featured Replies

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

 

  • Author

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

 

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.

 

 

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.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.