Well, I found out that if I reinstall the Linux partition it now uses Debian 12, so it's (slightly) working now. Thank you for the help!