WSL: Too many levels of symbolic links running any program in wsl
Windows Version
Microsoft Windows [Version 10.0.22631.4751]
WSL Version
2.3.26.0
Are you using WSL 1 or WSL 2?
- WSL 2
- WSL 1
Kernel Version
No response
Distro Version
No response
Other Software
No response
Repro Steps
I ran the provided commands below.
A few lines before exit, all the open windows for wsl2 started to exhibit the issue where running any program (including ./example) returns the error bash: ./example: Too many levels of symbolic links
tab completion of directories and bash builtins all still work e.g. cd /usr/bin.
Expected Behavior
the ubuntu system should not return the error for local programs at the very least!
wsl should be able to start!
Actual Behavior
bash echo hi
returns the error bash: /usr/bin/bash: Too many levels of symbolic links
bash ./program
returns the error bash: ./program: Too many levels of symbolic links
trying to run a new wsl instance fails:
<3>WSL (91822) ERROR: CreateProcessCommon:559: execvpe(/bin/bash) failed: Symbolic link loop
Diagnostic Logs
https://github.com/user-attachments/files/18552644/crash.log
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 30
in my bashrc, I commented out
export PATH="/home/mike/.local/bin:$PATH", and now it seems to be working.Diagnostic information
The log file doesn’t contain any WSL traces. Please make sure that you reproduced the issue while the log collection was running.
Diagnostic information