Looking for:
How to install Linux WSL2 on Windows 10 and Windows 11 | Windows Central - Installing WSLManually download Windows Subsystem for Linux (WSL) Distros | Microsoft Docs.How to Install WSL 2 on Windows 10 (Updated) - OMG! Ubuntu!
That way, if one program depends on a certain version of another program, both will be installed, and kept up-to-date. Any apt commands that make changes to your system must run as root.
If you're logged in as your regular user as you usually should be , run a program as root by prefixing it with sudo "superuser do". It requires you enter your password, and your program is run as root. Updates download, but nothing is installed or upgraded yet. To upgrade all available packages, run:. Sudo will not ask you for your password this time, unless more than five minutes have elapsed since the last sudo command. The size of the upgrades is calculated, and you will be prompted to continue.
Type y and press Enter. The upgrades download and install, which might take a while, depending on the speed of your computer and Internet connection. When the upgrade is complete, you will be returned to the bash prompt. Your Linux system is now up-to-date. At any time, you can exit bash using the exit command. WSL has its own filesystem.
Windows Terminal on the Microsoft Store. When you installed Ubuntu or a different Linux distro a shortcut was added to the Start Menu. The first time you run the distro things will seem a little slow. You will also be promoted to set a username and password for use on the distro. Let me know if this guide worked for you in the comments! Once the installation is complete, move on to the next step - setting WSL 2 as your default version when installing new Linux distributions.
Skip this step if you want your new Linux installs to be set to WSL 1. Open the Microsoft Store and select your favorite Linux distribution. The first time you launch a newly installed Linux distribution, a console window will open and you'll be asked to wait for a minute or two for files to de-compress and be stored on your PC. Learn more. Install Windows Terminal. You can check the WSL version assigned to each of the Linux distributions you have installed by opening the PowerShell command line and entering the command only available in Windows Build or higher : wsl -l -v.
You can change back to WSL 1 at anytime by running the same command as above but replacing the '2' with a '1'. The update from WSL 1 to WSL 2 may take several minutes to complete depending on the size of your targeted distribution. Follow these instructions to uninstall and remove any legacy distributions. If wsl --set-default-version results as an invalid command, enter wsl --help. If the --set-default-version is not listed, it means that your OS doesn't support it and you need to update to version , Build or higher.
If you see this message after running the command: WSL 2 requires an update to its kernel component. You still need to install the MSI Linux kernel update package. Additionally, if you want to make WSL 2 your default architecture you can do so with this command:. Below are related errors and suggested fixes. If you no longer need WSL in Windows 10, you can uninstall it.
To start off, uninstall any Linux distributions installed in your system. That is all. After restarting the system, the WSL is completely uninstalled.
No comments:
Post a Comment