When I do an update with Ubuntu 20.04 on WSL I get the following message:
/sbin/ldconfig.real: /usr/lib/wsl/lib/libcuda.so.1 is not a symbolic linkHow can I fix this?
1 Answer
I have the same issue, but to be honest, I haven't tried this suggested fix yet. I've just been living with it for now. It's a harmless message, really.
You can find the open WSL issue here for more reading, but to summarize:
As one of the WSL developers says in this comment:
mucking your System32 is not recommended for lots of good reasons
Which I agree with, and is mainly the reason I haven't tried the recommended fix below.
Several of the suggested fixes there cause issues with CUDA development, so I haven't tried those either.
The primary fix seems to be to delete
libcuda.soandlibcuda.so.1fromC:\Windows\System32\lxss\libas an Administrator in Windows (not from WSL).Then, in WSL:
sudo ln -sr /mnt/c/Windows/System32/lxss/lib/libcuda.so.1.1 /mnt/c/Windows/System32/lxss/lib/libcuda.so.1 sudo ln -sr /mnt/c/Windows/System32/lxss/lib/libcuda.so.1.1 /mnt/c/Windows/System32/lxss/lib/libcuda.soI've made some slight (untested) changes to the commands above to (a) use
sudo(which is required), and (b) use fully-qualified paths and theln -roption. This just means you don't need tocdto the directory ahead of time. If there are any problems with the version I provided, fall back to the instructions in that post.