Hello, I installed the 32-bit system 2024-11-19-raspios-bookworm-armhf.img on my Raspberry Pi 5. I want to compile the .ko driver module in the current Raspberry Pi environment. I used the command sudo uname -a to check the kernel, which is Linux raspberrypi 6.6.51+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.51-1+rpt3 (2024-10-08) aarch64 GNU/Linux.
Then I tried to install the kernel headers using the command sudo apt install linux-headers-rpi-v8, but it reported an error:Did I make a mistake with the kernel header files?
Then I tried to install the kernel headers using the command sudo apt install linux-headers-rpi-v8, but it reported an error:
Code:
sudo apt install linux-headers-rpi-v8Reading package lists... DoneBuilding dependency tree... DoneReading state information... DoneSome packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming.The following information may help to resolve the situation:The following packages have unmet dependencies: linux-headers-6.6.62+rpt-rpi-v8:arm64 : Depends: gcc-12:arm64 but it is not installableE: Unable to correct problems, you have held broken packages.
Statistics: Posted by jieweizero — Sat Dec 07, 2024 9:49 am — Replies 1 — Views 34