Raspberrypi kernel headers Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
goldentk
Posts: 9
Joined: Thu May 27, 2021 9:12 am

Raspberrypi kernel headers

Post by goldentk »

Hi, I would like to install raspberrypi-kernel-headers to compile driver for my network card with Realtek chipset 88x2bu, and it cannot be found

```
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package raspberrypi-kernel-headers
```

How I can install those headers?

My Kernel version:
Linux goldenTK-core 5.10.17-v8+ #1403 SMP PREEMPT Mon Feb 22 11:37:54 GMT 2021 aarch64 GNU/Linux
User avatar
Joulinar
Posts: 4783
Joined: Sat Nov 16, 2019 12:49 am

Re: Raspberrypi kernel headers

Post by Joulinar »

Hi,

it's not really a question for DietPi as we are not providing the kernel. It's more a question for Raspberry OS. ;)

Can you do following to search the package

Code: Select all

apt show raspberrypi-kernel-headers
At least on my system the package is shown

Code: Select all

root@DietPi4:~# apt show raspberrypi-kernel-headers
Package: raspberrypi-kernel-headers
Version: 1:1.20210430-2
Priority: optional
Section: kernel
Source: raspberrypi-firmware
Maintainer: Serge Schneider <serge@raspberrypi.org>
Installed-Size: 59.8 MB
Provides: linux-headers
Homepage: https://github.com/raspberrypi/firmware
Download-Size: 9331 kB
APT-Sources: https://archive.raspberrypi.org/debian buster/main arm64 Packages
Description: Header files for the Raspberry Pi Linux kernel
 This package provides the architecture-specific kernel header files for
 the Raspberry Pi Linux kernel, generally used for building out-of-tree
 kernel modules.

root@DietPi4:~#
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
goldentk
Posts: 9
Joined: Thu May 27, 2021 9:12 am

Re: Raspberrypi kernel headers

Post by goldentk »

Code: Select all

dietpi@goldenTK-core:~/src/88x2bu $ apt show raspberrypi-kernel-headers
N: Unable to locate package raspberrypi-kernel-headers
N: Unable to locate package raspberrypi-kernel-headers
E: No packages found
goldentk
Posts: 9
Joined: Thu May 27, 2021 9:12 am

Re: Raspberrypi kernel headers

Post by goldentk »

How I can get it? I used latest version from dietpi site.
User avatar
Joulinar
Posts: 4783
Joined: Sat Nov 16, 2019 12:49 am

Re: Raspberrypi kernel headers

Post by Joulinar »

This has nothing to do with DietPi as the image used is Raspberry OS. can you share your apt source list

Code: Select all

cat /etc/apt/sources.list.d/raspi.list
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
goldentk
Posts: 9
Joined: Thu May 27, 2021 9:12 am

Re: Raspberrypi kernel headers

Post by goldentk »

Code: Select all

dietpi@goldenTK-core:~/src/88x2bu $ cat /etc/apt/sources.list.d/raspi.list
deb https://archive.raspberrypi.org/debian/ buster main
goldentk
Posts: 9
Joined: Thu May 27, 2021 9:12 am

Re: Raspberrypi kernel headers

Post by goldentk »

I tried to update dietpi but I've got this error..
Attachments
Screenshot 2021-05-27 at 10.33.52.png
User avatar
Joulinar
Posts: 4783
Joined: Sat Nov 16, 2019 12:49 am

Re: Raspberrypi kernel headers

Post by Joulinar »

pls can you share full output of

Code: Select all

apt update && apt upgrade
PS: pls try to copy the output from SSH terminal and avoid doing screen shots
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
goldentk
Posts: 9
Joined: Thu May 27, 2021 9:12 am

Re: Raspberrypi kernel headers

Post by goldentk »

Code: Select all

sudo apt update && apt upgrade
Hit:1 https://deb.debian.org/debian buster InRelease
Get:2 https://deb.debian.org/debian buster-updates InRelease [51.9 kB]
Get:3 https://archive.raspberrypi.org/debian buster InRelease [32.7 kB]
Get:4 https://deb.debian.org/debian-security buster/updates InRelease [65.4 kB]
Get:5 https://deb.debian.org/debian buster-backports InRelease [46.7 kB]
Reading package lists... Done        
E: Release file for https://deb.debian.org/debian/dists/buster-updates/InRelease is not valid yet (invalid for another 34d 12h 27min 0s). Updates for this repository will not be applied.
E: Release file for https://archive.raspberrypi.org/debian/dists/buster/InRelease is not valid yet (invalid for another 33d 18h 36min 43s). Updates for this repository will not be applied.
E: Release file for https://deb.debian.org/debian-security/dists/buster/updates/InRelease is not valid yet (invalid for another 33d 20h 21min 41s). Updates for this repository will not be applied.
E: Release file for https://deb.debian.org/debian/dists/buster-backports/InRelease is not valid yet (invalid for another 34d 12h 27min 0s). Updates for this repository will not be applied.
User avatar
Joulinar
Posts: 4783
Joined: Sat Nov 16, 2019 12:49 am

Re: Raspberrypi kernel headers

Post by Joulinar »

pls update your system time

Code: Select all

/boot/dietpi/func/run_ntpd 1
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply