As of writing, the Debian distro for WSL (Windows Subsystem for Linux) is quite old.
You can get more up-to-date package managers, text-editors and compilers by upgrading WSL to Debian 12 (current testing).
- Root required
- Use at your own risk, preferably on a fresh installation.
- Choose 'yes' when Debian requests to restart services.