When I run rustup update I am encountering a phenomenon where the OS freezes

I am trying to set up rust on the following OS on a Raspberry Pi3b

I have Raspberry Pi 3b x 2, 4 and 5, and the Rust setup completed without any problems on the 3b just after creating a new microSD, but after upgrading to 12 from a previously set up OS (Debian 11), when I run rustup update I am encountering a phenomenon where the OS freezes.

Therefore, I have tried to set up Rust again after completely deleting Rust once, but it always freezes at the last log process in the following log.

Is there a solution to this problem?

pi@mayurin:~ $ neofetch
       _,met$$$$$gg.          pi@mayurin
    ,g$$$$$$$$$$$$$$$P.       ----------
  ,g$$P"     """Y$$.".        OS: Debian GNU/Linux 12 (bookworm) aarch64
 ,$$P'              `$$$.     Host: Raspberry Pi 3 Model B Rev 1.2
',$$P       ,ggs.     `$$b:   Kernel: 6.6.37-v8+
`d$$'     ,$P"'   .    $$$    Uptime: 51 mins
 $$P      d$'     ,    $$P    Packages: 1974 (dpkg)
 $$:      $$.   -    ,d$$'    Shell: bash 5.2.15
 $$;      Y$b._   _,d$P'      Resolution: 720x480i
 Y$$.    `.`"Y$$$$P"'         Terminal: /dev/pts/1
 `$$b      "-.__              CPU: (4) @ 1.200GHz
  `Y$$                        Memory: 334MiB / 857MiB
   `Y$$.
     `$$b.
       `Y$$b.
          `"Y$b._
              `"""

pi@mayurin:~ $ cargo uninstall
info: syncing channel updates for 'stable-aarch64-unknown-linux-gnu'
info: latest update on 2024-06-13, rust version 1.79.0 (129f3b996 2024-06-10)
info: syncing channel updates for 'stable-aarch64-unknown-linux-gnu'
info: latest update on 2024-06-13, rust version 1.79.0 (129f3b996 2024-06-10)
info: syncing channel updates for 'stable-aarch64-unknown-linux-gnu'
info: latest update on 2024-06-13, rust version 1.79.0 (129f3b996 2024-06-10)
info: syncing channel updates for 'stable-aarch64-unknown-linux-gnu'
info: latest update on 2024-06-13, rust version 1.79.0 (129f3b996 2024-06-10)
info: syncing channel updates for 'stable-aarch64-unknown-linux-gnu'
info: latest update on 2024-06-13, rust version 1.79.0 (129f3b996 2024-06-10)
info: syncing channel updates for 'stable-aarch64-unknown-linux-gnu'
info: latest update on 2024-06-13, rust version 1.79.0 (129f3b996 2024-06-10)
info: syncing channel updates for 'stable-aarch64-unknown-linux-gnu'
info: latest update on 2024-06-13, rust version 1.79.0 (129f3b996 2024-06-10)
info: syncing channel updates for 'stable-aarch64-unknown-linux-gnu'
info: latest update on 2024-06-13, rust version 1.79.0 (129f3b996 2024-06-10)
info: syncing channel updates for 'stable-aarch64-unknown-linux-gnu'
info: latest update on 2024-06-13, rust version 1.79.0 (129f3b996 2024-06-10)
info: syncing channel updates for 'stable-aarch64-unknown-linux-gnu'
info: latest update on 2024-06-13, rust version 1.79.0 (129f3b996 2024-06-10)
info: syncing channel updates for 'stable-aarch64-unknown-linux-gnu'
info: latest update on 2024-06-13, rust version 1.79.0 (129f3b996 2024-06-10)
info: syncing channel updates for 'stable-aarch64-unknown-linux-gnu'
info: latest update on 2024-06-13, rust version 1.79.0 (129f3b996 2024-06-10)
info: syncing channel updates for 'stable-aarch64-unknown-linux-gnu'
info: latest update on 2024-06-13, rust version 1.79.0 (129f3b996 2024-06-10)
info: syncing channel updates for 'stable-aarch64-unknown-linux-gnu'
info: latest update on 2024-06-13, rust version 1.79.0 (129f3b996 2024-06-10)
info: syncing channel updates for 'stable-aarch64-unknown-linux-gnu'
info: latest update on 2024-06-13, rust version 1.79.0 (129f3b996 2024-06-10)
info: syncing channel updates for 'stable-aarch64-unknown-linux-gnu'
info: latest update on 2024-06-13, rust version 1.79.0 (129f3b996 2024-06-10)
info: syncing channel updates for 'stable-aarch64-unknown-linux-gnu'
info: latest update on 2024-06-13, rust version 1.79.0 (129f3b996 2024-06-10)
info: syncing channel updates for 'stable-aarch64-unknown-linux-gnu'
info: latest update on 2024-06-13, rust version 1.79.0 (129f3b996 2024-06-10)
info: syncing channel updates for 'stable-aarch64-unknown-linux-gnu'
info: latest update on 2024-06-13, rust version 1.79.0 (129f3b996 2024-06-10)
info: syncing channel updates for 'stable-aarch64-unknown-linux-gnu'
info: latest update on 2024-06-13, rust version 1.79.0 (129f3b996 2024-06-10)
info: syncing channel updates for 'stable-aarch64-unknown-linux-gnu'
info: latest update on 2024-06-13, rust version 1.79.0 (129f3b996 2024-06-10)
error: Missing manifest in toolchain 'stable-aarch64-unknown-linux-gnu'
pi@mayurin:~ $ rustup update
info: syncing channel updates for 'stable-aarch64-unknown-linux-gnu'
info: latest update on 2024-06-13, rust version 1.79.0 (129f3b996 2024-06-10)
info: syncing channel updates for 'nightly-aarch64-unknown-linux-gnu'
info: latest update on 2024-07-14, rust version 1.81.0-nightly (fcaa6fdfb 2024-07-13)
info: downloading component 'rustc'
 81.1 MiB /  81.1 MiB (100 %) 759.7 KiB/s in 24s ETA:  0s
info: downloading component 'cargo'
  8.4 MiB /   8.4 MiB (100 %)   2.7 MiB/s in  4s ETA:  0s
info: downloading component 'rust-std'
 28.4 MiB /  28.4 MiB (100 %)   9.0 MiB/s in  7s ETA:  0s
info: downloading component 'rust-docs'
 15.8 MiB /  15.8 MiB (100 %)   5.4 MiB/s in  7s ETA:  0s
info: downloading component 'rustfmt'
  2.4 MiB /   2.4 MiB (100 %) 755.4 KiB/s in  3s ETA:  0s
info: downloading component 'clippy'
info: removing previous version of component 'rustc'
warning: during uninstall component rustc was not found
info: removing previous version of component 'cargo'
warning: during uninstall component cargo was not found
info: removing previous version of component 'rust-std'
warning: during uninstall component rust-std was not found
info: removing previous version of component 'rust-docs'
warning: during uninstall component rust-docs was not found
info: removing previous version of component 'rustfmt'
warning: during uninstall component rustfmt was not found
info: removing previous version of component 'clippy'
warning: during uninstall component clippy was not found
info: installing component 'rustc'
 74.6 MiB /  81.1 MiB ( 92 %)   2.1 MiB/s in  2m 58s ETA:  3s

I suspect the system might just not have enough memory (RAM) for rustup to unpack its components. rustup tries to guess how much ram is available for it, but that estimation can be hard to get right.

Try running with e.g. RUSTUP_UNPACK_RAM=100M rustup update.

~800MB of total system memory is extremely small sized for development environments.

5 Likes

For reference:What does rustup mean by "Defaulting to 500.0 MiB unpack ram"?

1 Like

Thank you for your reply.
The rustup update worked successfully. :smiley:

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.