Update NCP 1.54.2 to Bookworm fails

Hello,

trying to upgrade my NCP to Bookworm I get the following error messages:

Blockquote
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libc-dev-bin : Depends: libc6 (< 2.32) but 2.36-9+rpt2+deb12u7 is to be installed
libc6-dev : Depends: libc6 (= 2.31-13+rpt2+rpi1+deb11u10) but 2.36-9+rpt2+deb12u7 is to be installed
E: Broken packages

What can I do to solve the error?

Technically, if those are the only packages with this conflict, you can probably remove them (in this case) since they’re dev packages (i.e. they should not have any real-time impact on operations since they’re for building things from source). That will have the benefit of resolving the conflict. The packages mentioned as being “to be installed” also look to be the the correct ones for Bookworm. So the conflict is definitely arising from the dev packages.

But the bigger question is: why are you having this problem to start with?

Do you have any non-default package sources?

And how, specifically, are you upgrading?

You can try this.

Just remove those packages.
If you are running on Armbian like me, the tool “armbian-config” will be removed as a consequence.
But, don’t worry.
After the update of your nextcloud instance to bookworm is done, you can reinstall “armbian-config” and use it, again.
That’s how I fixed it and this will work for you, hopefully.