DamionGans / ubuntu-wsl2-systemd-script

[Does not work anymore!] Script to enable systemd support on current Ubuntu WSL2 images
1.56k stars 383 forks source link

Unable to launch WSL 2 after running script. #27

Closed LBates2000 closed 4 years ago

LBates2000 commented 4 years ago

After running the script in my WSL 2 Pengwin distro, I can no longer open a terminal. The terminal window flashes a brief message "Cannot execute daemonize to start systemd" and immediately closes.

I can mount and navigate the vhdx, but am not clear exactly what to modify to revert the changes made by the script.

I'm assuming reverting the changes to /etc/bash.bashrc and removing usr/sbin/start-systemd-namespace and /usr/sbin/enter-systemd-namespace would be the place to start.

Thanks.

LBates2000 commented 4 years ago

Mounting the vhdx in an Ubuntu VM and commenting out the line source /usr/sbin/start-systemd-namespace in /etc/bash.bashrc restored my WSL 2 terminal. I suspect the issue was that daemonize failed to install because of an existing issue with my package management system.