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

How to completely remove all changes? #71

Open
utkarshsethi opened this issue Dec 23, 2021 · 9 comments
Open

How to completely remove all changes? #71

utkarshsethi opened this issue Dec 23, 2021 · 9 comments

Comments

@utkarshsethi
Copy link

No description provided.

@HWZen
Copy link

HWZen commented Dec 27, 2021

Same question.
I back to wsl1, but this script also alive, but not used.
When I run some app, termial echo

Sleeping for 1 second to let systemd settle
Sleeping for 1 second to let systemd settle
Sleeping for 1 second to let systemd settle
Sleeping for 1 second to let systemd settle
....

@HWZen
Copy link

HWZen commented Dec 29, 2021

No description provided.

I found an uninstall marge from pull request.
url
hope it is helpful

@utkarshsethi
Copy link
Author

No description provided.

I found an uninstall marge from pull request. url hope it is helpful

I had to do a complete reinstall of wsl2, as it was messing with my path.

@n1klaus
Copy link

n1klaus commented Jun 27, 2022

This worked for me without having to reinstall ubuntu.
Login from PowerShell wsl -e bash --norc then check the files

cd /usr/sbin
stat start-systemd-namespace
stat enter-systemd-namespace

Make sure the files are not linked to other files and then delete them from the filesystem

sudo rm start-systemd-namespace
sudo rm enter-systemd-namespace

@0zero
Copy link

0zero commented Jul 30, 2022

I removed the files as @n1klaus suggested and ensured that the /etc/bash.bashrc file no longer sources start-systemd-namespace and I think everything works fine but I'm still getting * Error: Problem adding; giving up message everytime I start the wsl2 shell. I'm on windows 11 and using Ubuntu 22.04

Has anyone experienced similar?

UPDATE:
Nevermind. I shutdown wsl and restarted it and all seems ok now

@jacobavina
Copy link

I used the script and now my Ubuntu terminal close immediately before opening it. How can I repair it?

@sandeepsingh07
Copy link

Please follow below step:

This worked for me without having to reinstall ubuntu.
Login from PowerShell wsl -e bash --norc then check the files

cd /usr/sbin
stat start-systemd-namespace
stat enter-systemd-namespace
Make sure the files are not linked to other files and then delete them from the filesystem

sudo rm start-systemd-namespace
sudo rm enter-systemd-namespace

@jtyler1900
Copy link

sudo rm enter-systemd-namespace

Perfect and excellent. It works for me .

@gopalofficial
Copy link

I also followed the same step ,It worked

Login from PowerShell wsl -e bash --norc then check the files

cd /usr/sbin
stat start-systemd-namespace
stat enter-systemd-namespace
Make sure the files are not linked to other files and then delete them from the filesystem

sudo rm start-systemd-namespace
sudo rm enter-systemd-namespace

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

8 participants