Cannot login after installation Windows 11 + WSL2 + Ubuntu 22.04
totszwai opened this issue · comments
Eric To commented
Sanbu commented
I meet the same error. I can try it in Ubuntu20.04 , but when i try it in 22.04,i can't open 22.04 from now on
Eric To commented
I ended up deleting the whole WSL and restart from scratch. I've also tried to get the systemd to work again and failed, so far, I'm not able to get the systemd in WSL2. :(
Kevin Kuusela commented
Had the same issue and I just reverted everything the script did.
- Open up powershell and write
wsl -d DISTRONAME -u root
- Delete
/usr/sbin/start-systemd-namespace
and/usr/sbin/enter-systemd-namespace
(rm -rf XXX) - Edit the file
/etc/bash.bashrc
using your favorite text editor
and comment outsource /usr/sbin/start-systemd-namespace
It should look something like:
# Start or enter a PID namespace in WSL2
# source /usr/sbin/start-systemd-namespace
Tada you should now be able to start the WSL again! You can remove those two lines as well if you want.