From what I understand the bug is that apt update doesn't work on a Pi Zero 2 when many packages are queued at once. While the solution appears to be increasing swap, the root cause may beSince you consider the default 100MB swap space allocation a defect of Raspberry Pi OS, a bug report should be submitted.Since the Pi 2 Zero has 4 cores but only 512MB RAM, it has less RAM per core than even the first Pi B computers that were ever shipped.Setting swap to 2000 fixed my stuck.
As a result it's essential that the swap file be more than the default 100MB. In my opinion, since the Pi Zero 2 is the most recent Pi released before the Pi 5, not having a swap file large enough to perform a system update should be flagged as a defect with Raspberry Pi OS on the Zero 2 and the default increased.
Butch
https://en.wikipedia.org/wiki/APT_(software)A major feature of APT is the way it calls dpkg — it does topological sorting of the list of packages to be installed or removed and calls dpkg in the best possible sequence.
While it seems implausible such topological sorting could run out of memory, Debian does have 59100 packages while the Pi Zero 2 has only 128MB per core.
Statistics: Posted by ejolson — Fri May 10, 2024 5:54 am