change wsl to version 1
wsl --set-version Ubuntu-18.04 1
// Run the above command from windows powershell
// This assumes you are running Ubuntu 18.04
change wsl to version 1
wsl --set-version Ubuntu-18.04 1
// Run the above command from windows powershell
// This assumes you are running Ubuntu 18.04
How to change default user in WSL Ubuntu bash on Windows 10
ubuntu2 config --default-user root
#ubuntu 20.04
ubuntu2004 config --default-user root
#ubuntu 18.04
ubuntu1804 config --default-user root
EDIT WSL2 terminal user%
ubuntu2004 config --default-user root
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us