I'm running into quite a frustrating problem with my Raspberry Pi Zero W. When I try to run apt or apt-get, having done nothing on the installation aside from modifying wpa_supplicant and changing the default hostname and password, the Pi will crash at some point during the installation. It doesn't kick me from the SSH session, my terminal will just freeze and the Pi will become unresponsive to ping. The only way to fix it is to remove power and plug it in again.
It doesn't matter whether it's apt-get update
or apt install
, whether it's a big package or just a couple megabytes. Every time I run this command the pi crashes.
I have tried fresh installs of RaspOS on different SD Cards, older versions of RaspOS, the desktop and lite versions, but the problem persists no matter what. I've been using this pi for about a year or so now and I've never run into this sort of issue before.
Does anyone know why this is happening? It's driving me nuts!
Output of df -h
:
Filesystem Size Used Avail Use% Mounted on
/dev/root 15G 1.7G 12G 13% /
devtmpfs 183M 0 183M 0% /dev
tmpfs 216M 0 216M 0% /dev/shm
tmpfs 216M 3.1M 213M 2% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 216M 0 216M 0% /sys/fs/cgroup
/dev/mmcblk0p1 253M 48M 205M 19% /boot
tmpfs 44M 0 44M 0% /run/user/1000
my terminal will just freeze
cool, is there an error message? perhaps run a second SSH and monitor the logs and you may catch something there - too bad you can't connect it to a TV though ... out of interest, what's the output ofdf -h
before you do anything with aptdf -h
but everything seems to be alright there as well :/