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

Sleeping for 1 second to let systemd settle nsenter: cannot open /proc/25/ns/time: No such file or directory #74

Open
ghost opened this issue Mar 23, 2022 · 6 comments

Comments

@ghost
Copy link

ghost commented Mar 23, 2022

image

@UsamiRenko04
Copy link

+1
我也是这情况

@CleanHit
Copy link

CleanHit commented May 7, 2022

Same here

@CleanHit
Copy link

@lyh2048 #76 (comment)

@n1klaus
Copy link

n1klaus commented Jun 25, 2022

+1

@shixinwang
Copy link

same here

@myxoh
Copy link

myxoh commented Oct 4, 2022

Assuming you didn't install this on root you can start wsl as root using:

 wsl --user root

Because this installs on the bash init script you should be able to log in (at least I could)

From root I was able to run the uninstall script from this fork:
https://github.com/FiestaLake/ubuntu-wsl2-systemd-script/blob/master/uninstall.sh

(Or a slightly modified version to run as the root user)

self_dir=$(pwd)
rm -rf /usr/sbin/start-systemd-namespace
rm -rf /usr/sbin/enter-systemd-namespace
rm -rf /etc/sudoers.d/systemd-namespace

cd /var/tmp
if [ -f "/etc/bash.bashrc" ]; then
sudo grep -v "# Start or enter a PID namespace in WSL2
export USE_WSLG_SOCKET=false
export USE_WSLG_SOCKET=true
source /usr/sbin/start-systemd-namespace" /etc/bash.bashrc > tmpfile
sudo mv tmpfile /etc/bash.bashrc
fi
cd $self_dir

Hope this helps restore your envirnoment.

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

5 participants