発生事象
- rustup update stableを実行
- cargoを実行
$ cargo
error: the 'cargo' binary, normally provided by the 'cargo' component, is not applicable to the '1.72.0-aarch64-unknown-linux-gnu' toolchain
と実行したがエラーが発生した。
解決方法
googleで検索したら、AIが以下コマンド実行してみてと教えてくれたので、実行。
rustup component remove cargo
rustup component add cargo
これで無事cargoが実行できた。
rustup updateだけだとバイナリの不整合が発生する模様なため、cargoの入れ替えも同時に実施したほうが良さそう。
reference
https://github.com/rust-lang/rustup/issues/2704#issuecomment-815062952
0 件のコメント:
コメントを投稿