rustup: rustup nightly install failing

Just getting back into rust and installed rustup. Tried to install the nightly build and encountered the following error:

$ rustup install nightly
info: syncing channel updates for 'nightly-x86_64-unknown-linux-gnu'
info: downloading component 'rustc'
info: downloading component 'rust-std'
info: downloading component 'cargo'
info: downloading component 'rust-docs'
info: installing component 'rustc'
info: rolling back changes
error: failed to extract package
info: caused by: failed to unpack `rustc-nightly-x86_64-unknown-linux-gnu/rustc/share/man/man1/rustdoc.1` into `/home/david/.rustup/tmp/wnj79prt3m8vg6f2_dir/rustc/share/man/man1/rustdoc.1`
info: caused by: No such file or directory (os error 2)

Not sure if this is a nightly issue, a rustup issue, or my own lack of experience with rustup. Currently running Linux Mint 18

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 25
  • Comments: 26 (21 by maintainers)

Commits related to this issue

Most upvoted comments

Damn you @alexcrichton!

The fix is upstream and tomorrow’s nightly should work.

@sharazam One way is to temporarily ‘pin’ your CI to a specific nightly from the archives with e.g. --toolchain=nightly-2017-05-03.

@sharazam If I were you (and to others who get this email), I’d enable the allow_failures setting for nightly Rust on Travis CI. Even their docs recommend this:

https://docs.travis-ci.com/user/languages/rust/#Choosing-the-Rust-version

language: rust
rust:
  - stable
  - beta
  - nightly
matrix:
  allow_failures:
    - rust: nightly

EDIT: forgot to mention ‘nightly Rust’

I hate tar. I prefer to use a single program like 7-zip that fetches by itself the files, compresses them, and later rebuilds the original directory tree and decompresses the files.

@brson needs to be past @bors by 0:00 UTC which gives us ~19 hours from this comment

I can confirm on Ubuntu 17.04. rustup update is broken as well. @davidroeca this is a very recent issue.

Same issue on macOS 11.12