inindev / nanopi-r6

stock debian arm64 linux for the nanopi r6c
GNU General Public License v3.0
7 stars 1 forks source link

dpkg: error processing package linux-image-6.1.0-18-arm64 #2

Open SadarSSI opened 9 months ago

SadarSSI commented 9 months ago

i have this error with

sudo apt update; sudo apt upgrade; sudo apt --purge autoremove; sudo apt clean
Hit:1 http://deb.debian.org/debian bookworm InRelease
E: dtb_cp: neither /boot/rk3588s-nanopi-r6c.dtb nor /usr/lib/linux-image-6.1.0-18-arm64/rockchip/rk3588s-nanopi-r6c.dtb found
run-parts: /etc/kernel/postinst.d/dtb_cp exited with return code 3
dpkg: error processing package linux-image-6.1.0-18-arm64 (--configure):
 installed linux-image-6.1.0-18-arm64 package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-arm64:
 linux-image-arm64 depends on linux-image-6.1.0-18-arm64 (= 6.1.76-1); however:
  Package linux-image-6.1.0-18-arm64 is not configured yet.

dpkg: error processing package linux-image-arm64 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-image-6.1.0-18-arm64
 linux-image-arm64
E: Sub-process /usr/bin/dpkg returned an error code (1)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up linux-image-6.1.0-18-arm64 (6.1.76-1) ...
/etc/kernel/postinst.d/dtb_cp:
E: dtb_cp: neither /boot/rk3588s-nanopi-r6c.dtb nor /usr/lib/linux-image-6.1.0-18-arm64/rockchip/rk3588s-nanopi-r6c.dtb found
run-parts: /etc/kernel/postinst.d/dtb_cp exited with return code 3
dpkg: error processing package linux-image-6.1.0-18-arm64 (--configure):
 installed linux-image-6.1.0-18-arm64 package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-arm64:
 linux-image-arm64 depends on linux-image-6.1.0-18-arm64 (= 6.1.76-1); however:
  Package linux-image-6.1.0-18-arm64 is not configured yet.

dpkg: error processing package linux-image-arm64 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-image-6.1.0-18-arm64
 linux-image-arm64
E: Sub-process /usr/bin/dpkg returned an error code (1)
inindev commented 9 months ago

The rk3588s in the nanopi-r6c is not supported by the standard debian 6.1 kernel, this error is normal. This image has a patched 6.7-rc7 kernel. There is an updated kernel here if you are interested: https://github.com/inindev/linux-rockchip/releases/tag/v6.7.0

wget https://github.com/inindev/linux-rockchip/releases/download/v6.7.0/linux-image-6.7.0-1-arm64_6.7.0-1_arm64.deb
sudo dpkg -i linux-image-6.7.0-1-arm64_6.7.0-1_arm64.deb
SadarSSI commented 9 months ago

Hello, thank you for your answer.

It did not work

As indicated in the other post, I will try to see how to limit the kernel version to avoid this type of problem.

inindev commented 6 months ago

I published the 6.9.2 kernel if you want to give it a try: https://github.com/inindev/linux-rockchip/releases

visicon-masc commented 5 months ago

Is it mandatory to install linux-libc-dev_x.y.z_arm64.deb alongside with the kernel?

inindev commented 5 months ago

It is not mandatory. That package provides user space headers for the linux kernel: https://packages.debian.org/bookworm/linux-libc-dev

The only package you need is the kernel image deb.

I just published a new kernel yesterday which may be of interest to you:

linux kernel v6.9.5 arm64 inindev https://github.com/inindev/linux-rockchip/releases

wget https://github.com/inindev/linux-rockchip/releases/download/v6.9.5/linux-image-6.9.5-1-arm64_6.9.5-1_arm64.deb
sudo dpkg -i linux-image-6.9.5-1-arm64_6.9.5-1_arm64.deb

as an aside, you can list and cleanup old kernels this way:

sudo apt list --installed | grep linux-image
sudo apt purge linux-image-6.x.xx-arm64