Wait… you installed libc6 2.31 on Debian 9.x ???
Debian 9.x shipped with glibc 2.24!!!
Yeah, that will break everything!
Edit: Add, i’m not debugging that… Start over with a fresh image, and don’t do that…
Edit2: if you need glibc 2.31 start with Bullseye: Debian 11.x (Bullseye) - Monthly Snapshot - 2023-10-07
Regards,