在Powershell中执行:
cd C:\Windows\System32\lxss\lib
rm libcuda.so
rm libcuda.so.1
wsl -e /bin/bash
ln -s libcuda.so.1.1 libcuda.so.1
ln -s libcuda.so.1.1 libcuda.so
如果遇到问题:WSL Error-Processing fstab with mount -a failed
# 注销掉有问题的ubantu或者是docker
wsl --unregister docker-desktop-data
最后在wsl中执行:
sudo ldconfig