Problems with apt upgrade
Hello, I have installed NextcloudPi on my Raspberry PI5. Current OS installation:
Now, I would like to make an upgrade and get the following issue.
What can I do?
You may take a look here, esp. section "Troubleshooting" [ArmbianGeneral purposeRaspberry Pi](https://www.armbian.com/rpi4b/) Edit: Typo in link corrected.
Thank you very much. But these links aren't helping me, or I don't understand them.
Thank you very much. But these links aren't helping me, or I don't understand them.
Sorry little typo in link, corrected now.
The hint on the link did at least not work for me
apt update
dpkg --remove --force-all libraspberrypi0 armbian-bsp-cli-rpi4b-current
apt --fix-broken install
apt install armbian-bsp-cli-rpi4b-current
After lots of back and forth, I am now stuck on my Pi 5:
Read /config. txt bytes 1320 hnd 0x1dc43
Read /config. txt bytes 1320 hnd 0x1dc43
fs_open : 'vmlinuz'
s_open : 'kernel _ 2712. img'
fs_open : 'kerne18. img'
Read initrd.img bytes 13446700 hnd 0x72952
Read bcm2712-rpi-5-b.dtb bytes 78765 hnd 0x72648
/overlays/overlay_map. dtb
Read /config. txt bytes 1320 hnd 0x1dc43
/overlays/disable-wifi.dtbo
/overlays/disable-bt.dtbo
/overIays/vc4-kms-v3d.dtbo
Read /cmdline. txt bytes 180 hnd 0x1dc3b
fs_open : 'armstub8-2712. bin'
NVME off
BOOT ERROR: code 7 - 'Kernel or device-tree not found or is not compatible'
My solution was:
- boot a regular RaspberriPi OS from SD-Card
- mount the latest nextcloudpi image once booted (losetup, or just flash it to a USB stick or SD-card and mount it)
- mount boot and boot/firmware from device with the broken installation (NVMe in my case)
- copy boot and boot/firmware from the nextcloudpi image to the mountpoint of the broken installation on the NVMe
- reboot from the "broken" device (NVMe)
- system comes up again but fails to start some services such as proc-sys-fs-binfmt_misc
- dpkg --remove --force-all libraspberrypi0 armbian-bsp-cli-rpi5b-current
- apt --fix-broken install
- apt install armbian-bsp-cli-rpi5b-current
- uninstall and re-install linux-dtb-current-bcm2712
- reinstall linux-image-current-bcm2712
- reboot
- System came back online perfectly healthy
Maybe it would have been enough to run:
- dpkg --remove --force-all libraspberrypi0 armbian-bsp-cli-rpi5b-current
- apt --fix-broken install
- apt install armbian-bsp-cli-rpi5b-current
- apt remove linux-dtb-current-bcm2712
- apt reinstall linux-dtb-current-bcm2712
- apt reinstall linux-image-current-bcm2712
I hope this helps someone ...
Thank you very much! I solved my problem with the following solution.
https://forum.armbian.com/topic/55743-problems-with-apt-upgrade/