A simpler solution that some suggested is to run the following command:
sudo apt install -t bookworm-backports matrix-synapse python3-canonicaljson
A simpler solution that some suggested is to run the following command:
sudo apt install -t bookworm-backports matrix-synapse python3-canonicaljson