Troubleshooting

General Tips

  • Try fully restarting WSL by running wsl --shutdown. This will close all your terminal windows. Then just restart wsl in your terminal.
    Please keep in mind that this will also end any process you might have running in other WSL distros. If that is currently not an option, you may try wsl -t nixos, which will just stop the nixos distro. (You may need to change that if you imported the distro under some other name). However, some issues will only be resolved after a full restart of WSL.
  • Make sure that you are using the Microsoft Store version of WSL
  • Update WSL2 to the latest version
    • To update, run: wsl --update
    • To check which version you currently have installed, run wsl --version
      • The latest version can be found on the Microsoft/WSL repo
      • If this command does not work, you are probably not using the Microsoft Store version of WSL!