pi@raspberrypi:~ $ sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages will be upgraded: dmsetup dpkg dpkg-dev firmware-atheros firmware-brcm80211 firmware-libertas firmware-ralink firmware-realtek gir1.2-gdkpixbuf-2.0 initramfs-tools libavcodec56 libavformat56 libavresample2 libavutil54 libdevmapper-event1.02.1 libdevmapper1.02.1 libdpkg-perl libexpat1 libexpat1-dev libgd3 libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-common libksba8 liblvm2app2.2 libraspberrypi-bin libraspberrypi-dev libraspberrypi-doc libraspberrypi0 libsmbclient libssl1.0.0 libswscale3 libwbclient0 libxapian22 libxml2 libxslt1.1 openssl perl perl-base perl-modules python-picamera python3-picamera raspberrypi-bootloader raspberrypi-kernel samba-common samba-libs tzdata xarchiver 47 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 97.9 MB of archives. After this operation, 640 kB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://archive.raspberrypi.org/debian/ jessie/main firmware-atheros all 0. 43+rpi5 [873 kB] Get:2 http://mirrordirector.raspbian.org/raspbian/ jessie/main dpkg armhf 1.17.2 7 [2,930 kB] Get:3 http://archive.raspberrypi.org/debian/ jessie/main firmware-brcm80211 all 0.43+rpi5 [1,678 kB] Get:4 http://archive.raspberrypi.org/debian/ jessie/main firmware-libertas all 0 .43+rpi5 [1,842 kB] Get:5 http://archive.raspberrypi.org/debian/ jessie/main firmware-ralink all 0.43+rpi5 [45.8 kB] Get:6 http://archive.raspberrypi.org/debian/ jessie/main firmware-realtek all 0.43+rpi5 [209 kB] Get:7 http://archive.raspberrypi.org/debian/ jessie/main libraspberrypi-dev armhf 1.20160620-1 [404 kB] Get:8 http://archive.raspberrypi.org/debian/ jessie/main libraspberrypi-doc armhf 1.20160620-1 [31.4 MB] Get:9 http://mirrordirector.raspbian.org/raspbian/ jessie/main perl armhf 5.20.2-3+deb8u5 [2,053 kB] Get:10 http://mirrordirector.raspbian.org/raspbian/ jessie/main perl-base armhf 5.20.2-3+deb8u5 [1,101 kB] Get:11 http://mirrordirector.raspbian.org/raspbian/ jessie/main perl-modules all 5.20.2-3+deb8u5 [2,546 kB] Get:12 http://mirrordirector.raspbian.org/raspbian/ jessie/main dmsetup armhf 2:1.02.90-2.2+deb8u1 [66.5 kB] Get:13 http://mirrordirector.raspbian.org/raspbian/ jessie/main libdevmapper1.02.1 armhf 2:1.02.90-2.2+deb8u1 [138 kB] Get:14 http://mirrordirector.raspbian.org/raspbian/ jessie/main libssl1.0.0 armhf 1.0.1t-1+deb8u2 [852 kB] Get:15 http://mirrordirector.raspbian.org/raspbian/ jessie/main libxml2 armhf 2.9.1+dfsg1-5+deb8u2 [705 kB] Get:16 http://mirrordirector.raspbian.org/raspbian/ jessie/main libavutil54 armhf 6:11.7-1~deb8u1+rpi1 [160 kB] Get:17 http://mirrordirector.raspbian.org/raspbian/ jessie/main libavresample2 armhf 6:11.7-1~deb8u1+rpi1 [97.0 kB] Get:18 http://mirrordirector.raspbian.org/raspbian/ jessie/main libavcodec56 armhf 6:11.7-1~deb8u1+rpi1 [4,490 kB] Get:19 http://mirrordirector.raspbian.org/raspbian/ jessie/main libavformat56 armhf 6:11.7-1~deb8u1+rpi1 [855 kB] Get:20 http://mirrordirector.raspbian.org/raspbian/ jessie/main libdevmapper-event1.02.1 armhf 2:1.02.90-2.2+deb8u1 [34.8 kB] Get:21 http://mirrordirector.raspbian.org/raspbian/ jessie/main libexpat1-dev armhf 2.1.0-6+deb8u3 [115 kB] Get:22 http://mirrordirector.raspbian.org/raspbian/ jessie/main libexpat1 armhf 2.1.0-6+deb8u3 [60.5 kB] Get:23 http://mirrordirector.raspbian.org/raspbian/ jessie/main libgd3 armhf 2.1.0-5+deb8u4 [126 kB] Get:24 http://mirrordirector.raspbian.org/raspbian/ jessie/main libgdk-pixbuf2.0-0 armhf 2.31.1-2+deb8u5 [148 kB] Get:25 http://mirrordirector.raspbian.org/raspbian/ jessie/main libgdk-pixbuf2.0-common all 2.31.1-2+deb8u5 [294 kB] Get:26 http://mirrordirector.raspbian.org/raspbian/ jessie/main libksba8 armhf 1.3.2-1+deb8u1 [81.1 kB] Get:27 http://mirrordirector.raspbian.org/raspbian/ jessie/main liblvm2app2.2 armhf 2.02.111-2.2+deb8u1 [381 kB] Get:28 http://mirrordirector.raspbian.org/raspbian/ jessie/main libwbclient0 armhf 2:4.2.10+dfsg-0+deb8u3 [116 kB] Get:29 http://mirrordirector.raspbian.org/raspbian/ jessie/main libsmbclient armhf 2:4.2.10+dfsg-0+deb8u3 [138 kB] Get:30 http://mirrordirector.raspbian.org/raspbian/ jessie/main samba-libs armhf 2:4.2.10+dfsg-0+deb8u3 [4,244 kB] Get:31 http://mirrordirector.raspbian.org/raspbian/ jessie/main libswscale3 armhf 6:11.7-1~deb8u1+rpi1 [156 kB] Get:32 http://mirrordirector.raspbian.org/raspbian/ jessie/main libxslt1.1 armhf 1.1.28-2+deb8u1 [213 kB] Get:33 http://mirrordirector.raspbian.org/raspbian/ jessie/main samba-common all 2:4.2.10+dfsg-0+deb8u3 [239 kB] Get:34 http://mirrordirector.raspbian.org/raspbian/ jessie/main tzdata all 2016d-0+deb8u1 [185 kB] Get:35 http://mirrordirector.raspbian.org/raspbian/ jessie/main libxapian22 armhf 1.2.19-1+deb8u1 [863 kB] Get:36 http://mirrordirector.raspbian.org/raspbian/ jessie/main dpkg-dev all 1.17.27 [1,548 kB] Get:37 http://mirrordirector.raspbian.org/raspbian/ jessie/main libdpkg-perl all 1.17.27 [1,075 kB] Get:38 http://archive.raspberrypi.org/debian/ jessie/main raspberrypi-kernel armhf 1.20160620-1 [29.9 MB] Get:39 http://mirrordirector.raspbian.org/raspbian/ jessie/main gir1.2-gdkpixbuf-2.0 armhf 2.31.1-2+deb8u5 [16.9 kB] Get:40 http://mirrordirector.raspbian.org/raspbian/ jessie/main initramfs-tools all 0.120+deb8u2 [96.3 kB] Get:41 http://mirrordirector.raspbian.org/raspbian/ jessie/main openssl armhf 1.0.1t-1+deb8u2 [653 kB] Get:42 http://mirrordirector.raspbian.org/raspbian/ jessie/main xarchiver armhf 1:0.5.4-1+deb8u1 [436 kB] Get:43 http://archive.raspberrypi.org/debian/ jessie/main libraspberrypi-bin armhf 1.20160620-1 [253 kB] Get:44 http://archive.raspberrypi.org/debian/ jessie/main libraspberrypi0 armhf 1.20160620-1 [726 kB] Get:45 http://archive.raspberrypi.org/debian/ jessie/main raspberrypi-bootloader armhf 1.20160620-1 [3,149 kB] Get:46 http://archive.raspberrypi.org/debian/ jessie/main python-picamera armhf 1.11 [120 kB] Get:47 http://archive.raspberrypi.org/debian/ jessie/main python3-picamera armhf 1.11 [118 kB] Fetched 97.9 MB in 58s (1,664 kB/s) Reading changelogs... Done Extracting templates from packages: 100% Preconfiguring packages ... (Reading database ... 118080 files and directories currently installed.) Preparing to unpack .../dpkg_1.17.27_armhf.deb ... Unpacking dpkg (1.17.27) over (1.17.26) ... Processing triggers for man-db (2.7.0.2-5) ... Setting up dpkg (1.17.27) ... (Reading database ... 118080 files and directories currently installed.) Preparing to unpack .../perl_5.20.2-3+deb8u5_armhf.deb ... Unpacking perl (5.20.2-3+deb8u5) over (5.20.2-3+deb8u4) ... dpkg: error processing archive /var/cache/apt/archives/perl_5.20.2-3+deb8u5_armhf.deb (--unpack): unable to create `/usr/lib/arm-linux-gnueabihf/perl/5.20.2/Tie/Hash/NamedCapture.pm.dpkg-new' (while processing `./usr/lib/arm-linux-gnueabihf/perl/5.20.2/T ie/Hash/NamedCapture.pm'): Read-only file system dpkg: error while cleaning up: unable to remove newly-extracted version of `/usr/lib/arm-linux-gnueabihf/perl/5.20.2/Tie/Hash/NamedCapture.pm': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/lib/arm-linux-gnueabihf/perl/5.20.2/File/Spec/Mac.pm': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/lib/arm-linux-gnueabihf/perl/5.20.2/File/Spec/VMS.pm': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/lib/arm-linux-gnueabihf/perl/5.20.2/File/Spec/Cygwin.pm': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/lib/arm-linux-gnueabihf/perl/5.20.2/File/Spec/Functions.pm': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/lib/arm-linux-gnueabihf/perl/5.20.2/File/Spec/OS2.pm': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/lib/arm-linux-gnueabihf/perl/5.20.2/File/Spec/Win32.pm': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/lib/arm-linux-gnueabihf/perl/5.20.2/File/Spec/Epoc.pm': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/lib/arm-linux-gnueabihf/perl/5.20.2/File/DosGlob.pm': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/lib/arm-linux-gnueabihf/perl/5.20.2/B/Concise.pm': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/lib/arm-linux-gnueabihf/perl/5.20.2/B/Terse.pm': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/lib/arm-linux-gnueabihf/perl/5.20.2/B/Xref.pm': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/lib/arm-linux-gnueabihf/perl/5.20.2/B/Showlex.pm': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/lib/arm-linux-gnueabihf/perl/5.20.2/threads.pm': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/lib/arm-linux-gnueabihf/perl/5.20.2/mro.pm': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/lib/arm-linux-gnueabihf/perl/5.20.2/arybase.pm': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/lib/arm-linux-gnueabihf/perl/5.20.2/Storable.pm': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/lib/arm-linux-gnueabihf/perl/5.20.2/SDBM_File.pm': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/lib/arm-linux-gnueabihf/perl/5.20.2/POSIX.pod': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/lib/arm-linux-gnueabihf/perl/5.20.2/ops.pm': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/lib/arm-linux-gnueabihf/perl/5.20.2/Opcode.pm': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/lib/arm-linux-gnueabihf/perl/5.20.2/ODBM_File.pm': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/lib/arm-linux-gnueabihf/perl/5.20.2/NDBM_File.pm': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/lib/arm-linux-gnueabihf/perl/5.20.2/GDBM_File.pm': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/lib/arm-linux-gnueabihf/perl/5.20.2/Encode.pm': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/lib/arm-linux-gnueabihf/perl/5.20.2/encoding.pm': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/lib/arm-linux-gnueabihf/perl/5.20.2/DB_File.pm': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/lib/arm-linux-gnueabihf/perl/5.20.2/O.pm': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/lib/arm-linux-gnueabihf/perl/5.20.2/B.pm': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/lib/arm-linux-gnueabihf/perl/5.20.2/Config.pod': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/bin/a2p': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/bin/prename': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/bin/perldoc': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/bin/psed': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/bin/perlthanks': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/bin/pstruct': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/bin/s2p': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/bin/find2perl': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/bin/zipdetails': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/bin/xsubpp': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/bin/splain': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/bin/shasum': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/bin/ptargrep': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/bin/ptardiff': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/bin/ptar': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/bin/prove': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/bin/pod2html': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/bin/pl2pm': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/bin/piconv': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/bin/perlivp': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/bin/perlbug': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/bin/libnetcfg': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/bin/json_pp': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/bin/instmodsh': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/bin/h2xs': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/bin/h2ph': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/bin/enc2xs': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/bin/corelist': Read-only file system dpkg: error while cleaning up: unable to remove newly-extracted version of `/usr/bin/config_data': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/bin/cpan': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/bin/c2ph': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/bin/podselect': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/bin/podchecker': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/bin/pod2usage': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/bin/pod2text': Read-only file system dpkg: error while cleaning up: unable to restore backup version of `/usr/bin/pod2man': Read-only file system dpkg: error while cleaning up: unable to securely remove '/var/lib/dpkg/tmp.ci': Read-only file system dpkg: error while cleaning up: unable to securely remove '/var/lib/dpkg/reassemble.deb': Read-only file system dpkg: error processing archive /var/cache/apt/archives/perl-base_5.20.2-3+deb8u5_armhf.deb (--unpack): error ensuring `/var/lib/dpkg/reassemble.deb' doesn't exist: Read-only file system dpkg: error: unable to create new file '/var/lib/dpkg/status-new': Read-only file system dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) E: Sub-process /usr/bin/dpkg returned an error code (2) E: Problem executing scripts DPkg::Post-Invoke '/usr/bin/test -e /usr/share/dbus-1/system-services/org.freedesktop.PackageKit.service && /usr/bin/test -S /va r/run/dbus/system_bus_socket && /usr/bin/gdbus call --system --dest org.freedesktop.PackageKit --object-path /org/freedesktop/PackageKit --timeout 4 --method org.freedesktop.PackageKit.StateHasChanged cache-update > /dev/null; /bin/echo > /dev/null' E: Sub-process returned an error code pi@raspberrypi:~ $ pi@raspberrypi:~ $ sudo apt-get clean Bus error pi@raspberrypi:~ $ sudo reboot Bus error pi@raspberrypi:~ $