See here: https://discuss.freedombox.org/t/matrix-install-failure-on-debian-bullseye-work-around/2028