Switching to Bookworm gives version mismatch. The simplest test is installing touchsreen plugin which only depends on repositories packages.
...
Status :Installing necessary utilities
cpp-12 : Depends: gcc-12-base (= 12.2.0-14) but 12.2.0-14+rpi1 is to be installed
...
Status :Installing necessary utilities
luit : Breaks: x11-utils (< 7.7+6) but 7.7+5 is to be installed
Switching to Bookworm gives version mismatch. The simplest test is installing touchsreen plugin which only depends on repositories packages. ... Status :Installing necessary utilities cpp-12 : Depends: gcc-12-base (= 12.2.0-14) but 12.2.0-14+rpi1 is to be installed ... Status :Installing necessary utilities luit : Breaks: x11-utils (< 7.7+6) but 7.7+5 is to be installed
The vanilla Raspberry Pi Bookworm has: deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware deb http://deb.debian.org/debian-security/ bookworm-security main contrib non-free non-free-firmware deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
which is also failing.