Rust throwing "os error 13"

error: failed to load source for a dependency on `term`
Caused by:
  Unable to update registry `https://github.com/rust-lang/crates.io-index`
Caused by:
  failed to open: /opt/rust/cargo/registry/index/github.com-1ecc6299db9ec823/.cargo-index-lock
Caused by:
  Permission denied (os error 13)

What is going on here? I listed “term” as a dependency. What’s error 13?

Edit: Lucky me! Someone else already had this error.


Where would I put these lines of code? In a start.sh file or something?