I’m following these instructions for getting nightly Rust & Cargo running on an ARM device (Odroid U3) which is at a remote location - so I’m doing all this over ssh. I mention that because I have not come across this issue before, setting up my local machine. The ARM device is running Ubuntu 14.04.
I reached the point where I have Cargo and Rust installed and they seem happy:
$ cargo --version cargo 0.6.0-nightly (e1ed995 2015-10-22) $ rustc --version rustc 1.5.0-dev (72ed590f8 2015-10-26)
I can “git clone” a known good project, but when I try a build I’m getting this error:
$ cargo build --verbose Updating registry `https://github.com/rust-lang/crates.io-index` Unable to update registry https://github.com/rust-lang/crates.io-index Caused by: Permission denied (os error 13)
(Cargo update doesn’t work because there is no cargo.lock yet)
I’ve searched online but can’t find anything relevant. There are some similar looking symptoms that seem (they’re in Chinese!) to be about being behind a proxy, but the remote machine isn’t behind a proxy. It is behind a router, and I have port forwarding in place to allow me to ssh to it, but since the machine is initiating requests to github itself, I don’t think it being behind a router or firewall should matter.
Can anyone suggest what might be going wrong here?