-
ubuntu 20.04 에 rust 설치 실패Unix Linux Like 2020. 5. 1. 20:28
# 9월20일 기준
Ubuntu 20.04.1 LTS 에서 "curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh" 명령어로 rustc 1.46.0 (04488afe3 2020-08-24) 버전의 설치 가능해졌습니다.
wsl에 ubuntu 20.04가 올라와서 기존에 18.04를 지우고 설치했는데
rust를 설치하려고 했더니 설치 과정에서 panic이 발생하네요
info: profile set to 'default' info: default host triple is x86_64-unknown-linux-gnu info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu' info: latest update on 2020-04-23, rust version 1.43.0 (4fb7144ed 2020-04-20) info: downloading component 'cargo' info: downloading component 'clippy' info: downloading component 'rust-docs' info: downloading component 'rust-std' info: downloading component 'rustc' 59.6 MiB / 59.6 MiB (100 %) 42.3 MiB/s in 1s ETA: 0s info: downloading component 'rustfmt' info: installing component 'cargo' thread 'main' panicked at 'assertion failed: `(left == right)` left: `22`, right: `4`', src/libstd/sys/unix/thread.rs:166:21 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace. thread 'main' panicked at 'assertion failed: `(left == right)` left: `22`, right: `4`', src/libstd/sys/unix/thread.rs:166:21 stack backtrace: 0: 0x7f276a6dbc9c - backtrace::backtrace::libunwind::trace::h65597d255cb1398b at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/backtrace/libunwind.rs:88 1: 0x7f276a6dbc9c - backtrace::backtrace::trace_unsynchronized::hd4f479d7150ec4a0 at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/backtrace/mod.rs:66 2: 0x7f276a6dbc9c - std::sys_common::backtrace::_print_fmt::h015072984a2b172c at src/libstd/sys_common/backtrace.rs:77 3: 0x7f276a6dbc9c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h6df05d3335f32194 at src/libstd/sys_common/backtrace.rs:61 4: 0x7f276a3ba81c - core::fmt::write::h1f444f4312eb6c27 at src/libcore/fmt/mod.rs:1028 5: 0x7f276a6db526 - std::io::Write::write_fmt::h8d147888220078ef at src/libstd/io/mod.rs:1412 6: 0x7f276a6db19e - std::sys_common::backtrace::_print::h8a6df0fa81d6af62 at src/libstd/sys_common/backtrace.rs:65 7: 0x7f276a6db19e - std::sys_common::backtrace::print::h6f05b4733407e509 at src/libstd/sys_common/backtrace.rs:50 8: 0x7f276a6db19e - std::panicking::default_hook::{{closure}}::h0d0a23bd02315dd8 at src/libstd/panicking.rs:188 9: 0x7f276a6da943 - std::panicking::default_hook::h8d15a9aecb4efac6 at src/libstd/panicking.rs:205 10: 0x7f276a6da943 - std::panicking::rust_panic_with_hook::hbe174577402a475d at src/libstd/panicking.rs:464 11: 0x7f276a6da4be - std::panicking::continue_panic_fmt::h4d855dad868accf3 at src/libstd/panicking.rs:373 12: 0x7f276a6da450 - std::panicking::begin_panic_fmt::ha0f013e3301a9528 at src/libstd/panicking.rs:328 13: 0x7f276a6aae86 - <rustup::diskio::threaded::Threaded as rustup::diskio::Executor>::join::hf33124263a81d2a4 14: 0x7f276a6aa636 - core::ptr::real_drop_in_place::haa8255139d9471a2 15: 0x7f276a3d5190 - core::ptr::real_drop_in_place::h04c627b98e68397b 16: 0x7f276a69e777 - rustup::dist::component::package::unpack_without_first_dir::h352b57d236248e9a 17: 0x7f276a6762f6 - rustup::dist::manifestation::Manifestation::update::h8c800deec8167b5b 18: 0x7f276a664b8a - rustup::dist::dist::try_update_from_dist_::h113375517e7a85ca 19: 0x7f276a64964c - rustup::toolchain::Toolchain::install::h048b51ffab245b48 20: 0x7f276a646c8c - rustup::toolchain::Toolchain::install_from_dist::h00b9aafeb93470e5 21: 0x7f276a3143ee - rustup_init::self_update::install::h4cee0e396cee456b 22: 0x7f276a325ca2 - rustup_init::run_rustup_inner::ha545371fd2dc19a6 23: 0x7f276a322d64 - rustup_init::main::hba9a23e308c96901 24: 0x7f276a2b7a03 - std::rt::lang_start::{{closure}}::h1778d9ce6385bef5 25: 0x7f276a32c458 - main 26: 0x7f2769ef70b3 - __libc_start_main 27: 0x7f276a2b4029 - <unknown> thread panicked while panicking. aborting. Illegal instruction (core dumped)
아래와 같은 문제들이 있는데
https://github.com/rust-lang/rustup/issues/2245
https://github.com/microsoft/WSL/issues/4898
당분간 18.04를 쓰면서 WSL 이 업데이트되기를 기다려야 할 것 같습니다.
아니면
https://forge.rust-lang.org/infra/other-installation-methods.html
여기서 x86_64-unknown-linux-gnu 버전을 설치하는 것도 하나의 방법입니다.
728x90반응형