Search results
That hopefully will explain why the wsl command is exiting. Just running wsl.exe (from PowerShell, CMD, or the Start Menu) is attempting to launch docker-desktop-data and then immediately exits. You should be able to fix it by executing wsl --set-default Ubuntu from PowerShell or CMD. If not, we can dig deeper. Share.
Mar 12, 2020 · wsl --install -d Ubuntu. Then I used the following command to set the Ubuntu distribution as default: wsl --set-default Ubuntu. Other useful commands: # To list all installed distributions. wsl --list --verbose. wsl -l -v. # To see the available distributions to install. wls --list --online.
Jul 5, 2020 · When I launched Ubuntu 20.04, it pops up: "Press any key to continue...", and then if I press any key, it exits immediately. This prevents me from using (typing any command) in Ubuntu WSL. (It occurred suddenly today. For the last couple of days it has been working properly.) Screenshot: Press any key to continue pops up after startup. Attempts ...
Jan 16, 2021 · 0. I found a solution that worked for me. I had to to ensure the remote server was set to a multi-user target. sudo systemclt set-default multi-user.target. sudo reboot. Reference: XRDP session close immediately #2258. Share. Improve this answer. answered Nov 4 at 21:23.
Jul 2, 2020 · I just tried it out, and indeed: When I run explorer, the explorer Windows opens in the background, and the process which starts the Explorer returns with exit code 1.
docker-desktop Running 2. If not, run in PowerShell wslconfig /setdefault <Your WSL Linux distro>. 2. When you have the correct WSL distro selected, open VSCode, press Ctrl+Shift+P, and type Remote-WSL: New WSL Window. This will update VS Code Server on your WSL Linux distro.
Jul 9, 2021 · Open the Windows settings, clicked "check for updates" and I don't have any update to do. Make sure "Windows sub system for Linux" is enabled in Windows settings. Look in Programs and Features, Windows Features, and ensure WSL is enabled (down at near the bottom of the list).
Apr 22, 2021 · This can be done several ways, but the easiest is to: Start a shell. Run the first command. exec a replacement shell that will keep running. As you have experienced, just doing the first two of those will cause the shell to close when the command exits. This will look something like: wsl -e bash -c "ls; exec bash". Share.
Apr 24, 2022 · I don't remember exactly how I installed WSL, but I think it installed with Docker. When I run wsl -l, Docker appears in the list of WSL distributions. But when I run the wsl command from the Windows Start menu, the window just opens and then closes immediately.
Apr 9, 2021 · I am trying to run XFCE Desktop Environment for Ubuntu 20.04 in WSL (not WSL2, fyi. My laptop does not support virtualisation). I have installed xrdp, xfce4 and xubuntu-desktop using sudo apt install <package-name>. I have also rechecked, and even restarted the xrdp service using sudo service xrdp status and sudo service xrdp restart. The ...