Open totszwai opened 1 year ago
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
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. :(
@totszwai totszwai
It work well in Ubuntu 20.04 WSL2 ,you can have a try.
Had the same issue and I just reverted everything the script did.
wsl -d DISTRONAME -u root
/usr/sbin/start-systemd-namespace
and /usr/sbin/enter-systemd-namespace
(rm -rf XXX)/etc/bash.bashrc
using your favorite text editor
and comment out source /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.
Am I doing this right...?
I tried to install it, didn't work, then I uninstall it, and reinstall it. Then tried it again using
--force
...Then when I try to login as a regular user, it just hang there and never got in.