On Rock 5c radxa-firmware upgrade fails

Hi all,

I am running Radxa OS, Debian GNU/Linux 12 (bookworm) on Rock 5c.
I have trouble upgrading radxa-firmware package.
The error mentions conflict with firmware-misc-nonfree.

Does anyone have the same kind of issue.

root@rock-5c:~# sudo apt-get upgrade
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Calculating upgrade… Done
The following packages will be upgraded:
radxa-firmware
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
14 not fully installed or removed.
Need to get 0 B/2520 kB of archives.
After this operation, 101 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Reading changelogs… Done
(Reading database … 93408 files and directories currently installed.)
Preparing to unpack …/radxa-firmware_0.2.26_all.deb …
Leaving ‘diversion of /lib/firmware/cypress/cyfmac43455-sdio.bin to /lib/firmware/cypress/cyfmac43455-sdio.bin.bak by radxa-firmware’
Leaving ‘diversion of /lib/firmware/cypress/cyfmac43455-sdio.clm_blob to /lib/firmware/cypress/cyfmac43455-sdio.clm_blob.bak by radxa-firmware’
Leaving ‘diversion of /lib/firmware/rtw89/rtw8852b_fw.bin to /lib/firmware/rtw89/rtw8852b_fw.bin.bak by radxa-firmware’
Leaving ‘diversion of /lib/firmware/r8a779x_usb3_v1.dlmem to /lib/firmware/r8a779x_usb3_v1.dlmem.bak by radxa-firmware’
Leaving ‘diversion of /lib/firmware/r8a779x_usb3_v2.dlmem to /lib/firmware/r8a779x_usb3_v2.dlmem.bak by radxa-firmware’
Leaving ‘diversion of /lib/firmware/r8a779x_usb3_v3.dlmem to /lib/firmware/r8a779x_usb3_v3.dlmem.bak by radxa-firmware’
Unpacking radxa-firmware (0.2.26) over (0.2.22) …
dpkg: error processing archive /var/cache/apt/archives/radxa-firmware_0.2.26_all.deb (–unpack):
trying to overwrite ‘/lib/firmware/arm/mali/arch10.8/mali_csffw.bin’, which is also in package firmware-misc-nonfree 20250410-2~bpo12+1
Errors were encountered while processing:
/var/cache/apt/archives/radxa-firmware_0.2.26_all.deb
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@rock-5c:~#

Use rsetup to perform system upgrades, it should do whatever is needed.

Unfortunately same behaviour.

Reading state information… Done
Calculating upgrade… Done
The following packages will be upgraded:
radxa-firmware
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/2520 kB of archives.
After this operation, 101 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Reading changelogs… Done
(Reading database … 93659 files and directories currently installed.)
Preparing to unpack …/radxa-firmware_0.2.26_all.deb …
Leaving ‘diversion of /lib/firmware/cypress/cyfmac43455-sdio.bin to /lib/firmware/cypress/cyfmac43455-sdio.bin.bak by radxa-firmware’
Leaving ‘diversion of /lib/firmware/cypress/cyfmac43455-sdio.clm_blob to /lib/firmware/cypress/cyfmac43455-sdio.clm_blob.bak by radxa-firmware’
Leaving ‘diversion of /lib/firmware/rtw89/rtw8852b_fw.bin to /lib/firmware/rtw89/rtw8852b_fw.bin.bak by radxa-firmware’
Leaving ‘diversion of /lib/firmware/r8a779x_usb3_v1.dlmem to /lib/firmware/r8a779x_usb3_v1.dlmem.bak by radxa-firmware’
Leaving ‘diversion of /lib/firmware/r8a779x_usb3_v2.dlmem to /lib/firmware/r8a779x_usb3_v2.dlmem.bak by radxa-firmware’
Leaving ‘diversion of /lib/firmware/r8a779x_usb3_v3.dlmem to /lib/firmware/r8a779x_usb3_v3.dlmem.bak by radxa-firmware’
Unpacking radxa-firmware (0.2.26) over (0.2.22) …
dpkg: error processing archive /var/cache/apt/archives/radxa-firmware_0.2.26_all.deb (–unpack):
trying to overwrite ‘/lib/firmware/arm/mali/arch10.8/mali_csffw.bin’, which is also in package firmware-misc-nonfree 20250410-2~bpo12+1
Errors were encountered while processing:
/var/cache/apt/archives/radxa-firmware_0.2.26_all.deb
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)
Unable to upgrade packages.
==================
Update has failed.
This may be caused by network issue, or clock out of sync.
You can try update again later.
Press enter to continue…

The file it wants to overwrite is the GPU firmware blob. Not sure what the best solution is, maybe you can just rm it and it will get installed anyway. Radxa just failed to notice it is now offered in another package