Open xylona1900 opened 5 years ago
WSL is a case-insensitive filesystem. There are paths that are differentiated only by case. You have to install the linux installer onto a filesystem that is case sensitive. This probably means you shouldn't install it to /mnt/anything - only stuff in the native system that WSL provides you (~/anaconda3 should work).
You can change case sensitivity for Windows with a setting. That's left as an exercise for the reader if you insist on keeping things on your Windows drives.
There is an excellent blog post about the topic but to summarize if you want to install Anaconda under /mnt you can either mount the drives using case=dir
option in /etc/wsl.conf
:
[automount]
options = "case=dir"
or alternatively use setfattr
from attr
package to set the directory where anaconda3 subdirectory is created case sensitive. The new anaconda3 subdirectory will inherit the property.
$ sudo apt install attr
$ setfattr -n system.wsl_case_sensitive -v 1 /mnt/e/biosf
Get the same error as xylona1900, psuedo-recap follows: $ bash Anaconda3-2019.03-Linux-x86_64.sh
set path (Used suggested path, i.e. "/mnt/c/Users/MyName/anaconda3" here) successful download ... successful download ... ... Exception! (same as xylona1900 posted above)
Trying samuliasmala's remedy, I get the following error/response: $ getfattr -n system.wsl_case_sensitive test
test: system.wsl_case_sensitive: Operation not supported
Note: the "test/" directory could be anything and get vs. set leads to the same error/response
msarahan's answer appears to be winning. Thank you and darn!
Most recent blogs, which will be bringing people down this path: setting-up-a-data-science-environment-using-wsl using-wsl-for-data-science
Thanks in advance for any resolution to this issue.
The system.wsl_case_sensitive
flag comes in Windows 10 insider build 17692, do you have that or newer? If yes then unfortunately I don't know what is the problem.
samuliasmala - Thanks for the follow-up (I meant to follow-up with that but couldn't find this post).
Yes, my issue was that I'm not working with the same build, I have:
Windows 10 Enterprise, v1803, OS Build 17134.765
I've been talking w/ admin since to see about this 17692 insider build; I don't think it will get approved. Thx!!
I had the same error few days ago (i.e., Exception: dst exists). Here is how I resolved it.
Hope it helps.
Ref. https://devblogs.microsoft.com/commandline/per-directory-case-sensitivity-and-wsl/
There is an excellent blog post about the topic but to summarize if you want to install Anaconda under /mnt you can either mount the drives using
case=dir
option in/etc/wsl.conf
:[automount] options = "case=dir"
or alternatively use
setfattr
fromattr
package to set the directory where anaconda3 subdirectory is created case sensitive. The new anaconda3 subdirectory will inherit the property.$ sudo apt install attr $ setfattr -n system.wsl_case_sensitive -v 1 /mnt/e/biosf
Thanks, the answer is very useful. I would suggest that one should create a new dir when using setfattr, in my case when I set the dir where I installed my apps case sensitive, it made my shortcut icons unable to show normally.
I installed anaconda3 on WSL(Ubuntu 18.04 on Windows) with the command line:
Installer runs and aborts with this error:
I don't know how to resolve it, what's wrong with it?