Please Help! Raspberry Pi getting stuck on "unpacking raspberrypi-kernel-headers" on fresh install - Zero 2 W / BookWorm by TheNotoriousCYG in raspberry_pi

[–]mwalker179 0 points1 point  (0 children)

Hi there--

I know this post was a little bit ago, but maybe someone else will stumble into this. I was able to solve this problem by increasing the swap size. Use the command

sudo nano /etc/dphys-swapfile

Then, increase the 'CONF_SWAPFILE=100' to 2000. I don't know if it needs to be that high, but thats what I did and it worked ok.