LoginSignup
0
1

Raspberry Pi 3 A+ に Bookworm をインストール後 apt upgrade で固まる

Last updated at Posted at 2024-05-11

表題の件は 512 MB しかメモリを持っていない Rapsberry Pi で発生するようで xz がマルチスレッドに対応し apt upgrade 時にメモリが足りなくなるため発生。

この問題に対しては:

  1. export XZ_DEFAULTS="--memlimit-compress=512M" と実行してから apt update を実行する。
  2. /etc/environment に XZ_DEFAULTS="--memlimit-compress=512M" と書いておく。
  3. /etc/dphys-swapfile を編集し swap を 100 MB から 512 MB に増やす (CONF_SWAPSIZE=512)。

などの対策が考えられる。

参考文献:

[雑談]

Bookworm は Raspberry Pi 4 より前の Raspbery Pi には推奨されないという話もあり。特に理由が無ければ bullseye を使い続けるのが良いのかも。bullseye の End of Life は 2026 年 6 月末とまだ余裕があるし。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1