nextcloudpi icon indicating copy to clipboard operation
nextcloudpi copied to clipboard

Problems with apt upgrade

Open blueskyfeeling opened this issue 3 months ago • 6 comments

Hello, I have installed NextcloudPi on my Raspberry PI5. Current OS installation:

Image

Now, I would like to make an upgrade and get the following issue.

Image

What can I do?

blueskyfeeling avatar Oct 12 '25 10:10 blueskyfeeling

You may take a look here, esp. section "Troubleshooting" [ArmbianGeneral purposeRaspberry Pi](https://www.armbian.com/rpi4b/) Edit: Typo in link corrected.

geoW-n avatar Oct 14 '25 05:10 geoW-n

Thank you very much. But these links aren't helping me, or I don't understand them.

blueskyfeeling avatar Oct 14 '25 13:10 blueskyfeeling

Thank you very much. But these links aren't helping me, or I don't understand them.

Sorry little typo in link, corrected now.

geoW-n avatar Oct 14 '25 13:10 geoW-n

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:

Image
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'

bolausson avatar Oct 27 '25 00:10 bolausson

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 ...

bolausson avatar Oct 27 '25 01:10 bolausson

Thank you very much! I solved my problem with the following solution.

https://forum.armbian.com/topic/55743-problems-with-apt-upgrade/

blueskyfeeling avatar Nov 01 '25 09:11 blueskyfeeling