Error while sudo apt-get update && sudo apt-get dist-upgrade

An icon appeared in the left corner of my OSMC so I did the update but an error appeared so I tried to make it via console and I get this

osmc@raspbmc:/var/cache/debconf$ sudo apt-get update && sudo apt-get -y dist-upgrade
Hit:1 stretch/updates InRelease
Get:3 jessie InRelease [1703 B]
Ign:4 stretch InRelease
Hit:5 stretch-updates InRelease
Hit:6 stretch Release
Hit:2 stretch InRelease
Fetched 1703 B in 7s (231 B/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
  libaacs0 libevdev2 libfstrcmp0 libinput-bin libinput10 libiso9660-8 libmtdev1 libnspr4 libnss3 libwacom-common libwacom2 xz-utils
The following packages will be upgraded:
  apt apt-utils armv7-eventlircd-osmc armv7-libbluray-osmc base-files-osmc curl dirmngr gnupg gnupg-agent gpgv libapt-inst2.0
  libapt-pkg5.0 libc-bin libc-l10n libc6 libcups2 libcurl3 libcurl3-gnutls libldb1 libnss-myhostname libntfs-3g871 libpam-systemd
  libsmbclient libssh-4 libssh2-1 libssl1.0.2 libsystemd0 libudev1 libwayland-client0 libwayland-cursor0 libwayland-server0
  libwbclient0 locales mediacenter-addon-osmc mediacenter-skin-osmc multiarch-support ntfs-3g openssh-client openssh-server
  openssh-sftp-server openvpn python-dnspython python-ldb python-samba raspotify rbp2-mediacenter-osmc samba samba-common
  samba-common-bin samba-libs systemd systemd-sysv tzdata udev wget wpasupplicant
56 upgraded, 12 newly installed, 0 to remove and 0 not upgraded.
Need to get 138 MB/140 MB of archives.
After this operation, 167 MB of additional disk space will be used.
Get:1 stretch/updates/main armhf systemd-sysv armhf 232-25+deb9u11 [82.4 kB]
Get:8 stretch/main armhf libc-bin armhf 2.24-11+deb9u4 [682 kB]
Get:9 jessie/main armhf raspotify armhf 0.13.0~librespot.20190416T173925Z.5d2cb32 [2277 kB]
Get:2 stretch/main armhf base-files-osmc all 2.7.6 [20.0 kB]
Get:10 stretch/updates/main armhf libpam-systemd armhf 232-25+deb9u11 [177 kB]
Get:11 stretch/updates/main armhf libsystemd0 armhf 232-25+deb9u11 [261 kB]
Get:3 stretch/main armhf mediacenter-addon-osmc all 3.0.671 [4412 kB]
Get:12 stretch/updates/main armhf libnss-myhostname armhf 232-25+deb9u11 [103 kB]
Get:13 stretch/updates/main armhf systemd armhf 232-25+deb9u11 [2277 kB]
Get:14 stretch/updates/main armhf udev armhf 232-25+deb9u11 [1079 kB]
Get:15 stretch/updates/main armhf libudev1 armhf 232-25+deb9u11 [121 kB]
Get:16 stretch/updates/main armhf python-ldb armhf 2:1.1.27-1+deb9u1 [30.3 kB]
Get:17 stretch/updates/main armhf libldb1 armhf 2:1.1.27-1+deb9u1 [93.8 kB]
Get:18 stretch/updates/main armhf python-samba armhf 2:4.5.16+dfsg-1+deb9u1 [1169 kB]
Get:19 stretch/updates/main armhf samba-common-bin armhf 2:4.5.16+dfsg-1+deb9u1 [562 kB]
Get:20 stretch/updates/main armhf libsmbclient armhf 2:4.5.16+dfsg-1+deb9u1 [145 kB]
Get:21 stretch/updates/main armhf samba-libs armhf 2:4.5.16+dfsg-1+deb9u1 [4523 kB]
Get:4 stretch/main armhf mediacenter-skin-osmc all 18.0.0-6 [11.5 MB]
Get:22 stretch/updates/main armhf libwbclient0 armhf 2:4.5.16+dfsg-1+deb9u1 [121 kB]
Get:23 stretch/updates/main armhf samba armhf 2:4.5.16+dfsg-1+deb9u1 [882 kB]
Get:24 stretch/updates/main armhf samba-common all 2:4.5.16+dfsg-1+deb9u1 [174 kB]
Get:25 stretch/updates/main armhf ntfs-3g armhf 1:2016.2.22AR.1+dfsg-1+deb9u1 [399 kB]
Get:26 stretch/updates/main armhf libntfs-3g871 armhf 1:2016.2.22AR.1+dfsg-1+deb9u1 [159 kB]
Get:27 stretch/updates/main armhf libssl1.0.2 armhf 1.0.2r-1~deb9u1 [925 kB]
Get:28 stretch/updates/main armhf libssh2-1 armhf 1.7.0-1+deb9u1 [129 kB]
Get:29 stretch/updates/main armhf wget armhf 1.18-5+deb9u3 [781 kB]
Get:30 stretch/updates/main armhf openssh-sftp-server armhf 1:7.4p1-10+deb9u6 [35.2 kB]
Get:31 stretch/main armhf libapt-pkg5.0 armhf 1.4.9 [851 kB]
Get:32 stretch/updates/main armhf openssh-server armhf 1:7.4p1-10+deb9u6 [330 kB]
Get:33 stretch/updates/main armhf openssh-client armhf 1:7.4p1-10+deb9u6 [742 kB]
Get:34 stretch/updates/main armhf wpasupplicant armhf 2:2.4-1+deb9u3 [849 kB]
Get:5 stretch/main armhf armv7-libbluray-osmc armhf 1.2.0-2 [174 kB]
Get:6 stretch/main armhf rbp2-mediacenter-osmc armhf 18.2.0-3 [89.0 MB]
Get:35 stretch/main armhf libapt-inst2.0 armhf 1.4.9 [190 kB]
Get:36 stretch/main armhf apt armhf 1.4.9 [1199 kB]
Get:37 stretch/main armhf apt-utils armhf 1.4.9 [398 kB]
Get:38 stretch/main armhf gpgv armhf 2.1.18-8~deb9u4 [454 kB]
Get:39 stretch/main armhf python-dnspython all 1.15.0-1+deb9u1 [102 kB]
Get:40 stretch/main armhf libcups2 armhf 2.2.1-8+deb9u3 [276 kB]
Get:41 stretch/main armhf multiarch-support armhf 2.24-11+deb9u4 [201 kB]
Get:42 stretch/main armhf libssh-4 armhf 0.7.3-2+deb9u2 [148 kB]
Get:43 stretch/main armhf curl armhf 7.52.1-5+deb9u9 [224 kB]
Get:44 stretch/main armhf libcurl3 armhf 7.52.1-5+deb9u9 [264 kB]
Get:45 stretch/main armhf libfstrcmp0 armhf 0.7.D001-1.1+b2 [8736 B]
Get:46 stretch/main armhf libevdev2 armhf 1.5.6+dfsg-1 [24.7 kB]
Get:47 stretch/main armhf libmtdev1 armhf 1.1.5-1+b1 [21.2 kB]
Get:48 stretch/main armhf libwacom-common all 0.22-1 [31.3 kB]
Get:49 stretch/main armhf libwacom2 armhf 0.22-1+b1 [15.7 kB]
Get:50 stretch/main armhf libinput-bin armhf 1.6.3-1 [10.8 kB]
Get:51 stretch/main armhf libinput10 armhf 1.6.3-1 [65.1 kB]
Get:52 stretch/main armhf xz-utils armhf 5.2.2-1.2+b1 [263 kB]
Get:53 stretch/main armhf libiso9660-8 armhf 0.83-4.3+b1 [132 kB]
Get:54 stretch/main armhf libnspr4 armhf 2:4.12-6 [95.3 kB]
Get:55 stretch/main armhf libnss3 armhf 2:3.26.2-1.1+deb9u1 [971 kB]
Get:7 stretch/main armhf armv7-eventlircd-osmc armhf 1.3.4 [36.8 kB]
Get:56 stretch/main armhf libaacs0 armhf 0.8.1-2 [43.9 kB]
Get:57 stretch-updates/main armhf tzdata all 2019a-0+deb9u1 [273 kB]
Get:58 stretch/main armhf dirmngr armhf 2.1.18-8~deb9u4 [559 kB]
Get:59 stretch/main armhf gnupg armhf 2.1.18-8~deb9u4 [1062 kB]
Get:60 stretch/main armhf gnupg-agent armhf 2.1.18-8~deb9u4 [513 kB]
Get:61 stretch/main armhf libc-l10n all 2.24-11+deb9u4 [820 kB]
Get:62 stretch/main armhf locales all 2.24-11+deb9u4 [3289 kB]
Get:63 stretch/main armhf libcurl3-gnutls armhf 7.52.1-5+deb9u9 [262 kB]
Get:64 stretch/main armhf libwayland-client0 armhf 1.12.0-1+deb9u1 [20.2 kB]
Get:65 stretch/main armhf libwayland-cursor0 armhf 1.12.0-1+deb9u1 [12.3 kB]
Get:66 stretch/main armhf libwayland-server0 armhf 1.12.0-1+deb9u1 [24.8 kB]
Get:67 stretch/main armhf openvpn armhf 2.4.0-6+deb9u3 [462 kB]
Fetched 138 MB in 1min 50s (1241 kB/s)
panic: Incorrect version for previously generated inversion list.
(Reading database ... 34017 files and directories currently installed.)
Preparing to unpack .../libc6_2.24-11+deb9u4_armhf.deb ...
panic: Incorrect version for previously generated inversion list.
dpkg: error processing archive /var/cache/apt/archives/libc6_2.24-11+deb9u4_armhf.deb (--unpack):
 subprocess new pre-installation script returned error exit status 29
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

I’ve done the sudo apt-get -f install, clean all commands I’ve found in the forum but nothing seems to solve this

Is there a step I’m missing? Thanks

Perhaps providing full logs? :wink:

1 Like


There are two: the before and after reboot for update

Those are just the Kodi logs. Please run grab-logs -A from the command line and let us know the URL.

TBH, this is a difficult one to solve. You could try to reinstall the package perl-base (sudo apt-get install --reinstall perl-base) but (a) it’s a very long-shot and (b) it might hit the same problem you’re getting with libc6.

Otherwise, the most sensible route is likely to be a backup and then reinstall.

Same issue, gotta reinstall it then. Thanks