如果确定没有多个程序占用,可以删除~/.cargo/.package-cache,然后再执行
使用国内源
/root/.cargo新建配置文件config
[source.crates-io] replace-with = 'tuna' [source.tuna] registry = "https://mirrors.tuna.tsinghua.edu.cn/git/crates.io-index.git"