/sbin/ldconfig.real: Can’t link /usr/lib/wsl/lib/libnvoptix_loader.so.1 to libnvoptix.so.1
/sbin/ldconfig.real: /usr/lib/wsl/lib/libcuda.so.1 is not a symbolic link
解决:https://github.com/microsoft/WSL/issues/5548
There is another solution works for me :
-
Open cmd as Administrator and cd into C:\Windows\System32\lxss\lib
-
Delete libcuda.so and libcuda.so.1 (You can also do this in Windows Explorer as well)
-
Run wsl -e /bin/bash in cmd and you should already in /mnt/c/Windows/System32/lxss/lib, now you have permission to create symlink:
ln -s libcuda.so.1.1 libcuda.so.1
ln -s libcuda.so.1.1 libcuda.so
Done.