这两天我的 WSL2
不小心被 vscode 直接删掉了,重装后一直有问题,要不然是直接弹出 灾难性错误
,要不然是侥幸装好后无法安装 conda,弹如input/output error
等错误。尝试了各种措施均无法成功解决。是不是只能重装了……
安装时弹出提示如下:
WARNING conda.gateways.disk.permissions:make_writable(41): Error making path writable: /home/ziyuliu258/anaconda3/.condatmp/294f788a-2999-486b-a323-d929e3aee35a
OSError(5, 'Input/output error')
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(182): Could not remove or rename /home/ziyuliu258/anaconda3/.condatmp/294f788a-2999-486b-a323-d929e3aee35a. Please remove this file manually (you may need to reboot to free file handles)
SystemError('attempting to create PyCFunction with class but no METH_METHOD flag')
()
然后直接把 ls
sudo
等命令都搞爆了,疯狂弹 i/o error。
wsl --shutdown 之后我尝试重启执行sudo rm -rf anaconda3
命令,结果弹出如上错误:
是不是只能重装系统了?还是说 io error 连重装也无法战胜,要换硬盘?