[GH-ISSUE #139] Installing du-dust v0.5.4 error: failed to compile du-dust v0.5.4, intermediate artifacts can be found at /tmp/cargo-installux8cxe Caused by: failed to parse lock file at: /home/grad3/jalal/.cargo/registry/src/github.com-1ecc62… #59

Closed
opened 2026-06-08 11:25:29 +03:00 by zhus · 10 comments
Owner

Originally created by @monacv on GitHub (Mar 24, 2021).
Original GitHub issue: https://github.com/bootandy/dust/issues/139

Do you know how I could fix this in CentOS?

[jalal@goku dust-0.5.4]$ cargo install du-dust
    Updating crates.io index
  Downloaded du-dust v0.5.4
  Downloaded 1 crates (86.4 KB) in 0.40s
  Installing du-dust v0.5.4
error: failed to compile `du-dust v0.5.4`, intermediate artifacts can be found at `/tmp/cargo-installux8cxe`

Caused by:
  failed to parse lock file at: /home/grad3/jalal/.cargo/registry/src/github.com-1ecc6299db9ec823/du-dust-0.5.4/Cargo.lock

Caused by:
  invalid serialized PackageId for key `package.dependencies`
[jalal@goku dust-0.5.4]$ ls
total 108K
drwxr-xr-x.  6 jalal cs-grad 4.0K Jan 16 10:12 tests
drwxr-xr-x.  3 jalal cs-grad 4.0K Jan 16 10:12 src
-rw-r--r--.  1 jalal cs-grad 2.3K Jan 16 10:12 README.md
drwxr-xr-x.  2 jalal cs-grad 4.0K Jan 16 10:12 media
-rw-r--r--.  1 jalal cs-grad  12K Jan 16 10:12 LICENSE
-rw-r--r--.  1 jalal cs-grad  155 Jan 16 10:12 .gitignore
drwxr-xr-x.  3 jalal cs-grad 4.0K Jan 16 10:12 .github
drwxr-xr-x.  2 jalal cs-grad 4.0K Jan 16 10:12 ci
-rw-r--r--.  1 jalal cs-grad  951 Jan 16 10:12 Cargo.toml
-rw-r--r--.  1 jalal cs-grad  14K Jan 16 10:12 Cargo.lock
drwx-----x. 68 jalal cs-grad  40K Mar 23 18:52 ..
drwxr-xr-x.  7 jalal cs-grad 4.0K Mar 23 18:52 .

Originally created by @monacv on GitHub (Mar 24, 2021). Original GitHub issue: https://github.com/bootandy/dust/issues/139 Do you know how I could fix this in CentOS? ``` [jalal@goku dust-0.5.4]$ cargo install du-dust Updating crates.io index Downloaded du-dust v0.5.4 Downloaded 1 crates (86.4 KB) in 0.40s Installing du-dust v0.5.4 error: failed to compile `du-dust v0.5.4`, intermediate artifacts can be found at `/tmp/cargo-installux8cxe` Caused by: failed to parse lock file at: /home/grad3/jalal/.cargo/registry/src/github.com-1ecc6299db9ec823/du-dust-0.5.4/Cargo.lock Caused by: invalid serialized PackageId for key `package.dependencies` [jalal@goku dust-0.5.4]$ ls total 108K drwxr-xr-x. 6 jalal cs-grad 4.0K Jan 16 10:12 tests drwxr-xr-x. 3 jalal cs-grad 4.0K Jan 16 10:12 src -rw-r--r--. 1 jalal cs-grad 2.3K Jan 16 10:12 README.md drwxr-xr-x. 2 jalal cs-grad 4.0K Jan 16 10:12 media -rw-r--r--. 1 jalal cs-grad 12K Jan 16 10:12 LICENSE -rw-r--r--. 1 jalal cs-grad 155 Jan 16 10:12 .gitignore drwxr-xr-x. 3 jalal cs-grad 4.0K Jan 16 10:12 .github drwxr-xr-x. 2 jalal cs-grad 4.0K Jan 16 10:12 ci -rw-r--r--. 1 jalal cs-grad 951 Jan 16 10:12 Cargo.toml -rw-r--r--. 1 jalal cs-grad 14K Jan 16 10:12 Cargo.lock drwx-----x. 68 jalal cs-grad 40K Mar 23 18:52 .. drwxr-xr-x. 7 jalal cs-grad 4.0K Mar 23 18:52 . ```
zhus closed this issue 2026-06-08 11:25:29 +03:00
Author
Owner

@lespea commented on GitHub (Mar 24, 2021):

How old is your version of rust? The format changed a while back https://github.com/rust-lang/cargo/commit/366ae3f7bae7e84f6d0d2f9e31f19b0e19c84f4b

<!-- gh-comment-id:805340678 --> @lespea commented on GitHub (Mar 24, 2021): How old is your version of rust? The format changed a while back https://github.com/rust-lang/cargo/commit/366ae3f7bae7e84f6d0d2f9e31f19b0e19c84f4b
Author
Owner

@lespea commented on GitHub (Mar 24, 2021):

You might be better off just using rustup yourself vs relying on your OS to keep rust up-to-date

<!-- gh-comment-id:805342695 --> @lespea commented on GitHub (Mar 24, 2021): You might be better off just using [rustup](https://rustup.rs/) yourself vs relying on your OS to keep rust up-to-date
Author
Owner

@monacv commented on GitHub (Mar 24, 2021):

@lespea is there a way I could force it to use the space on /scratch3 rather than home?

[jalal@goku scratch3]$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
info: downloading installer

Welcome to Rust!

This will download and install the official compiler for the Rust
programming language, and its package manager, Cargo.

Rustup metadata and toolchains will be installed into the Rustup
home directory, located at:

  /home/grad3/jalal/.rustup

This can be modified with the RUSTUP_HOME environment variable.

The Cargo home directory located at:

  /home/grad3/jalal/.cargo

This can be modified with the CARGO_HOME environment variable.

The cargo, rustc, rustup and other commands will be added to
Cargo's bin directory, located at:

  /home/grad3/jalal/.cargo/bin

This path will then be added to your PATH environment variable by
modifying the profile files located at:

  /home/grad3/jalal/.profile
  /home/grad3/jalal/.bash_profile
  /home/grad3/jalal/.bashrc
  /home/grad3/jalal/.zshenv

You can uninstall at any time with rustup self uninstall and
these changes will be reverted.

Current installation options:


   default host triple: x86_64-unknown-linux-gnu
     default toolchain: stable (default)
               profile: default
  modify PATH variable: yes

1) Proceed with installation (default)
2) Customize installation
3) Cancel installation
>1

info: profile set to 'default'
info: default host triple is x86_64-unknown-linux-gnu
warning: Updating existing toolchain, profile choice will be ignored
info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
info: latest update on 2021-02-11, rust version 1.50.0 (cb75ad5db 2021-02-10)
info: downloading component 'rustc'
 60.3 MiB /  60.3 MiB (100 %)  27.9 MiB/s in  3s ETA:  0s
info: downloading component 'rust-std'
info: downloading component 'cargo'
info: downloading component 'rust-docs'
info: removing previous version of component 'rustc'
info: removing previous version of component 'rust-std'
info: removing previous version of component 'cargo'
info: removing previous version of component 'rust-docs'
info: installing component 'rustc'
info: using up to 500.0 MiB of RAM to unpack components
 60.3 MiB /  60.3 MiB (100 %)  11.4 MiB/s in  7s ETA:  0s
info: installing component 'rust-std'
 24.5 MiB /  24.5 MiB (100 %)   8.0 MiB/s in  3s ETA:  0s
info: installing component 'cargo'
info: installing component 'rust-docs'
  6.5 MiB /  14.7 MiB ( 44 %) 436.8 KiB/s in 14s ETA: 19s    
info: rolling back changes
error: could not rename component file from '/home/grad3/jalal/.rustup/tmp/uwrbns0eeasa_81w_dir/bk' to '/home/grad3/jalal/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/share'
error: could not rename component file from '/home/grad3/jalal/.rustup/tmp/u0wbr4j_iwt96tp7_dir/bk' to '/home/grad3/jalal/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/share/doc'
error: could not rename component file from '/home/grad3/jalal/.rustup/tmp/f0io2zggdpf6qn_9_dir/bk' to '/home/grad3/jalal/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/share/man'
error: could not rename component file from '/home/grad3/jalal/.rustup/tmp/0bcqno89pl_0kg9a_dir/bk' to '/home/grad3/jalal/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/etc'
error: could not rename component file from '/home/grad3/jalal/.rustup/tmp/w85z5k4nwz3t9jdy_dir/bk' to '/home/grad3/jalal/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/share/zsh'
error: could not rename component file from '/home/grad3/jalal/.rustup/tmp/7r0ogg6hzjtx1vk7_dir/bk' to '/home/grad3/jalal/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu'
error: failed to extract package (perhaps you ran out of disk space?)
error: caused by: Disk quota exceeded (os error 122)
[jalal@goku scratch3]$ 

<!-- gh-comment-id:805346129 --> @monacv commented on GitHub (Mar 24, 2021): @lespea is there a way I could force it to use the space on /scratch3 rather than home? ``` [jalal@goku scratch3]$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh info: downloading installer Welcome to Rust! This will download and install the official compiler for the Rust programming language, and its package manager, Cargo. Rustup metadata and toolchains will be installed into the Rustup home directory, located at: /home/grad3/jalal/.rustup This can be modified with the RUSTUP_HOME environment variable. The Cargo home directory located at: /home/grad3/jalal/.cargo This can be modified with the CARGO_HOME environment variable. The cargo, rustc, rustup and other commands will be added to Cargo's bin directory, located at: /home/grad3/jalal/.cargo/bin This path will then be added to your PATH environment variable by modifying the profile files located at: /home/grad3/jalal/.profile /home/grad3/jalal/.bash_profile /home/grad3/jalal/.bashrc /home/grad3/jalal/.zshenv You can uninstall at any time with rustup self uninstall and these changes will be reverted. Current installation options: default host triple: x86_64-unknown-linux-gnu default toolchain: stable (default) profile: default modify PATH variable: yes 1) Proceed with installation (default) 2) Customize installation 3) Cancel installation >1 info: profile set to 'default' info: default host triple is x86_64-unknown-linux-gnu warning: Updating existing toolchain, profile choice will be ignored info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu' info: latest update on 2021-02-11, rust version 1.50.0 (cb75ad5db 2021-02-10) info: downloading component 'rustc' 60.3 MiB / 60.3 MiB (100 %) 27.9 MiB/s in 3s ETA: 0s info: downloading component 'rust-std' info: downloading component 'cargo' info: downloading component 'rust-docs' info: removing previous version of component 'rustc' info: removing previous version of component 'rust-std' info: removing previous version of component 'cargo' info: removing previous version of component 'rust-docs' info: installing component 'rustc' info: using up to 500.0 MiB of RAM to unpack components 60.3 MiB / 60.3 MiB (100 %) 11.4 MiB/s in 7s ETA: 0s info: installing component 'rust-std' 24.5 MiB / 24.5 MiB (100 %) 8.0 MiB/s in 3s ETA: 0s info: installing component 'cargo' info: installing component 'rust-docs' 6.5 MiB / 14.7 MiB ( 44 %) 436.8 KiB/s in 14s ETA: 19s info: rolling back changes error: could not rename component file from '/home/grad3/jalal/.rustup/tmp/uwrbns0eeasa_81w_dir/bk' to '/home/grad3/jalal/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/share' error: could not rename component file from '/home/grad3/jalal/.rustup/tmp/u0wbr4j_iwt96tp7_dir/bk' to '/home/grad3/jalal/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/share/doc' error: could not rename component file from '/home/grad3/jalal/.rustup/tmp/f0io2zggdpf6qn_9_dir/bk' to '/home/grad3/jalal/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/share/man' error: could not rename component file from '/home/grad3/jalal/.rustup/tmp/0bcqno89pl_0kg9a_dir/bk' to '/home/grad3/jalal/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/etc' error: could not rename component file from '/home/grad3/jalal/.rustup/tmp/w85z5k4nwz3t9jdy_dir/bk' to '/home/grad3/jalal/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/share/zsh' error: could not rename component file from '/home/grad3/jalal/.rustup/tmp/7r0ogg6hzjtx1vk7_dir/bk' to '/home/grad3/jalal/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu' error: failed to extract package (perhaps you ran out of disk space?) error: caused by: Disk quota exceeded (os error 122) [jalal@goku scratch3]$ ```
Author
Owner

@lespea commented on GitHub (Mar 24, 2021):

Seems you can use environment variables: https://rust-lang.github.io/rustup/environment-variables.html && https://github.com/rust-lang/rustup/issues/618#issuecomment-570951132

<!-- gh-comment-id:805851886 --> @lespea commented on GitHub (Mar 24, 2021): Seems you can use environment variables: https://rust-lang.github.io/rustup/environment-variables.html && https://github.com/rust-lang/rustup/issues/618#issuecomment-570951132
Author
Owner

@bootandy commented on GitHub (Mar 27, 2021):

Thanks for the help @lespea .

Is this resolved now @monacv ?

I'd try upgrading your version of rust as @lespea suggested or try cloning an older version of dust and seeing if that installs.

<!-- gh-comment-id:808702711 --> @bootandy commented on GitHub (Mar 27, 2021): Thanks for the help @lespea . Is this resolved now @monacv ? I'd try upgrading your version of rust as @lespea suggested or try cloning an older version of dust and seeing if that installs.
Author
Owner

@monacv commented on GitHub (Mar 31, 2021):

I really don't know how to apply the comments by @lespea since I have never coded in rust and this is beyond scope of my expertise.

<!-- gh-comment-id:810728040 --> @monacv commented on GitHub (Mar 31, 2021): I really don't know how to apply the comments by @lespea since I have never coded in rust and this is beyond scope of my expertise.
Author
Owner

@lespea commented on GitHub (Mar 31, 2021):

The second link should have the steps to install rust using rustup in a non-traditional directory (you had space issues in your home directory I believe). Once you have that setup then you just need to ensure that wherever you installed rust to is in your path and you should be home free.

<!-- gh-comment-id:811212391 --> @lespea commented on GitHub (Mar 31, 2021): The second link should have the steps to install rust using rustup in a non-traditional directory (you had space issues in your home directory I believe). Once you have that setup then you just need to ensure that wherever you installed rust to is in your path and you should be home free.
Author
Owner

@bootandy commented on GitHub (Jun 8, 2021):

I'm not sure I can help much here. Closing.

<!-- gh-comment-id:856636904 --> @bootandy commented on GitHub (Jun 8, 2021): I'm not sure I can help much here. Closing.
Author
Owner

@monacv commented on GitHub (Jun 9, 2021):

@lespea
so I followed the second link but got this error. Could you please help?

[jalal@goku ~]$ export CARGO_HOME=/scratch3/.cargo
[jalal@goku ~]$ export RUSTUP_HOME=/scratch3/.rust
[jalal@goku ~]$ export PATH=$PATH:/scratch3/.cargo/bin
[jalal@goku ~]$ PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin::/scratch3/.cargo/bin"
[jalal@goku ~]$ CARGO_HOME="/scratch3/.cargo"
[jalal@goku ~]$ RUSTUP_HOME="/scratch3/.rust"
[jalal@goku ~]$ curl https://sh.rustup.rs -sSf | sh
info: downloading installer
Warning: Not enforcing strong cipher suites for TLS, this is potentially less secure

Welcome to Rust!

This will download and install the official compiler for the Rust
programming language, and its package manager, Cargo.

Rustup metadata and toolchains will be installed into the Rustup
home directory, located at:

  /scratch3/.rust

This can be modified with the RUSTUP_HOME environment variable.

The Cargo home directory located at:

  /scratch3/.cargo

This can be modified with the CARGO_HOME environment variable.

The cargo, rustc, rustup and other commands will be added to
Cargo's bin directory, located at:

  /scratch3/.cargo/bin

This path will then be added to your PATH environment variable by
modifying the profile files located at:

  /home/grad3/jalal/.profile
  /home/grad3/jalal/.bash_profile
  /home/grad3/jalal/.bashrc
  /home/grad3/jalal/.zshenv

You can uninstall at any time with rustup self uninstall and
these changes will be reverted.

Current installation options:


   default host triple: x86_64-unknown-linux-gnu
     default toolchain: stable (default)
               profile: default
  modify PATH variable: yes

1) Proceed with installation (default)
2) Customize installation
3) Cancel installation
>1

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 2021-05-10, rust version 1.52.1 (9bc8c42bb 2021-05-09)
info: downloading component 'cargo'
  6.0 MiB /   6.0 MiB (100 %)   1.7 MiB/s in  3s ETA:  0s
info: downloading component 'clippy'
info: downloading component 'rust-docs'
info: downloading component 'rust-std'
info: downloading component 'rustc'
info: downloading component 'rustfmt'
info: installing component 'cargo'
info: installing component 'clippy'
info: installing component 'rust-docs'
 15.3 MiB /  15.3 MiB (100 %)   6.1 MiB/s in  1s ETA:  0s
info: installing component 'rust-std'
 24.1 MiB /  24.1 MiB (100 %)  12.2 MiB/s in  3s ETA:  0s
info: installing component 'rustc'
 48.4 MiB /  48.4 MiB (100 %)  14.6 MiB/s in  3s ETA:  0s
info: installing component 'rustfmt'
info: default toolchain set to 'stable-x86_64-unknown-linux-gnu'

  stable-x86_64-unknown-linux-gnu installed - rustc 1.52.1 (9bc8c42bb 2021-05-09)


Rust is installed now. Great!

To get started you may need to restart your current shell.
This would reload your PATH environment variable to include
Cargo's bin directory (/scratch3/.cargo/bin).

To configure your current shell, run:
source /scratch3/.cargo/env
[jalal@goku ~]$ source /scratch3/.cargo/env
[jalal@goku ~]$ dust .
dust: /usr/lib/libc.so.6: version `GLIBC_2.18' not found (required by dust)

<!-- gh-comment-id:857432512 --> @monacv commented on GitHub (Jun 9, 2021): @lespea so I followed the second link but got this error. Could you please help? ``` [jalal@goku ~]$ export CARGO_HOME=/scratch3/.cargo [jalal@goku ~]$ export RUSTUP_HOME=/scratch3/.rust [jalal@goku ~]$ export PATH=$PATH:/scratch3/.cargo/bin [jalal@goku ~]$ PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin::/scratch3/.cargo/bin" [jalal@goku ~]$ CARGO_HOME="/scratch3/.cargo" [jalal@goku ~]$ RUSTUP_HOME="/scratch3/.rust" [jalal@goku ~]$ curl https://sh.rustup.rs -sSf | sh info: downloading installer Warning: Not enforcing strong cipher suites for TLS, this is potentially less secure Welcome to Rust! This will download and install the official compiler for the Rust programming language, and its package manager, Cargo. Rustup metadata and toolchains will be installed into the Rustup home directory, located at: /scratch3/.rust This can be modified with the RUSTUP_HOME environment variable. The Cargo home directory located at: /scratch3/.cargo This can be modified with the CARGO_HOME environment variable. The cargo, rustc, rustup and other commands will be added to Cargo's bin directory, located at: /scratch3/.cargo/bin This path will then be added to your PATH environment variable by modifying the profile files located at: /home/grad3/jalal/.profile /home/grad3/jalal/.bash_profile /home/grad3/jalal/.bashrc /home/grad3/jalal/.zshenv You can uninstall at any time with rustup self uninstall and these changes will be reverted. Current installation options: default host triple: x86_64-unknown-linux-gnu default toolchain: stable (default) profile: default modify PATH variable: yes 1) Proceed with installation (default) 2) Customize installation 3) Cancel installation >1 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 2021-05-10, rust version 1.52.1 (9bc8c42bb 2021-05-09) info: downloading component 'cargo' 6.0 MiB / 6.0 MiB (100 %) 1.7 MiB/s in 3s ETA: 0s info: downloading component 'clippy' info: downloading component 'rust-docs' info: downloading component 'rust-std' info: downloading component 'rustc' info: downloading component 'rustfmt' info: installing component 'cargo' info: installing component 'clippy' info: installing component 'rust-docs' 15.3 MiB / 15.3 MiB (100 %) 6.1 MiB/s in 1s ETA: 0s info: installing component 'rust-std' 24.1 MiB / 24.1 MiB (100 %) 12.2 MiB/s in 3s ETA: 0s info: installing component 'rustc' 48.4 MiB / 48.4 MiB (100 %) 14.6 MiB/s in 3s ETA: 0s info: installing component 'rustfmt' info: default toolchain set to 'stable-x86_64-unknown-linux-gnu' stable-x86_64-unknown-linux-gnu installed - rustc 1.52.1 (9bc8c42bb 2021-05-09) Rust is installed now. Great! To get started you may need to restart your current shell. This would reload your PATH environment variable to include Cargo's bin directory (/scratch3/.cargo/bin). To configure your current shell, run: source /scratch3/.cargo/env [jalal@goku ~]$ source /scratch3/.cargo/env [jalal@goku ~]$ dust . dust: /usr/lib/libc.so.6: version `GLIBC_2.18' not found (required by dust) ```
Author
Owner

@lespea commented on GitHub (Jun 9, 2021):

It looks like you didn't compile dust after you got rust installed? Were you just running the binary pulled from the github release page? Make sure you still sourced the env file in your current shell (you'll probably want to put this in your bashrc so it's always run), then run cargo install dust and remove whatever version you downloaded, and it should work then.

<!-- gh-comment-id:857792000 --> @lespea commented on GitHub (Jun 9, 2021): It looks like you didn't compile dust after you got rust installed? Were you just running the binary pulled from the github release page? Make sure you still sourced the env file in your current shell (you'll probably want to put this in your bashrc so it's always run), then run `cargo install dust` and remove whatever version you downloaded, and it should work then.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bootandy/archived-dust#59