Timmiej93
Posts: 17
Joined: Tue May 26, 2015 6:22 pm
Location: The Netherlands

Error while upgrading RPi

Tue Nov 29, 2016 8:21 pm

I have been trying to update my RPi for a while now, but have been getting an error every time. I've tried looking around online, and trying some random suggestions, but none helped so far.

Process
Update:

Code: Select all

pi@raspberrypi:~ $ sudo apt-get update
Hit http://mirrordirector.raspbian.org jessie InRelease
Get:1 http://mirrordirector.raspbian.org jessie/main armhf Packages [8,981 kB]
Get:2 http://mirrordirector.raspbian.org jessie/contrib armhf Packages [37.5 kB]
Get:3 http://mirrordirector.raspbian.org jessie/non-free armhf Packages [70.3 kB]
Get:4 http://mirrordirector.raspbian.org jessie/rpi armhf Packages [1,356 B]
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en_US
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en
Ign http://mirrordirector.raspbian.org jessie/main Translation-en_US
Ign http://mirrordirector.raspbian.org jessie/main Translation-en
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en_US
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_US
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en
Hit http://archive.raspberrypi.org jessie InRelease
Hit http://archive.raspberrypi.org jessie/main armhf Packages
Hit http://archive.raspberrypi.org jessie/ui armhf Packages
Ign http://archive.raspberrypi.org jessie/main Translation-en_US
Ign http://archive.raspberrypi.org jessie/main Translation-en
Ign http://archive.raspberrypi.org jessie/ui Translation-en_US
Ign http://archive.raspberrypi.org jessie/ui Translation-en
Fetched 8,798 kB in 29s (295 kB/s)
Reading package lists... Done
Upgrade:

Code: Select all

pi@raspberrypi:~ $ nice sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  gstreamer1.0-plugins-bad libgstreamer-plugins-bad1.0-0 lxpanel lxpanel-data plymouth raspberrypi-sys-mods
  raspberrypi-ui-mods
The following packages will be upgraded:
  bind9-host bluej curl e2fslibs e2fsprogs file fontconfig fontconfig-config fonts-opensymbol gdb gdbserver gnupg
  gnupg-agent gnupg2 gpgv greenfoot gstreamer1.0-plugins-good gtk2-engines-clearlookspix idle-python2.7
  libarchive-dev libarchive13 libaudiofile1 libavcodec56 libavformat56 libavresample2 libavutil54 libbind9-90
  libc-ares2 libc-bin libc-dev-bin libc6 libc6-dbg libc6-dev libcairo-gobject2 libcairo2 libcomerr2 libcurl3
  libcurl3-gnutls libdns-export100 libdns100 libfontconfig1 libgcrypt20 libgd3 libgudev-1.0-0 libicu52 libidn11
  libirs-export91 libisc-export95 libisc95 libisccc90 libisccfg-export90 libisccfg90 liblightdm-gobject-1-0
  liblwres90 libmagic1 libmodule-build-perl libnspr4 libnss3 libobrender29 libobt2 libpam-systemd
  libpolkit-agent-1-0 libpolkit-backend-1-0 libpolkit-gobject-1-0 libpython2.7 libpython2.7-minimal
  libpython2.7-stdlib libraspberrypi-bin libraspberrypi-dev libraspberrypi-doc libraspberrypi0 libreoffice
  libreoffice-avmedia-backend-gstreamer libreoffice-base libreoffice-base-core libreoffice-base-drivers
  libreoffice-calc libreoffice-common libreoffice-core libreoffice-draw libreoffice-gtk libreoffice-impress
  libreoffice-java-common libreoffice-math libreoffice-report-builder-bin libreoffice-sdbc-hsqldb
  libreoffice-style-galaxy libreoffice-writer libruby2.1 libsqlite3-0 libss2 libssl1.0.0 libswscale3 libsystemd0
  libudev1 libxml2 libxslt1.1 lightdm locales lxterminal multiarch-support nodered ntp nuscratch omxplayer openbox
  openssh-client openssh-server openssh-sftp-server openssl pcmanfm perl perl-base perl-modules pi-package
  pi-package-data pi-package-session piclone pipanel pishutdown policykit-1 python-gpiozero python-picamera
  python-pil python-rpi.gpio python-sense-hat python2.7 python2.7-minimal python3-gpiozero python3-picamera
  python3-pil python3-rpi.gpio python3-sense-hat python3-uno raspberrypi-bootloader raspberrypi-kernel
  raspberrypi-net-mods raspi-config rc-gui ruby2.1 sonic-pi ssh systemd systemd-sysv tzdata udev uno-libs3 ure
  vim-common vim-tiny wget wpasupplicant
152 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
Need to get 191 MB/287 MB of archives.
After this operation, 4,394 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://mirrordirector.raspbian.org/raspbian/ jessie/main libicu52 armhf 52.1-8+deb8u4 [6,556 kB]
Get:2 http://archive.raspberrypi.org/debian/ jessie/ui libreoffice-core armhf 1:4.3.3-2+rpi4 [25.2 MB]
Get:3 http://mirrordirector.raspbian.org/raspbian/ jessie/main vim-tiny armhf 2:7.4.488-7+deb8u1 [357 kB]
Get:4 http://mirrordirector.raspbian.org/raspbian/ jessie/main vim-common armhf 2:7.4.488-7+deb8u1 [184 kB]
Get:5 http://mirrordirector.raspbian.org/raspbian/ jessie/main gstreamer1.0-plugins-good armhf 1.4.4-2+deb8u2 [2,218 kB]
Get:6 http://archive.raspberrypi.org/debian/ jessie/ui libreoffice-base-drivers armhf 1:4.3.3-2+rpi4 [498 kB]
Get:7 http://archive.raspberrypi.org/debian/ jessie/ui fonts-opensymbol all 2:102.6+LibO4.3.3-2+rpi4 [147 kB]
Get:8 http://archive.raspberrypi.org/debian/ jessie/ui libreoffice-report-builder-bin armhf 1:4.3.3-2+rpi4 [734 kB]
Get:9 http://archive.raspberrypi.org/debian/ jessie/ui libreoffice-avmedia-backend-gstreamer armhf 1:4.3.3-2+rpi4 [76.9 kB]
Get:10 http://archive.raspberrypi.org/debian/ jessie/ui libreoffice-style-galaxy all 1:4.3.3-2+rpi4 [1,711 kB]
Get:11 http://archive.raspberrypi.org/debian/ jessie/ui libreoffice-java-common all 1:4.3.3-2+rpi4 [1,944 kB]
Get:12 http://archive.raspberrypi.org/debian/ jessie/main libcairo2 armhf 1.14.0-2.1+deb8u1+rpi1 [662 kB]
Get:13 http://archive.raspberrypi.org/debian/ jessie/main libcairo-gobject2 armhf 1.14.0-2.1+deb8u1+rpi1 [304 kB]
Get:14 http://archive.raspberrypi.org/debian/ jessie/ui liblightdm-gobject-1-0 armhf 1.10.3-3+rpi [45.5 kB]
Get:15 http://archive.raspberrypi.org/debian/ jessie/main gdb armhf 7.7.1+dfsg-5+rpi1 [1,964 kB]
Get:16 http://archive.raspberrypi.org/debian/ jessie/main gdbserver armhf 7.7.1+dfsg-5+rpi1 [205 kB]
Get:17 http://archive.raspberrypi.org/debian/ jessie/ui gtk2-engines-clearlookspix armhf 1:2.20.4 [66.8 kB]
Get:18 http://archive.raspberrypi.org/debian/ jessie/ui libobt2 armhf 3.5.2-8+rpi2 [60.5 kB]
Get:19 http://archive.raspberrypi.org/debian/ jessie/ui libobrender29 armhf 3.5.2-8+rpi2 [69.6 kB]
Get:20 http://archive.raspberrypi.org/debian/ jessie/ui libreoffice-sdbc-hsqldb armhf 1:4.3.3-2+rpi4 [159 kB]
Get:21 http://archive.raspberrypi.org/debian/ jessie/ui lightdm armhf 1.10.3-3+rpi [139 kB]
Get:22 http://archive.raspberrypi.org/debian/ jessie/ui lxterminal armhf 0.2.0-1+rpi1 [91.0 kB]
Get:23 http://archive.raspberrypi.org/debian/ jessie/main nodered armhf 0.15.2 [5,563 kB]
Get:24 http://archive.raspberrypi.org/debian/ jessie/main nuscratch armhf 20161021 [11.9 MB]
Get:25 http://archive.raspberrypi.org/debian/ jessie/main omxplayer armhf 0.3.7~git20160923~dfea8c9 [4,330 kB]
Get:26 http://archive.raspberrypi.org/debian/ jessie/ui openbox armhf 3.5.2-8+rpi2 [276 kB]
Get:27 http://archive.raspberrypi.org/debian/ jessie/ui pcmanfm armhf 1.2.3-1.1+rpi5 [255 kB]
Get:28 http://archive.raspberrypi.org/debian/ jessie/ui pi-package-data all 0.2 [1,047 kB]
Get:29 http://archive.raspberrypi.org/debian/ jessie/ui pi-package-session armhf 0.2 [73.0 kB]
Get:30 http://archive.raspberrypi.org/debian/ jessie/ui pi-package armhf 0.2 [130 kB]
Get:31 http://archive.raspberrypi.org/debian/ jessie/ui piclone armhf 0.3 [12.9 kB]
Get:32 http://archive.raspberrypi.org/debian/ jessie/ui pipanel armhf 20161017~131745 [13.2 kB]
Get:33 http://archive.raspberrypi.org/debian/ jessie/ui pishutdown armhf 0.7 [6,010 B]
Get:34 http://archive.raspberrypi.org/debian/ jessie/main python-rpi.gpio armhf 0.6.3~jessie-1 [23.5 kB]
Get:35 http://archive.raspberrypi.org/debian/ jessie/main python-sense-hat armhf 2.2.0-1 [13.8 kB]
Get:36 http://archive.raspberrypi.org/debian/ jessie/main python3-rpi.gpio armhf 0.6.3~jessie-1 [28.2 kB]
Get:37 http://archive.raspberrypi.org/debian/ jessie/main python3-sense-hat armhf 2.2.0-1 [13.9 kB]
Get:38 http://archive.raspberrypi.org/debian/ jessie/main raspi-config all 20161114 [17.0 kB]
Get:39 http://archive.raspberrypi.org/debian/ jessie/ui rc-gui armhf 1.4 [37.1 kB]
Get:40 http://archive.raspberrypi.org/debian/ jessie/main bluej all 3.1.7b [10.1 MB]
Get:41 http://archive.raspberrypi.org/debian/ jessie/main greenfoot all 2.4.2a [9,107 kB]
Get:42 http://archive.raspberrypi.org/debian/ jessie/main libraspberrypi-dev armhf 1.20161125-1 [396 kB]
Get:43 http://archive.raspberrypi.org/debian/ jessie/main libraspberrypi-doc armhf 1.20161125-1 [31.4 MB]
Get:44 http://archive.raspberrypi.org/debian/ jessie/main raspberrypi-kernel armhf 1.20161125-1 [30.1 MB]
Get:45 http://archive.raspberrypi.org/debian/ jessie/main libraspberrypi-bin armhf 1.20161125-1 [329 kB]
Get:46 http://archive.raspberrypi.org/debian/ jessie/main libraspberrypi0 armhf 1.20161125-1 [842 kB]
Get:47 http://archive.raspberrypi.org/debian/ jessie/main raspberrypi-bootloader armhf 1.20161125-1 [3,260 kB]
Get:48 http://archive.raspberrypi.org/debian/ jessie/main python-gpiozero all 1.3.1 [69.6 kB]
Get:49 http://archive.raspberrypi.org/debian/ jessie/main python-picamera armhf 1.12 [120 kB]
Get:50 http://archive.raspberrypi.org/debian/ jessie/main python3-gpiozero all 1.3.1 [67.9 kB]
Get:51 http://archive.raspberrypi.org/debian/ jessie/main python3-picamera armhf 1.12 [119 kB]
Get:52 http://archive.raspberrypi.org/debian/ jessie/main raspberrypi-net-mods all 1.2.5 [2,526 B]
Get:53 http://archive.raspberrypi.org/debian/ jessie/main sonic-pi armhf 1:2.10.0-2 [38.0 MB]
Fetched 191 MB in 3min 57s (805 kB/s)
Reading changelogs... Done
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 118918 files and directories currently installed.)
Preparing to unpack .../libc6-dev_2.19-18+deb8u6_armhf.deb ...
Unpacking libc6-dev:armhf (2.19-18+deb8u6) over (2.19-18+deb8u4) ...
Preparing to unpack .../libc-dev-bin_2.19-18+deb8u6_armhf.deb ...
Unpacking libc-dev-bin (2.19-18+deb8u6) over (2.19-18+deb8u4) ...
Preparing to unpack .../libc-bin_2.19-18+deb8u6_armhf.deb ...
Unpacking libc-bin (2.19-18+deb8u6) over (2.19-18+deb8u4) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up libc-bin (2.19-18+deb8u6) ...
(Reading database ... 118918 files and directories currently installed.)
Preparing to unpack .../libc6-dbg_2.19-18+deb8u6_armhf.deb ...
Unpacking libc6-dbg:armhf (2.19-18+deb8u6) over (2.19-18+deb8u4) ...
Preparing to unpack .../libc6_2.19-18+deb8u6_armhf.deb ...
Unpacking libc6:armhf (2.19-18+deb8u6) over (2.19-18+deb8u4) ...
Setting up libc6:armhf (2.19-18+deb8u6) ...
Processing triggers for libc-bin (2.19-18+deb8u6) ...
(Reading database ... 118918 files and directories currently installed.)
Preparing to unpack .../e2fslibs_1.42.12-2_armhf.deb ...
Unpacking e2fslibs:armhf (1.42.12-2) over (1.42.12-1.1) ...
Setting up e2fslibs:armhf (1.42.12-2) ...
Processing triggers for libc-bin (2.19-18+deb8u6) ...
(Reading database ... 118918 files and directories currently installed.)
Preparing to unpack .../e2fsprogs_1.42.12-2_armhf.deb ...
Unpacking e2fsprogs (1.42.12-2) over (1.42.12-1.1) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up e2fsprogs (1.42.12-2) ...
(Reading database ... 118918 files and directories currently installed.)
Preparing to unpack .../perl_5.20.2-3+deb8u6_armhf.deb ...
Unpacking perl (5.20.2-3+deb8u6) over (5.20.2-3+deb8u5) ...
Preparing to unpack .../perl-base_5.20.2-3+deb8u6_armhf.deb ...
Unpacking perl-base (5.20.2-3+deb8u6) over (5.20.2-3+deb8u5) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up perl-base (5.20.2-3+deb8u6) ...
(Reading database ... 118918 files and directories currently installed.)
Preparing to unpack .../perl-modules_5.20.2-3+deb8u6_all.deb ...
Unpacking perl-modules (5.20.2-3+deb8u6) over (5.20.2-3+deb8u5) ...
Preparing to unpack .../libmodule-build-perl_0.421000-2+deb8u1_all.deb ...
Unpacking libmodule-build-perl (0.421000-2+deb8u1) over (0.421000-2) ...
Preparing to unpack .../libudev1_215-17+deb8u5_armhf.deb ...
Unpacking libudev1:armhf (215-17+deb8u5) over (215-17+deb8u4) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up libudev1:armhf (215-17+deb8u5) ...
Processing triggers for libc-bin (2.19-18+deb8u6) ...
(Reading database ... 118919 files and directories currently installed.)
Preparing to unpack .../udev_215-17+deb8u5_armhf.deb ...
Unpacking udev (215-17+deb8u5) over (215-17+deb8u4) ...
Processing triggers for systemd (215-17+deb8u4) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up udev (215-17+deb8u5) ...
addgroup: The group `input' already exists as a system group. Exiting.
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.120+deb8u2) ...
(Reading database ... 118919 files and directories currently installed.)
Preparing to unpack .../libcomerr2_1.42.12-2_armhf.deb ...
Unpacking libcomerr2:armhf (1.42.12-2) over (1.42.12-1.1) ...
Setting up libcomerr2:armhf (1.42.12-2) ...
Processing triggers for libc-bin (2.19-18+deb8u6) ...
(Reading database ... 118919 files and directories currently installed.)
Preparing to unpack .../libss2_1.42.12-2_armhf.deb ...
Unpacking libss2:armhf (1.42.12-2) over (1.42.12-1.1) ...
Setting up libss2:armhf (1.42.12-2) ...
Processing triggers for libc-bin (2.19-18+deb8u6) ...
(Reading database ... 118919 files and directories currently installed.)
Preparing to unpack .../libgcrypt20_1.6.3-2+deb8u2_armhf.deb ...
Unpacking libgcrypt20:armhf (1.6.3-2+deb8u2) over (1.6.3-2+deb8u1) ...
Setting up libgcrypt20:armhf (1.6.3-2+deb8u2) ...
Processing triggers for libc-bin (2.19-18+deb8u6) ...
(Reading database ... 118919 files and directories currently installed.)
Preparing to unpack .../libsystemd0_215-17+deb8u5_armhf.deb ...
Unpacking libsystemd0:armhf (215-17+deb8u5) over (215-17+deb8u4) ...
Setting up libsystemd0:armhf (215-17+deb8u5) ...
Processing triggers for libc-bin (2.19-18+deb8u6) ...
(Reading database ... 118919 files and directories currently installed.)
Preparing to unpack .../libpam-systemd_215-17+deb8u5_armhf.deb ...
Unpacking libpam-systemd:armhf (215-17+deb8u5) over (215-17+deb8u4) ...
Preparing to unpack .../systemd_215-17+deb8u5_armhf.deb ...
Unpacking systemd (215-17+deb8u5) over (215-17+deb8u4) ...
Processing triggers for man-db (2.7.0.2-5) ...
Processing triggers for dbus (1.8.20-0+deb8u1) ...
Setting up systemd (215-17+deb8u5) ...
addgroup: The group `systemd-journal' already exists as a system group. Exiting.
Failed to execute operation: File exists
(Reading database ... 118919 files and directories currently installed.)
Preparing to unpack .../systemd-sysv_215-17+deb8u5_armhf.deb ...
Unpacking systemd-sysv (215-17+deb8u5) over (215-17+deb8u4) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up systemd-sysv (215-17+deb8u5) ...
(Reading database ... 118919 files and directories currently installed.)
Preparing to unpack .../libssl1.0.0_1.0.1t-1+deb8u5_armhf.deb ...
Unpacking libssl1.0.0:armhf (1.0.1t-1+deb8u5) over (1.0.1t-1+deb8u2) ...
Preparing to unpack .../libidn11_1.29-1+deb8u2_armhf.deb ...
Unpacking libidn11:armhf (1.29-1+deb8u2) over (1.29-1+deb8u1) ...
Preparing to unpack .../file_1%3a5.22+15-2+deb8u2_armhf.deb ...
Unpacking file (1:5.22+15-2+deb8u2) over (1:5.22+15-2+deb8u1) ...
Preparing to unpack .../libmagic1_1%3a5.22+15-2+deb8u2_armhf.deb ...
Unpacking libmagic1:armhf (1:5.22+15-2+deb8u2) over (1:5.22+15-2+deb8u1) ...
Preparing to unpack .../python2.7_2.7.9-2+deb8u1_armhf.deb ...
Unpacking python2.7 (2.7.9-2+deb8u1) over (2.7.9-2) ...
Preparing to unpack .../python2.7-minimal_2.7.9-2+deb8u1_armhf.deb ...
Unpacking python2.7-minimal (2.7.9-2+deb8u1) over (2.7.9-2) ...
Preparing to unpack .../libpython2.7_2.7.9-2+deb8u1_armhf.deb ...
Unpacking libpython2.7:armhf (2.7.9-2+deb8u1) over (2.7.9-2) ...
Preparing to unpack .../libpython2.7-stdlib_2.7.9-2+deb8u1_armhf.deb ...
Unpacking libpython2.7-stdlib:armhf (2.7.9-2+deb8u1) over (2.7.9-2) ...
Preparing to unpack .../libpython2.7-minimal_2.7.9-2+deb8u1_armhf.deb ...
Unpacking libpython2.7-minimal:armhf (2.7.9-2+deb8u1) over (2.7.9-2) ...
Preparing to unpack .../libsqlite3-0_3.8.7.1-1+deb8u2_armhf.deb ...
Unpacking libsqlite3-0:armhf (3.8.7.1-1+deb8u2) over (3.8.7.1-1+deb8u1) ...
Preparing to unpack .../libxml2_2.9.1+dfsg1-5+deb8u3_armhf.deb ...
Unpacking libxml2:armhf (2.9.1+dfsg1-5+deb8u3) over (2.9.1+dfsg1-5+deb8u2) ...
Preparing to unpack .../fontconfig-config_2.11.0-6.3+deb8u1_all.deb ...
Unpacking fontconfig-config (2.11.0-6.3+deb8u1) over (2.11.0-6.3) ...
Preparing to unpack .../libfontconfig1_2.11.0-6.3+deb8u1_armhf.deb ...
Unpacking libfontconfig1:armhf (2.11.0-6.3+deb8u1) over (2.11.0-6.3) ...
Preparing to unpack .../fontconfig_2.11.0-6.3+deb8u1_armhf.deb ...
Unpacking fontconfig (2.11.0-6.3+deb8u1) over (2.11.0-6.3) ...
Preparing to unpack .../libarchive-dev_3.1.2-11+deb8u3_armhf.deb ...
Unpacking libarchive-dev:armhf (3.1.2-11+deb8u3) over (3.1.2-11+deb8u1) ...
Preparing to unpack .../libarchive13_3.1.2-11+deb8u3_armhf.deb ...
Unpacking libarchive13:armhf (3.1.2-11+deb8u3) over (3.1.2-11+deb8u1) ...
Preparing to unpack .../libaudiofile1_0.3.6-2+deb8u1_armhf.deb ...
Unpacking libaudiofile1:armhf (0.3.6-2+deb8u1) over (0.3.6-2) ...
Preparing to unpack .../libavutil54_6%3a11.8-1~deb8u1+rpi1_armhf.deb ...
Unpacking libavutil54:armhf (6:11.8-1~deb8u1+rpi1) over (6:11.7-1~deb8u1+rpi1) ...
Preparing to unpack .../libavresample2_6%3a11.8-1~deb8u1+rpi1_armhf.deb ...
Unpacking libavresample2:armhf (6:11.8-1~deb8u1+rpi1) over (6:11.7-1~deb8u1+rpi1) ...
Preparing to unpack .../libavcodec56_6%3a11.8-1~deb8u1+rpi1_armhf.deb ...
Unpacking libavcodec56:armhf (6:11.8-1~deb8u1+rpi1) over (6:11.7-1~deb8u1+rpi1) ...
Preparing to unpack .../libavformat56_6%3a11.8-1~deb8u1+rpi1_armhf.deb ...
Unpacking libavformat56:armhf (6:11.8-1~deb8u1+rpi1) over (6:11.7-1~deb8u1+rpi1) ...
Preparing to unpack .../uno-libs3_4.3.3-2+rpi4_armhf.deb ...
Unpacking uno-libs3 (4.3.3-2+rpi4) over (4.3.3-2+rpi3) ...
Preparing to unpack .../ure_4.3.3-2+rpi4_armhf.deb ...
Unpacking ure (4.3.3-2+rpi4) over (4.3.3-2+rpi3) ...
Preparing to unpack .../libreoffice-calc_1%3a4.3.3-2+rpi4_armhf.deb ...
Unpacking libreoffice-calc (1:4.3.3-2+rpi4) over (1:4.3.3-2+rpi3) ...
Preparing to unpack .../libreoffice-impress_1%3a4.3.3-2+rpi4_armhf.deb ...
Unpacking libreoffice-impress (1:4.3.3-2+rpi4) over (1:4.3.3-2+rpi3) ...
Preparing to unpack .../libreoffice-draw_1%3a4.3.3-2+rpi4_armhf.deb ...
Unpacking libreoffice-draw (1:4.3.3-2+rpi4) over (1:4.3.3-2+rpi3) ...
Preparing to unpack .../libreoffice-gtk_1%3a4.3.3-2+rpi4_armhf.deb ...
Unpacking libreoffice-gtk (1:4.3.3-2+rpi4) over (1:4.3.3-2+rpi3) ...
Preparing to unpack .../libreoffice-writer_1%3a4.3.3-2+rpi4_armhf.deb ...
Unpacking libreoffice-writer (1:4.3.3-2+rpi4) over (1:4.3.3-2+rpi3) ...
Preparing to unpack .../python3-uno_1%3a4.3.3-2+rpi4_armhf.deb ...
Fatal Python error: Py_Initialize: can't import _frozen_importlib
ValueError: bad marshal data (invalid reference)
Aborted
dpkg: warning: subprocess old pre-removal script returned error exit status 134
dpkg: trying script from the new package instead ...
Fatal Python error: Py_Initialize: can't import _frozen_importlib
ValueError: bad marshal data (invalid reference)
Aborted
dpkg: error processing archive /var/cache/apt/archives/python3-uno_1%3a4.3.3-2+rpi4_armhf.deb (--unpack):
 subprocess new pre-removal script returned error exit status 134
Fatal Python error: Py_Initialize: can't import _frozen_importlib
ValueError: bad marshal data (invalid reference)
Aborted
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 134
Preparing to unpack .../libreoffice-base-core_1%3a4.3.3-2+rpi4_armhf.deb ...
Unpacking libreoffice-base-core (1:4.3.3-2+rpi4) over (1:4.3.3-2+rpi3) ...
Preparing to unpack .../libreoffice_1%3a4.3.3-2+rpi4_armhf.deb ...
Unpacking libreoffice (1:4.3.3-2+rpi4) over (1:4.3.3-2+rpi3) ...
Preparing to unpack .../libreoffice-math_1%3a4.3.3-2+rpi4_armhf.deb ...
Unpacking libreoffice-math (1:4.3.3-2+rpi4) over (1:4.3.3-2+rpi3) ...
Preparing to unpack .../libreoffice-common_1%3a4.3.3-2+rpi4_all.deb ...
Unpacking libreoffice-common (1:4.3.3-2+rpi4) over (1:4.3.3-2+rpi3) ...
Preparing to unpack .../libreoffice-base_1%3a4.3.3-2+rpi4_armhf.deb ...
Unpacking libreoffice-base (1:4.3.3-2+rpi4) over (1:4.3.3-2+rpi3) ...
Preparing to unpack .../libreoffice-core_1%3a4.3.3-2+rpi4_armhf.deb ...
Unpacking libreoffice-core (1:4.3.3-2+rpi4) over (1:4.3.3-2+rpi3) ...
dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt
dpkg-deb: error: subprocess <decompress> returned error exit status 2
dpkg: error processing archive /var/cache/apt/archives/libreoffice-core_1%3a4.3.3-2+rpi4_armhf.deb (--unpack):
 cannot copy extracted data for './usr/lib/libreoffice/program/libsvxcorelo.so' to '/usr/lib/libreoffice/program/libsvxcorelo.so.dpkg-new': unexpected end of file or stream
Preparing to unpack .../libreoffice-base-drivers_1%3a4.3.3-2+rpi4_armhf.deb ...
Unpacking libreoffice-base-drivers (1:4.3.3-2+rpi4) over (1:4.3.3-2+rpi3) ...
dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt
dpkg-deb: error: subprocess <decompress> returned error exit status 2
dpkg: error processing archive /var/cache/apt/archives/libreoffice-base-drivers_1%3a4.3.3-2+rpi4_armhf.deb (--unpack):
 cannot copy extracted data for './usr/share/doc/libreoffice-base-drivers/copyright' to '/usr/share/doc/libreoffice-base-drivers/copyright.dpkg-new': unexpected end of file or stream
Preparing to unpack .../libicu52_52.1-8+deb8u4_armhf.deb ...
Unpacking libicu52:armhf (52.1-8+deb8u4) over (52.1-8+deb8u3) ...
Preparing to unpack .../fonts-opensymbol_2%3a102.6+LibO4.3.3-2+rpi4_all.deb ...
Unpacking fonts-opensymbol (2:102.6+LibO4.3.3-2+rpi4) over (2:102.6+LibO4.3.3-2+rpi3) ...
Preparing to unpack .../libreoffice-report-builder-bin_1%3a4.3.3-2+rpi4_armhf.deb ...
Unpacking libreoffice-report-builder-bin (1:4.3.3-2+rpi4) over (1:4.3.3-2+rpi3) ...
dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt
dpkg-deb: error: subprocess <decompress> returned error exit status 2
dpkg: error processing archive /var/cache/apt/archives/libreoffice-report-builder-bin_1%3a4.3.3-2+rpi4_armhf.deb (--unpack):
 cannot copy extracted data for './usr/share/doc/libreoffice-report-builder-bin/changelog.Debian.gz' to '/usr/share/doc/libreoffice-report-builder-bin/changelog.Debian.gz.dpkg-new': unexpected end of file or stream
Preparing to unpack .../libreoffice-avmedia-backend-gstreamer_1%3a4.3.3-2+rpi4_armhf.deb ...
Unpacking libreoffice-avmedia-backend-gstreamer (1:4.3.3-2+rpi4) over (1:4.3.3-2+rpi3) ...
dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt
dpkg-deb: error: subprocess <decompress> returned error exit status 2
dpkg: error processing archive /var/cache/apt/archives/libreoffice-avmedia-backend-gstreamer_1%3a4.3.3-2+rpi4_armhf.deb (--unpack):
 cannot copy extracted data for './usr/share/doc/libreoffice-avmedia-backend-gstreamer/copyright' to '/usr/share/doc/libreoffice-avmedia-backend-gstreamer/copyright.dpkg-new': unexpected end of file or stream
Preparing to unpack .../libreoffice-style-galaxy_1%3a4.3.3-2+rpi4_all.deb ...
Unpacking libreoffice-style-galaxy (1:4.3.3-2+rpi4) over (1:4.3.3-2+rpi3) ...
Preparing to unpack .../libreoffice-java-common_1%3a4.3.3-2+rpi4_all.deb ...
Unpacking libreoffice-java-common (1:4.3.3-2+rpi4) over (1:4.3.3-2+rpi3) ...
dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt
dpkg-deb: error: subprocess <decompress> returned error exit status 2
dpkg: error processing archive /var/cache/apt/archives/libreoffice-java-common_1%3a4.3.3-2+rpi4_all.deb (--unpack):
 cannot copy extracted data for './usr/share/java/unoil-4.3.3.jar' to '/usr/share/java/unoil-4.3.3.jar.dpkg-new': unexpected end of file or stream
Preparing to unpack .../libcurl3-gnutls_7.38.0-4+deb8u5_armhf.deb ...
Unpacking libcurl3-gnutls:armhf (7.38.0-4+deb8u5) over (7.38.0-4+deb8u3) ...
Preparing to unpack .../libnspr4_2%3a4.12-1+debu8u1_armhf.deb ...
Unpacking libnspr4:armhf (2:4.12-1+debu8u1) over (2:4.10.7-1+deb8u1) ...
Preparing to unpack .../libnss3_2%3a3.26-1+debu8u1_armhf.deb ...
Unpacking libnss3:armhf (2:3.26-1+debu8u1) over (2:3.17.2-1.1+deb8u2) ...
Preparing to unpack .../libxslt1.1_1.1.28-2+deb8u2_armhf.deb ...
Unpacking libxslt1.1:armhf (1.1.28-2+deb8u2) over (1.1.28-2+deb8u1) ...
Preparing to unpack .../libcairo2_1.14.0-2.1+deb8u1+rpi1_armhf.deb ...
Unpacking libcairo2:armhf (1.14.0-2.1+deb8u1+rpi1) over (1.14.0-2.1+deb8u1) ...
Preparing to unpack .../libcairo-gobject2_1.14.0-2.1+deb8u1+rpi1_armhf.deb ...
Unpacking libcairo-gobject2:armhf (1.14.0-2.1+deb8u1+rpi1) over (1.14.0-2.1+deb8u1) ...
Preparing to unpack .../curl_7.38.0-4+deb8u5_armhf.deb ...
Unpacking curl (7.38.0-4+deb8u5) over (7.38.0-4+deb8u3) ...
Preparing to unpack .../libcurl3_7.38.0-4+deb8u5_armhf.deb ...
Unpacking libcurl3:armhf (7.38.0-4+deb8u5) over (7.38.0-4+deb8u3) ...
Preparing to unpack .../libisc-export95_1%3a9.9.5.dfsg-9+deb8u8_armhf.deb ...
Unpacking libisc-export95 (1:9.9.5.dfsg-9+deb8u8) over (1:9.9.5.dfsg-9+deb8u6) ...
Preparing to unpack .../libdns-export100_1%3a9.9.5.dfsg-9+deb8u8_armhf.deb ...
Unpacking libdns-export100 (1:9.9.5.dfsg-9+deb8u8) over (1:9.9.5.dfsg-9+deb8u6) ...
Preparing to unpack .../libgd3_2.1.0-5+deb8u7_armhf.deb ...
Unpacking libgd3:armhf (2.1.0-5+deb8u7) over (2.1.0-5+deb8u3) ...
Preparing to unpack .../libgudev-1.0-0_215-17+deb8u5_armhf.deb ...
Unpacking libgudev-1.0-0:armhf (215-17+deb8u5) over (215-17+deb8u4) ...
Preparing to unpack .../libisccfg-export90_1%3a9.9.5.dfsg-9+deb8u8_armhf.deb ...
Unpacking libisccfg-export90 (1:9.9.5.dfsg-9+deb8u8) over (1:9.9.5.dfsg-9+deb8u6) ...
Preparing to unpack .../libirs-export91_1%3a9.9.5.dfsg-9+deb8u8_armhf.deb ...
Unpacking libirs-export91 (1:9.9.5.dfsg-9+deb8u8) over (1:9.9.5.dfsg-9+deb8u6) ...
Preparing to unpack .../liblightdm-gobject-1-0_1.10.3-3+rpi_armhf.deb ...
Unpacking liblightdm-gobject-1-0 (1.10.3-3+rpi) over (1.10.3-3) ...
Preparing to unpack .../libpolkit-gobject-1-0_0.105-15~deb8u2_armhf.deb ...
Unpacking libpolkit-gobject-1-0:armhf (0.105-15~deb8u2) over (0.105-8) ...
Preparing to unpack .../libpolkit-agent-1-0_0.105-15~deb8u2_armhf.deb ...
Unpacking libpolkit-agent-1-0:armhf (0.105-15~deb8u2) over (0.105-8) ...
Preparing to unpack .../libpolkit-backend-1-0_0.105-15~deb8u2_armhf.deb ...
Unpacking libpolkit-backend-1-0:armhf (0.105-15~deb8u2) over (0.105-8) ...
Preparing to unpack .../libswscale3_6%3a11.8-1~deb8u1+rpi1_armhf.deb ...
Unpacking libswscale3:armhf (6:11.8-1~deb8u1+rpi1) over (6:11.7-1~deb8u1+rpi1) ...
Preparing to unpack .../ntp_1%3a4.2.6.p5+dfsg-7+deb8u2_armhf.deb ...
Segmentation fault
Segmentation fault
Segmentation fault
Segmentation fault
invoke-rc.d: initscript ntp, action "stop" failed.
Unpacking ntp (1:4.2.6.p5+dfsg-7+deb8u2) over (1:4.2.6.p5+dfsg-7+deb8u1) ...
Segmentation fault
Preparing to unpack .../libc-ares2_1.10.0-2+deb8u1_armhf.deb ...
Unpacking libc-ares2:armhf (1.10.0-2+deb8u1) over (1.10.0-2) ...
Preparing to unpack .../openssh-sftp-server_1%3a6.7p1-5+deb8u3_armhf.deb ...
Unpacking openssh-sftp-server (1:6.7p1-5+deb8u3) over (1:6.7p1-5+deb8u2) ...
Preparing to unpack .../openssh-server_1%3a6.7p1-5+deb8u3_armhf.deb ...
Unpacking openssh-server (1:6.7p1-5+deb8u3) over (1:6.7p1-5+deb8u2) ...
Segmentation fault
Preparing to unpack .../openssh-client_1%3a6.7p1-5+deb8u3_armhf.deb ...
Unpacking openssh-client (1:6.7p1-5+deb8u3) over (1:6.7p1-5+deb8u2) ...
Preparing to unpack .../ssh_1%3a6.7p1-5+deb8u3_all.deb ...
Unpacking ssh (1:6.7p1-5+deb8u3) over (1:6.7p1-5+deb8u2) ...
Preparing to unpack .../gpgv_1.4.18-7+deb8u3_armhf.deb ...
Unpacking gpgv (1.4.18-7+deb8u3) over (1.4.18-7+deb8u1) ...
Processing triggers for man-db (2.7.0.2-5) ...
Segmentation fault
Processing triggers for gnome-menus (3.13.3-6) ...
Fatal Python error: Py_Initialize: can't import _frozen_importlib
ValueError: bad marshal data (invalid reference)
Aborted
dpkg: error processing package gnome-menus (--unpack):
 subprocess installed post-installation script returned error exit status 134
Processing triggers for desktop-file-utils (0.22-1) ...
Processing triggers for mime-support (3.58) ...
Segmentation fault
dpkg: error processing package mime-support (--unpack):
 subprocess installed post-installation script returned error exit status 139
Processing triggers for hicolor-icon-theme (0.13-1) ...
Processing triggers for gnome-icon-theme (3.12.0-1) ...
Processing triggers for shared-mime-info (1.3-1) ...
Segmentation fault
dpkg: error processing package shared-mime-info (--unpack):
 subprocess installed post-installation script returned error exit status 139
Processing triggers for systemd (215-17+deb8u5) ...
Segmentation fault
dpkg: error processing package systemd (--unpack):
 subprocess installed post-installation script returned error exit status 139
Errors were encountered while processing:
 /var/cache/apt/archives/python3-uno_1%3a4.3.3-2+rpi4_armhf.deb
 /var/cache/apt/archives/libreoffice-core_1%3a4.3.3-2+rpi4_armhf.deb
 /var/cache/apt/archives/libreoffice-base-drivers_1%3a4.3.3-2+rpi4_armhf.deb
 /var/cache/apt/archives/libreoffice-report-builder-bin_1%3a4.3.3-2+rpi4_armhf.deb
 /var/cache/apt/archives/libreoffice-avmedia-backend-gstreamer_1%3a4.3.3-2+rpi4_armhf.deb
 /var/cache/apt/archives/libreoffice-java-common_1%3a4.3.3-2+rpi4_all.deb
 gnome-menus
 mime-support
 shared-mime-info
 systemd
E: Sub-process /usr/bin/dpkg returned an error code (1)
As you can see, it ends in an error. Now, when issuing some commands, I get "Segmentation fault" as a response.

Code: Select all

sudo dpkg --configure -a
Segmentation fault
Other commands, like 'man' work fine. I can also reboot, which is pretty much a must to get everything working again.

My questions:
What's going on here, what caused this?
How can I fix it?

beta-tester
Posts: 1377
Joined: Fri Jan 04, 2013 1:57 pm
Location: de_DE

Re: Error while upgrading RPi

Tue Nov 29, 2016 10:17 pm

what is your free disk space on your SD card?
you can check with

Code: Select all

pi@raspberrypi:~ $ df -h
{ I only give negative feedback }
RPi B (256MB), B (512MB), B+, ZeroW; 2B; 3B, 3B+; 4B (4GB)

Timmiej93
Posts: 17
Joined: Tue May 26, 2015 6:22 pm
Location: The Netherlands

Re: Error while upgrading RPi

Wed Nov 30, 2016 5:58 pm

I'm not 100% sure which of the outputs you require, so I'll state all of them:

Code: Select all

pi@raspberrypi:~ $ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root        14G  3.9G  8.9G  31% /
devtmpfs        459M     0  459M   0% /dev
tmpfs           463M     0  463M   0% /dev/shm
tmpfs           463M   13M  451M   3% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           463M     0  463M   0% /sys/fs/cgroup
/dev/mmcblk0p6   63M   20M   43M  32% /boot
tmpfs            93M     0   93M   0% /run/user/1000
/dev/mmcblk0p5   30M  441K   28M   2% /media/pi/SETTINGS

beta-tester
Posts: 1377
Joined: Fri Jan 04, 2013 1:57 pm
Location: de_DE

Re: Error while upgrading RPi

Wed Nov 30, 2016 8:54 pm

Timmiej93 wrote:I'm not 100% sure which of the outputs you require, so I'll state all of them:

Code: Select all

pi@raspberrypi:~ $ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root        14G  3.9G  8.9G  31% /
...
yes, there is enough space on the sd card. it was my thought, that you don't have enough... in the past i got also segmentation faults, and it was because my sd card was too full.

is something important on your SD card?
if not, i would recommend to write a fresh and most recent version of raspbian to your SD card.
{ I only give negative feedback }
RPi B (256MB), B (512MB), B+, ZeroW; 2B; 3B, 3B+; 4B (4GB)

Timmiej93
Posts: 17
Joined: Tue May 26, 2015 6:22 pm
Location: The Netherlands

Re: Error while upgrading RPi

Wed Nov 30, 2016 9:21 pm

Not really important, the biggest "issue" is that it would be a nuisance to install (and especially configure) the stuff I've got once again. On the other hand, would be a great moment to write a small manual for myself once I've got the time.

I will probably look into this in the weekend, so maybe somebody finds a different solution in the meantime. Also, do you know what causes this? Is it because I haven't updated my Pi in too long? If so, what method would you recommend for auto-updating? I've read up on a few, but there doesn't seem to be one good method, all seem to have flaws.

Return to “Troubleshooting”