我正在尝试在Windows子系统Linux(WSL)上安装Rust,通过运行官方提供的以下命令(链接):
问题是安装失败,并报告了5个类似的错误:
我已经从Microsoft Store安装了Ubuntu。
curl https://sh.rustup.rs -sSf | sh
问题是安装失败,并报告了5个类似的错误:
屏幕截图来自VS Code。 在Ubuntu应用程序中尝试会导致相同的错误。error: could not rename component file from '/home/thesdev/.rustup/tmp/glf5z1z643ehld0x_dir/bk' to '/home/thesdev/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/share/man'
...
error: failed to install component: 'rust-docs-x86_64-unknown-linux-gnu', detected conflict: '"share/doc/rust/html"'
strace
并查看哪个系统调用失败。 - the8472stat("/home/thesdev/.terminfo", 0x7fffd10d32c0) = -1 ENOENT (No such file or directory)
是问题开始的地方。 - thesdev