The image file I am using is quite old. How old exactly I am not sure, because this image I have inherited from previous developer.
I have learnt that running:
sudo apt-get update
sudo apt-get upgrade
Kills the Raspberry Pi. I checked memory consumption with htop, and at the last moment the system was responding I had 10 megabytes left (including swap). Then everything went readonly, the upgrade crashed, not a single command was working (I typed ls, ls command not found, cat, cat command not found). I had to reboot.
I increased swap size to 512 megabytes, and it seemed it helped a little, but Raspbian crashed on later into the installation.
I would like to hear from you guys:
- Did you have a similar error?
- How do I solve it?
- Is there a way to install only some packages and not all of them in one go?
Typical stdout from apt-get upgrade
looks like this:
Unpacking replacement python2.7-minimal ...
Preparing to replace idle-python2.7 2.7.3-6 (using .../idle-python2.7_2.7.3-6+deb7u2_all.deb) ...
Unpacking replacement idle-python2.7 ...
Preparing to replace initramfs-tools 0.109.1 (using .../initramfs-tools_0.115~bpo70+1_all.deb) ...
Unpacking replacement initramfs-tools ...
Preparing to replace libclutter-1.0-common 1.10.8-2 (using .../libclutter-1.0-common_1.10.8-2+rpi1_all.deb) ...
Unpacking replacement libclutter-1.0-common ...
Preparing to replace libcogl-common 1.10.2-7 (using .../libcogl-common_1.10.2-7+rpi1_all.deb) ...
Unpacking replacement libcogl-common ...
Preparing to replace libglib2.0-data 2.33.12+really2.32.4-5 (using .../libglib2.0-data_2.40.0-3rpi3rpi1_all.deb) ...
dpkg: unrecoverable fatal error, aborting:tee: deployment.log: Read-only file system
Etee: deployment.log: Read-only file system: Sub-process /usr/bin/dpkg returned an error code (2)
Some people have requested df -h
:
Filesystem Size Used Avail Use% Mounted on
rootfs 15G 2.4G 12G 18% /
/dev/root 15G 2.4G 12G 18% /
devtmpfs 212M 0 212M 0% /dev
tmpfs 44M 236K 44M 1% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 88M 0 88M 0% /run/shm
/dev/mmcblk0p1 56M 19M 38M 33% /boot
df -h
? – Bex Feb 18 '15 at 09:19