Closed codekuu closed 1 year ago
Not strictly running the script, but after following the guide previous to this script; I get the following error trying to start wsl as you discribed.
>wsl -d DISTRONAME -u root
/usr/sbin/enter-systemd-namespace: line 10: /usr/sbin/daemonize: No such file or directory
@OskyEdz you can open the windows file explorer and go into the WSL disk and do the above instead of using the WSL cli.
@codekuu I'm not sure how you think removing this setup is fixing it? There's a real fix in comment https://github.com/DamionGans/ubuntu-wsl2-systemd-script/issues/36#issuecomment-732090101 for Ubuntu-22.04. For Ubuntu-20.04 this script "just works".
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 outsource /usr/sbin/start-systemd-namespace
It should look something like:Tada you should now be able to start the WSL again! You can remove those two lines as well if you want.