跟着教程用LxRunOffline迁移WSL2的时候报错:
Indicates that the directory trying to be deleted is not empty.
$ .\LxRunOffline.exe move -n Ubuntu -d D:\wsl\Ubuntu
[ERROR] Couldn't set the case sensitive attribute of the directory "\\?\C:\Users\中文账户名\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\LocalState\".
Reason: Indicates that the directory trying to be deleted is not empty.
出错时使用的是官方的3.5.0版本(LxRunOffline-v3.5.0-msvc.zip),网上的解决办法是使用另一个版本https://ddosolitary-builds.sourceforge.io/LxRunOffline/LxRunOffline-v3.5.0-11-gfdab71a-msvc.zip
但这个链接已经失效了,于是在github上找到了别人保存下来的,链接在此:https://github.com/Andy1208-lee/LxRunOffline/blob/main/LxRunOffline-v3.5.0-11-gfdab71a-msvc.zip
之后按正常迁移操作,亲测有效。