Apt upgrade fails (subprocess dpkg-deb --control was killed by signal (Segmentation fault))

Hi there,

OSMC used to work well on my raspberry pi2. Then the “sudo apt update && sudo apt upgrade” command couldn’t be finished without errors. So OSMC is still working but I am not able to update the system.

How can I fix this issue so that I am able to update that machine?

I pasted the output of apt upgrade below. You can find all logs here: https://paste.osmc.tv/jicewogave

Thanks for your help!
:slight_smile: Christian

 $ sudo apt upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
  rbp2-image-4.9.29-10-osmc
The following packages have been kept back:
  rbp2-device-osmc
The following packages will be upgraded:
  armv7-libsqlite-osmc armv7-network-osmc armv7-splash-osmc base-files-osmc
  bind9-host curl git git-man gnupg gpgv libavcodec56 libavfilter5
  libavformat56 libavresample2 libavutil54 libbind9-90 libcurl3
  libcurl3-gnutls libdns100 libisc95 libisccc90 libisccfg90 liblwres90
  libmysqlclient18 libsmbclient libswscale3 libwbclient0 libxml2
  linux-libc-dev mediacenter-addon-osmc mysql-common perl perl-base
  perl-modules rbp-bootloader-osmc rbp-userland-osmc rbp2-kernel-osmc
  rbp2-mediacenter-osmc samba-common samba-libs tzdata wget wpasupplicant
43 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 0 B/95.1 MB of archives.
After this operation, 68.4 MB of additional disk space will be used.
Do you want to continue? [Y/n] 
Extracting templates from packages: 100%
Preconfiguring packages ...
dpkg: error processing archive /var/cache/apt/archives/perl_5.20.2-3+deb8u9_armhf.deb (--unpack):
 subprocess dpkg-deb --control was killed by signal (Segmentation fault)
dpkg: error processing archive /var/cache/apt/archives/perl-base_5.20.2-3+deb8u9_armhf.deb (--unpack):
 subprocess dpkg-deb --control was killed by signal (Segmentation fault)
Errors were encountered while processing:
 /var/cache/apt/archives/perl_5.20.2-3+deb8u9_armhf.deb
 /var/cache/apt/archives/perl-base_5.20.2-3+deb8u9_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Dont do “apt upgrade”. (Keeping your OSMC system up to date - General - OSMC)

Updating from the command line

OSMC uses the APT packaging system. As such, OSMC can be fully upgraded via the command line by running the following two commands:

sudo apt-get update
sudo apt-get dist-upgrade
Warning: Avoid running sudo apt-get upgrade as it won’t fully upgrade your system. Be sure to run the above commands instead. Running the former command can break your OSMC installation.

We recommend however that users upgrade via My OSMC. Upgrading via My OSMC will still ensure that all Debian packages are upgraded.

Thanks for your answer. Executing “apt-get update && apt-get dist-upgrade” leads to the same error. Do you have any idea what to do to solve this/ to analyse what is going wrong here?

Thanks in advance.

apt upgrade will cause problems with your system.

If you’ve been regularly running this in the past, you will need to reinstall OSMC.