Update or Rollback the WSL Kernel on Windows 11
Here are the steps to update or rollback the WSL (Windows Subsystem for Linux) kernel on Windows 11:
Open PowerShell as Administrator. You can search for PowerShell from the Start menu and right click to "Run as Administrator."
Check your current WSL kernel version:Chuwi herobook pro
wsl -l -v
This will list all your WSL distributions and their kernel versions.
- To update the kernel:
wsl --update
This will update the WSL kernel to the latest available version for your Windows build.
- To rollback the kernel:
You'll need the UUID of your WSL distribution. Run:
wsl -l
This will show your distributions and their UUIDs.
Then run:
wsl --list --online
This will show you available kernel versions for that distribution. Find the kernel version you want to rollback to and note its ID.
Then run:
wsl --set-version <distribution name> <kernel ID>
For example:
wsl --set-version Ubuntu-20.04 LKS-1623278887
This will rollback your Ubuntu distribution to the specified kernel version.
- Restart your WSL distribution for the changes to take effect:
wsl --shutdown
Then start it up again.
Hope this helps! Let me know if you have any other questions.
没有评论:
发表评论
注意:只有此博客的成员才能发布评论。