162 Packages can be upgraded. Is this normal?

One thing I have never been sure about for NextcloudPi specifically is whether it is “safe” and “intended” to run apt upgrade from the commandline. If I remember correctly, doing this may install a newer version of PHP than what is intended by the nextcloudpi maintainers, and break things. I have been following the procedures on Staying up to date , which specifies using unattended-upgrades rather than apt upgrade. See here:

NCP users do not need to run apt manually. Should you decide to do so anyway keep in mind there are various issues that can occur, one of those being a mismatch of the PHP versions of all the modules installed, specifically the php-fpm module.

That said, since I have 162 packages needing to be updated, it is clear that unattended upgradesis being blocked by the bug @adelaar linked to above, and I need to follow the steps to resolve it.

Following the english link above, I ran apt remove libraspberrypi0 libraspberrypi-bin. This gave the following error:

Processing triggers for initramfs-tools (0.142+deb12u1) ...
update-initramfs: Generating /boot/initrd.img-6.12.21-current-bcm2711
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8156b-2.fw for built-in driver r8152
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8156a-2.fw for built-in driver r8152
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8153c-1.fw for built-in driver r8152
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8153b-2.fw for built-in driver r8152
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8153a-4.fw for built-in driver r8152
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8153a-3.fw for built-in driver r8152
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8153a-2.fw for built-in driver r8152

I then triggered unattended-upgrades to run on-demand with unattended-upgrades -d. This spent 30+ minutes updating packages, and I saw the same error as above re: missing firmware a few times. At the end, the firmware package that was installed was called linux-firmware-raspi/now 12-0ubuntu1 arm64 [installed,local].

After a reboot, no additional packages were able to be installed by unattended-upgrades. See the output here. Debian Pastezone

Thank you all for your help!

P.S.: What is armbian-upgrade?

In retrospect, was I meant to do armbian-upgrade first before apt remove libraspberrypi0 libraspberrypi-bin? I could not find a man page for armbian-upgrade or a –help option so it is not clear what it does. By using less to inspect the command, it says:

#!/bin/bash
trap "exit" INT TERM
[[ $EUID != 0 ]] && exec sudo "$0" "$@"
apt update
apt -y upgrade
apt clean
apt -y autoremove
exit 0

This looks like it might break nextcloudpi since it is using apt -y upgrade so I’m glad I did not run it after all.

Hope this helps somebody!