Skip to content
This repository has been archived by the owner on Aug 11, 2023. It is now read-only.

Cannot login after installation Windows 11 + WSL2 + Ubuntu 22.04 #95

Open
totszwai opened this issue Jan 28, 2023 · 4 comments
Open

Cannot login after installation Windows 11 + WSL2 + Ubuntu 22.04 #95

totszwai opened this issue Jan 28, 2023 · 4 comments

Comments

@totszwai
Copy link

Am I doing this right...?

image

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.

@sanbuphy
Copy link

sanbuphy commented Feb 2, 2023

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

@totszwai
Copy link
Author

totszwai commented Feb 6, 2023

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. :(

@sanbuphy
Copy link

sanbuphy commented Feb 7, 2023

@totszwai totszwai

It work well in Ubuntu 20.04 WSL2 ,you can have a try.

@codekuu
Copy link

codekuu commented Feb 23, 2023

Had the same issue and I just reverted everything the script did.

  1. Open up powershell and write wsl -d DISTRONAME -u root
  2. Delete /usr/sbin/start-systemd-namespace and /usr/sbin/enter-systemd-namespace (rm -rf XXX)
  3. Edit the file /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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants