open windows terminal or power shell as administrator and run the following commands
wsl --install
wsl --update
wsl --version
wsl --install -d Ubuntu-24.04
wsl --list --verbose
wsl -v -l
if terminal gets stuck:
stop: wsl --terminate Ubuntu-24.04
start: wsl -d Ubuntu-24.04
if still stuck:
uninstall: wsl --unregister Ubuntu-24.04
reinstall: wsl --install -d Ubuntu-24.04
lsb_release -a