Microsoft Windows [Version 10.0.22621.382]
- [X] WSL 2
- [ ] WSL 1
Kali Linux Rolling
On Windows PowerShell:
wsl --install kali-linux
On Kali Linux Window:
After inputting new UNIX username and pass >>
The kali-linux distro is successfully installed and runs without any error message every time.
Every time when a new kali-Linux window is opening:
I was customizing zsh shell in kali. When I encountered some error messages and cant anyway get rid of those, I decided to remove the distro completely.
Using following steps:
- Uninstalled Kali Linux from Apps
- Open PowerShell
wsl --unregister kali-linux
I reinstalled the kali-linux again using
wsl --install kali-linux command. And started facing this error.
I have tried again to uninstall and reinstall but the issue persists.
When I delved more into this, I found out there is an error in
/etc/profile file in the shell at a certain line. I could fix the issue by adding
$i in a line after a
. as seen in other distros' same file.
The issue is solved temporarily, but further, down the road, it introduces more errors. For example, when I try to reset the Kali Linux app, it'd not reset back to its first state but would not run anymore. Then I would go into further error checking and go into solving the further issues.