Rustup update, failed to install component 'cargo-x86_64-unknown-linux-gnu', detected conflict: '"share/man/man1/cargo-update.1"'

Here is a Gist of the output: What’s the recommended way to remove all cargo and Rust files in order to get rustup update to work? There are also a few other warnings and errors: warning: during uninstall component cargo-x86_64-unknown-linux-gnu was not found and error: could not rename component directory from '/home/james/.rustup/tmp/9qsrml14otudsvt9_dir/bk' to '/home/james/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu'.

Fixed via IRC, rm -rf ~/.rustup, then reinstall, then there were no errors with rustup update.

1 Like