WSL: Fish prompt broken after converting WSL1 instance to WSL2. (link to video included)

When I install WSL, I set up Fish as my default shell, and then install a couple of plugins.

Once I converted an existing WSL instance to WSL2, that became unusable.

  • Your Windows build number: (Type ver at a Windows Command Prompt) Windows 10 Build 18917.1000

  • What you’re doing and what’s happening: wsl --set-version <distro> 2

Open new window of <distro>

See video of this happening at https://1drv.ms/v/s!ApEXGJp7Ipuxi6RJIZhqOstDpVV7rg.

NOTE: I edited the video to remove dead air. Some operations seem to have finished much quicker than they actually did. It’s still 4 minutes and change.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 21 (7 by maintainers)

Most upvoted comments

Ok, I found the problem, after having reinstalled my Ubuntu 20.04 session several times with this problem each time when starting a Fish shell session.

Everything is in order if I disable the Fast start-up mode of Win10 … See https://stephenreescarter.net/wsl2-network-issues-and-win-10-fast-start-up/

Hoping to help.

Strange if I do a su myuser after starting, the fish session is ok…

Okay, so I have the same setup. fish on WSL 2 with Ubuntu and omf → bobthefish, it was all working fine until today when I restarted my computer. I have the same problem when opening terminal but with a lot more entries, even uninstalling Java to remove it from the path leaves me with all the other ones.

<W> fish: Error while searching for command '/mnt/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/iCLS/__fish_command_not_found_handler'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/iCLS/__fish_command_not_found_handler'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/System32/__fish_command_not_found_handler'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/__fish_command_not_found_handler'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/System32/wbem/__fish_command_not_found_handler'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/System32/WindowsPowerShell/v1.0/__fish_command_not_found_handler'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/System32/OpenSSH/__fish_command_not_found_handler'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/DAL/__fish_command_not_found_handler'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/DAL/__fish_command_not_found_handler'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/IPT/__fish_command_not_found_handler'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/IPT/__fish_command_not_found_handler'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common/__fish_command_not_found_handler'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/Git/cmd/__fish_command_not_found_handler'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/nodejs/__fish_command_not_found_handler'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files (x86)/Yarn/bin/__fish_command_not_found_handler'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/NVIDIA Corporation/NVIDIA NvDLISR/__fish_command_not_found_handler'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files (x86)/GnuPG/bin/__fish_command_not_found_handler'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/System32/__fish_command_not_found_handler'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/__fish_command_not_found_handler'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/System32/wbem/__fish_command_not_found_handler'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/System32/WindowsPowerShell/v1.0/__fish_command_not_found_handler'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/System32/OpenSSH/__fish_command_not_found_handler'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/ProgramData/chocolatey/bin/__fish_command_not_found_handler'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/OpenSSH-Win64/__fish_command_not_found_handler'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/Pandoc/__fish_command_not_found_handler'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/Python/Python38/Scripts/__fish_command_not_found_handler'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/Python/Python38/__fish_command_not_found_handler'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/.cargo/bin/__fish_command_not_found_handler'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/OCamlPro/OCPWin/wrappers/__fish_command_not_found_handler'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/OCamlPro/OCPWin/4.01.0+ocp1-full-mingw64-20160113/bin/__fish_command_not_found_handler'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Ruby26-x64/bin/__fish_command_not_found_handler'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/Python/Python37/Scripts/__fish_command_not_found_handler'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/Python/Python37/__fish_command_not_found_handler'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Microsoft/WindowsApps/__fish_command_not_found_handler'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Roaming/npm/__fish_command_not_found_handler'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Yarn/bin/__fish_command_not_found_handler'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/JetBrains/WebStorm 2018.3/bin/__fish_command_not_found_handler'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/MinGW/bin/__fish_command_not_found_handler'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/MiKTeX 2.9/miktex/bin/x64/__fish_command_not_found_handler'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Roaming/Python/Python37/Scripts/__fish_command_not_found_handler'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/hyper/app-3.0.2/resources/bin/__fish_command_not_found_handler'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/MinGW/msys/1.0/bin/__fish_command_not_found_handler'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Keybase/__fish_command_not_found_handler'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/radare2/__fish_command_not_found_handler'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/OCaml64/bin/__fish_command_not_found_handler'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/OCaml64/__fish_command_not_found_handler'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/JetBrains/PyCharm 2019.3/bin/__fish_command_not_found_handler'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files (x86)/GitHub CLI/__fish_command_not_found_handler'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/iCLS/bobthefish_colors'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/iCLS/bobthefish_colors'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/System32/bobthefish_colors'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/bobthefish_colors'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/System32/wbem/bobthefish_colors'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/System32/WindowsPowerShell/v1.0/bobthefish_colors'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/System32/OpenSSH/bobthefish_colors'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/DAL/bobthefish_colors'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/DAL/bobthefish_colors'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/IPT/bobthefish_colors'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/IPT/bobthefish_colors'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common/bobthefish_colors'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/Git/cmd/bobthefish_colors'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/nodejs/bobthefish_colors'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files (x86)/Yarn/bin/bobthefish_colors'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/NVIDIA Corporation/NVIDIA NvDLISR/bobthefish_colors'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files (x86)/GnuPG/bin/bobthefish_colors'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/System32/bobthefish_colors'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/bobthefish_colors'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/System32/wbem/bobthefish_colors'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/System32/WindowsPowerShell/v1.0/bobthefish_colors'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/System32/OpenSSH/bobthefish_colors'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/ProgramData/chocolatey/bin/bobthefish_colors'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/OpenSSH-Win64/bobthefish_colors'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/Pandoc/bobthefish_colors'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/Python/Python38/Scripts/bobthefish_colors'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/Python/Python38/bobthefish_colors'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/.cargo/bin/bobthefish_colors'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/OCamlPro/OCPWin/wrappers/bobthefish_colors'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/OCamlPro/OCPWin/4.01.0+ocp1-full-mingw64-20160113/bin/bobthefish_colors'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Ruby26-x64/bin/bobthefish_colors'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/Python/Python37/Scripts/bobthefish_colors'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/Python/Python37/bobthefish_colors'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Microsoft/WindowsApps/bobthefish_colors'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Roaming/npm/bobthefish_colors'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Yarn/bin/bobthefish_colors'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/JetBrains/WebStorm 2018.3/bin/bobthefish_colors'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/MinGW/bin/bobthefish_colors'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/MiKTeX 2.9/miktex/bin/x64/bobthefish_colors'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Roaming/Python/Python37/Scripts/bobthefish_colors'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/hyper/app-3.0.2/resources/bin/bobthefish_colors'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/MinGW/msys/1.0/bin/bobthefish_colors'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Keybase/bobthefish_colors'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/radare2/bobthefish_colors'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/OCaml64/bin/bobthefish_colors'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/OCaml64/bobthefish_colors'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/JetBrains/PyCharm 2019.3/bin/bobthefish_colors'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files (x86)/GitHub CLI/bobthefish_colors'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/iCLS/rvm-prompt'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/iCLS/rvm-prompt'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/System32/rvm-prompt'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/rvm-prompt'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/System32/wbem/rvm-prompt'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/System32/WindowsPowerShell/v1.0/rvm-prompt'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/System32/OpenSSH/rvm-prompt'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/DAL/rvm-prompt'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/DAL/rvm-prompt'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/IPT/rvm-prompt'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/IPT/rvm-prompt'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common/rvm-prompt'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/Git/cmd/rvm-prompt'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/nodejs/rvm-prompt'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files (x86)/Yarn/bin/rvm-prompt'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/NVIDIA Corporation/NVIDIA NvDLISR/rvm-prompt'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files (x86)/GnuPG/bin/rvm-prompt'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/System32/rvm-prompt'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/rvm-prompt'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/System32/wbem/rvm-prompt'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/System32/WindowsPowerShell/v1.0/rvm-prompt'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/System32/OpenSSH/rvm-prompt'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/ProgramData/chocolatey/bin/rvm-prompt'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/OpenSSH-Win64/rvm-prompt'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/Pandoc/rvm-prompt'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/Python/Python38/Scripts/rvm-prompt'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/Python/Python38/rvm-prompt'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/.cargo/bin/rvm-prompt'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/OCamlPro/OCPWin/wrappers/rvm-prompt'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/OCamlPro/OCPWin/4.01.0+ocp1-full-mingw64-20160113/bin/rvm-prompt'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Ruby26-x64/bin/rvm-prompt'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/Python/Python37/Scripts/rvm-prompt'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/Python/Python37/rvm-prompt'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Microsoft/WindowsApps/rvm-prompt'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Roaming/npm/rvm-prompt'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Yarn/bin/rvm-prompt'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/JetBrains/WebStorm 2018.3/bin/rvm-prompt'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/MinGW/bin/rvm-prompt'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/MiKTeX 2.9/miktex/bin/x64/rvm-prompt'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Roaming/Python/Python37/Scripts/rvm-prompt'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/hyper/app-3.0.2/resources/bin/rvm-prompt'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/MinGW/msys/1.0/bin/rvm-prompt'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Keybase/rvm-prompt'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/radare2/rvm-prompt'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/OCaml64/bin/rvm-prompt'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/OCaml64/rvm-prompt'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/JetBrains/PyCharm 2019.3/bin/rvm-prompt'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files (x86)/GitHub CLI/rvm-prompt'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/iCLS/rbenv'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/iCLS/rbenv'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/System32/rbenv'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/rbenv'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/System32/wbem/rbenv'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/System32/WindowsPowerShell/v1.0/rbenv'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/System32/OpenSSH/rbenv'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/DAL/rbenv'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/DAL/rbenv'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/IPT/rbenv'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/IPT/rbenv'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common/rbenv'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/Git/cmd/rbenv'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/nodejs/rbenv'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files (x86)/Yarn/bin/rbenv'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/NVIDIA Corporation/NVIDIA NvDLISR/rbenv'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files (x86)/GnuPG/bin/rbenv'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/System32/rbenv'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/rbenv'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/System32/wbem/rbenv'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/System32/WindowsPowerShell/v1.0/rbenv'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/System32/OpenSSH/rbenv'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/ProgramData/chocolatey/bin/rbenv'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/OpenSSH-Win64/rbenv'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/Pandoc/rbenv'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/Python/Python38/Scripts/rbenv'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/Python/Python38/rbenv'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/.cargo/bin/rbenv'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/OCamlPro/OCPWin/wrappers/rbenv'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/OCamlPro/OCPWin/4.01.0+ocp1-full-mingw64-20160113/bin/rbenv'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Ruby26-x64/bin/rbenv'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/Python/Python37/Scripts/rbenv'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/Python/Python37/rbenv'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Microsoft/WindowsApps/rbenv'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Roaming/npm/rbenv'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Yarn/bin/rbenv'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/JetBrains/WebStorm 2018.3/bin/rbenv'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/MinGW/bin/rbenv'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/MiKTeX 2.9/miktex/bin/x64/rbenv'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Roaming/Python/Python37/Scripts/rbenv'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/hyper/app-3.0.2/resources/bin/rbenv'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/MinGW/msys/1.0/bin/rbenv'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Keybase/rbenv'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/radare2/rbenv'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/OCaml64/bin/rbenv'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/OCaml64/rbenv'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/JetBrains/PyCharm 2019.3/bin/rbenv'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files (x86)/GitHub CLI/rbenv'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/iCLS/chruby'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/iCLS/chruby'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/System32/chruby'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/chruby'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/System32/wbem/chruby'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/System32/WindowsPowerShell/v1.0/chruby'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/System32/OpenSSH/chruby'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/DAL/chruby'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/DAL/chruby'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/IPT/chruby'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/IPT/chruby'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common/chruby'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/Git/cmd/chruby'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/nodejs/chruby'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files (x86)/Yarn/bin/chruby'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/NVIDIA Corporation/NVIDIA NvDLISR/chruby'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files (x86)/GnuPG/bin/chruby'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/System32/chruby'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/chruby'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/System32/wbem/chruby'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/System32/WindowsPowerShell/v1.0/chruby'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/System32/OpenSSH/chruby'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/ProgramData/chocolatey/bin/chruby'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/OpenSSH-Win64/chruby'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/Pandoc/chruby'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/Python/Python38/Scripts/chruby'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/Python/Python38/chruby'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/.cargo/bin/chruby'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/OCamlPro/OCPWin/wrappers/chruby'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/OCamlPro/OCPWin/4.01.0+ocp1-full-mingw64-20160113/bin/chruby'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Ruby26-x64/bin/chruby'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/Python/Python37/Scripts/chruby'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/Python/Python37/chruby'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Microsoft/WindowsApps/chruby'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Roaming/npm/chruby'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Yarn/bin/chruby'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/JetBrains/WebStorm 2018.3/bin/chruby'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/MinGW/bin/chruby'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/MiKTeX 2.9/miktex/bin/x64/chruby'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Roaming/Python/Python37/Scripts/chruby'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/hyper/app-3.0.2/resources/bin/chruby'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/MinGW/msys/1.0/bin/chruby'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Keybase/chruby'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/radare2/chruby'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/OCaml64/bin/chruby'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/OCaml64/chruby'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/JetBrains/PyCharm 2019.3/bin/chruby'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files (x86)/GitHub CLI/chruby'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/iCLS/asdf'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/iCLS/asdf'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/System32/asdf'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/asdf'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/System32/wbem/asdf'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/System32/WindowsPowerShell/v1.0/asdf'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/System32/OpenSSH/asdf'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/DAL/asdf'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/DAL/asdf'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/IPT/asdf'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/IPT/asdf'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common/asdf'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/Git/cmd/asdf'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/nodejs/asdf'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files (x86)/Yarn/bin/asdf'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/NVIDIA Corporation/NVIDIA NvDLISR/asdf'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files (x86)/GnuPG/bin/asdf'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/System32/asdf'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/asdf'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/System32/wbem/asdf'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/System32/WindowsPowerShell/v1.0/asdf'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Windows/System32/OpenSSH/asdf'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/ProgramData/chocolatey/bin/asdf'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/OpenSSH-Win64/asdf'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/Pandoc/asdf'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/Python/Python38/Scripts/asdf'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/Python/Python38/asdf'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/.cargo/bin/asdf'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/OCamlPro/OCPWin/wrappers/asdf'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/OCamlPro/OCPWin/4.01.0+ocp1-full-mingw64-20160113/bin/asdf'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Ruby26-x64/bin/asdf'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/Python/Python37/Scripts/asdf'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/Python/Python37/asdf'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Microsoft/WindowsApps/asdf'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Roaming/npm/asdf'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Yarn/bin/asdf'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/JetBrains/WebStorm 2018.3/bin/asdf'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/MinGW/bin/asdf'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Programs/MiKTeX 2.9/miktex/bin/x64/asdf'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Roaming/Python/Python37/Scripts/asdf'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/hyper/app-3.0.2/resources/bin/asdf'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/MinGW/msys/1.0/bin/asdf'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Users/aadibajpai/AppData/Local/Keybase/asdf'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/radare2/asdf'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/OCaml64/bin/asdf'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/OCaml64/asdf'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files/JetBrains/PyCharm 2019.3/bin/asdf'
access: Input/output error
<W> fish: Error while searching for command '/mnt/c/Program Files (x86)/GitHub CLI/asdf'
access: Input/output error

I realize this is being tracked in #4104 but since the fix was here I was wondering if there’s a temporary fix for this too, hopefully 😶

@aadibajpai Any update I have the same Issue Just upgraded to WSL2 and I have this with fish the same output as you

You mentioned the workaround isn’t working, please make sure to run the window with administrator privileges and the mklink command is only in cmd (You can see I ran cmd from PowerShell, hopefully it’s not too confusing!)

Yup this is a duplicate of #4104 , it’s due to the link in the Java folder.

Here’s a temporary workaround (though I don’t know how stable it will be since I’m sure that java_target folder will often change)

image

We’ll track your issue on #4104! Thanks for filing it, I’ll close this one out as a duplicate.