Potential solution - disable your real-time antivirus protection during install
I had a very similar issue:
info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
info: latest update on 2019-07-04, rust version 1.36.0 (a53f9df32 2019-07-03)
info: downloading component 'rustc'
91.1 MiB / 91.1 MiB (100 %) 777.6 KiB/s in 1m 30s ETA: 0s
info: downloading component 'rust-std'
61.3 MiB / 61.3 MiB (100 %) 269.1 KiB/s in 6m 2s ETA: 0s
info: downloading component 'cargo'
4.6 MiB / 4.6 MiB (100 %) 499.2 KiB/s in 10s ETA: 0s
info: downloading component 'rust-docs'
11.0 MiB / 11.0 MiB (100 %) 128.8 KiB/s in 1m 24s ETA: 0s
info: installing component 'rustc'
91.1 MiB / 91.1 MiB (100 %) 8.7 MiB/s in 9s ETA: 0s
info: installing component 'rust-std'
61.3 MiB / 61.3 MiB (100 %) 11.4 MiB/s in 5s ETA: 0s
info: installing component 'cargo'
info: installing component 'rust-docs'
11.0 MiB / 11.0 MiB (100 %) 537.6 KiB/s in 44s ETA: 0s
info: rolling back changes
error: could not rename component file from '/home/dg/.rustup/tmp/k_625bkits6oph6j_dir/rust-docs/share/doc/rust/html' to '/home/dg/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/share/doc/rust/html'
info: caused by: Permission denied (os error 13)
I read this thread - Installing rust-docs component on Windows 10 is very slow about an issue with the unpacking of the documentation on windows. They mention the anti-virus contributes to issues with speed.
I turned off my anti-virus real-time protection and ran the install script again, this time with no issues.
info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
info: latest update on 2019-07-04, rust version 1.36.0 (a53f9df32 2019-07-03)
info: downloading component 'rustc'
info: downloading component 'rust-std'
info: downloading component 'cargo'
info: downloading component 'rust-docs'
info: installing component 'rustc'
91.1 MiB / 91.1 MiB (100 %) 9.1 MiB/s in 8s ETA: 0s
info: installing component 'rust-std'
61.3 MiB / 61.3 MiB (100 %) 12.2 MiB/s in 5s ETA: 0s
info: installing component 'cargo'
info: installing component 'rust-docs'
11.0 MiB / 11.0 MiB (100 %) 299.2 KiB/s in 27s ETA: 0s
info: default toolchain set to 'stable'
stable installed - rustc 1.36.0 (a53f9df32 2019-07-03)
Rust is installed now. Great!
strace
and see what syscall fails – the8472