"Hmm." errors during update

It seems the update is a bit funky and not going well:
RPi1 B, newly installed 2 days ago using Windows installer and today updating for the first time.
My OSMC: After selecting manual update I immediately (no delay) receive an errror about script parent.py failing.
Using SSH, the update runs but gives a strange message:

osmc@osmc:~$ sudo apt-get update && sudo apt-get dist-upgrade
Hit http://mirrordirector.raspbian.org jessie InRelease
Hit http://apt.osmc.tv jessie InRelease
Get:1 http://apt.osmc.tv jessie/main armhf Packages/DiffIndex [2023 B]
Ign http://apt.osmc.tv jessie/main Translation-en
Get:2 http://mirrordirector.raspbian.org jessie/main armhf Packages [8962 kB]
Get:3 http://mirrordirector.raspbian.org jessie/contrib armhf Packages [37.4 kB]
Get:4 http://mirrordirector.raspbian.org jessie/non-free armhf Packages [70.2 kB]
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en
Ign http://mirrordirector.raspbian.org jessie/main Translation-en
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en
Fetched 5651 kB in 34s (162 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... The following packages were automatically installed and are no longer required:
  armv6l-libafpclient-osmc libcurl3-gnutls rbp1-image-3.18.13-1-osmc
Use 'apt-get autoremove' to remove them.
Done
The following NEW packages will be installed:
  rbp1-image-4.1.5-1-osmc
The following packages will be upgraded:
  armv6l-eventlircd-osmc armv6l-libshairplay-osmc armv6l-network-osmc armv6l-remote-osmc
  armv6l-splash-osmc base-files-osmc bind9-host diskmount-osmc libbind9-90 libdns100
  libexpat1 libgnutls-deb0-28 libicu52 libisc95 libisccc90 libisccfg90 liblwres90
  libmysqlclient18 mediacenter-addon-osmc mediacenter-skin-osmc mysql-common
  rbp-bootloader-osmc rbp-userland-osmc rbp1-device-osmc rbp1-kernel-osmc rbp1-libcec-osmc
  rbp1-mediacenter-osmc wireless-firmware-osmc
28 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 81.8 MB of archives.
After this operation, 162 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y28 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 81.8 MB of archives.
After this operation, 162 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://apt.osmc.tv/ jessie/main rbp1-image-4.1.5-1-osmc armhf 1 [16.4 MB]
Get:2 http://mirrordirector.raspbian.org/raspbian/ jessie/main libgnutls-deb0-28 armhf 3.3.8-6+deb8u2 [624 kB]
Get:3 http://mirrordirector.raspbian.org/raspbian/ jessie/main libexpat1 armhf 2.1.0-6+deb8u1 [60.1 kB]
Get:4 http://mirrordirector.raspbian.org/raspbian/ jessie/main libicu52 armhf 52.1-8+deb8u2 [6554 kB]
Get:5 http://mirrordirector.raspbian.org/raspbian/ jessie/main mysql-common all 5.5.44-0+deb8u1 [74.3 kB]
Get:6 http://mirrordirector.raspbian.org/raspbian/ jessie/main libmysqlclient18 armhf 5.5.44-0+deb8u1 [616 kB]
Get:7 http://mirrordirector.raspbian.org/raspbian/ jessie/main bind9-host armhf 1:9.9.5.dfsg-9+deb8u2 [64.8 kB]
Get:8 http://mirrordirector.raspbian.org/raspbian/ jessie/main libisc95 armhf 1:9.9.5.dfsg-9+deb8u2 [148 kB]
Get:9 http://mirrordirector.raspbian.org/raspbian/ jessie/main libdns100 armhf 1:9.9.5.dfsg-9+deb8u2 [597 kB]
Get:10 http://mirrordirector.raspbian.org/raspbian/ jessie/main libisccc90 armhf 1:9.9.5.dfsg-9+deb8u2 [33.6 kB]
Get:11 http://mirrordirector.raspbian.org/raspbian/ jessie/main libisccfg90 armhf 1:9.9.5.dfsg-9+deb8u2 [49.8 kB]
Get:12 http://mirrordirector.raspbian.org/raspbian/ jessie/main libbind9-90 armhf 1:9.9.5.dfsg-9+deb8u2 [40.6 kB]
Get:13 http://mirrordirector.raspbian.org/raspbian/ jessie/main liblwres90 armhf 1:9.9.5.dfsg-9+deb8u2 [47.1 kB]
Get:14 http://apt.osmc.tv/ jessie/main wireless-firmware-osmc all 1.0.7 [4239 kB]
Get:15 http://apt.osmc.tv/ jessie/main armv6l-network-osmc armhf 1.5.6 [3828 B]
Get:16 http://apt.osmc.tv/ jessie/main armv6l-splash-osmc armhf 1.2.2 [224 kB]
Get:17 http://apt.osmc.tv/ jessie/main base-files-osmc all 1.5.6 [14.4 kB]
Get:18 http://apt.osmc.tv/ jessie/main diskmount-osmc all 1.3.2 [3648 B]
Get:19 http://apt.osmc.tv/ jessie/main rbp-bootloader-osmc armhf 1.1.4-0 [2133 kB]
Get:20 http://apt.osmc.tv/ jessie/main rbp-userland-osmc armhf 1.1.3-1 [1788 kB]
Get:21 http://apt.osmc.tv/ jessie/main armv6l-eventlircd-osmc armhf 1.1.6 [52.6 kB]
Get:22 http://apt.osmc.tv/ jessie/main armv6l-remote-osmc armhf 1.1.6 [1071 kB]
Get:23 http://apt.osmc.tv/ jessie/main mediacenter-addon-osmc all 3.0.39 [17.9 MB]
Get:24 http://apt.osmc.tv/ jessie/main mediacenter-skin-osmc all 3.0.7-1 [2726 kB]
Get:25 http://apt.osmc.tv/ jessie/main rbp1-libcec-osmc armhf 3.0.0-4 [327 kB]
Get:26 http://apt.osmc.tv/ jessie/main armv6l-libshairplay-osmc armhf 0.1.3 [190 kB]
Get:27 http://apt.osmc.tv/ jessie/main rbp1-mediacenter-osmc armhf 15.1.0-9 [25.8 MB]
Get:28 http://apt.osmc.tv/ jessie/main rbp1-kernel-osmc armhf 1.6.2 [1000 B]
Get:29 http://apt.osmc.tv/ jessie/main rbp1-device-osmc armhf 1.1.0 [1232 B]
Fetched 81.8 MB in 60s (1342 kB/s)
Preconfiguring packages ...
(Reading database ... 21964 files and directories currently installed.)
Preparing to unpack .../libgnutls-deb0-28_3.3.8-6+deb8u2_armhf.deb ...
Unpacking libgnutls-deb0-28:armhf (3.3.8-6+deb8u2) over (3.3.8-6+deb8u1) ...
Preparing to unpack .../libexpat1_2.1.0-6+deb8u1_armhf.deb ...
Unpacking libexpat1:armhf (2.1.0-6+deb8u1) over (2.1.0-6) ...
Preparing to unpack .../libicu52_52.1-8+deb8u2_armhf.deb ...
Unpacking libicu52:armhf (52.1-8+deb8u2) over (52.1-8) ...
Preparing to unpack .../mysql-common_5.5.44-0+deb8u1_all.deb ...
Unpacking mysql-common (5.5.44-0+deb8u1) over (5.5.43-0+deb8u1) ...
Preparing to unpack .../libmysqlclient18_5.5.44-0+deb8u1_armhf.deb ...
Unpacking libmysqlclient18:armhf (5.5.44-0+deb8u1) over (5.5.43-0+deb8u1) ...
Selecting previously unselected package rbp1-image-4.1.5-1-osmc.
Preparing to unpack .../rbp1-image-4.1.5-1-osmc_1_armhf.deb ...
Examining /etc/kernel/preinst.d/
run-parts: executing /etc/kernel/preinst.d/preprocess-rbp 4.1.5-1-osmc /boot/vmlinuz-4.1.5-1-osmc
Done.
Unpacking rbp1-image-4.1.5-1-osmc (1) ...
Preparing to unpack .../wireless-firmware-osmc_1.0.7_all.deb ...
Unpacking wireless-firmware-osmc (1.0.7) over (1.0.5) ...
Preparing to unpack .../armv6l-network-osmc_1.5.6_armhf.deb ...
Unpacking armv6l-network-osmc (1.5.6) over (1.5.2) ...
Preparing to unpack .../armv6l-splash-osmc_1.2.2_armhf.deb ...
Unpacking armv6l-splash-osmc (1.2.2) over (1.1.9) ...
Preparing to unpack .../base-files-osmc_1.5.6_all.deb ...
Unpacking base-files-osmc (1.5.6) over (1.5.2) ...
Preparing to unpack .../diskmount-osmc_1.3.2_all.deb ...
Unpacking diskmount-osmc (1.3.2) over (1.3.1) ...
Preparing to unpack .../rbp-bootloader-osmc_1.1.4-0_armhf.deb ...
Unpacking rbp-bootloader-osmc (1.1.4-0) over (1.0.5-0) ...
Preparing to unpack .../rbp-userland-osmc_1.1.3-1_armhf.deb ...
Unpacking rbp-userland-osmc (1.1.3-1) over (1.1.2-1) ...
Preparing to unpack .../armv6l-eventlircd-osmc_1.1.6_armhf.deb ...
Unpacking armv6l-eventlircd-osmc (1.1.6) over (1.1.5) ...
Preparing to unpack .../armv6l-remote-osmc_1.1.6_armhf.deb ...
Unpacking armv6l-remote-osmc (1.1.6) over (1.1.5) ...
Preparing to unpack .../mediacenter-addon-osmc_3.0.39_all.deb ...
Unpacking mediacenter-addon-osmc (3.0.39) over (3.0.13) ...
Preparing to unpack .../mediacenter-skin-osmc_3.0.7-1_all.deb ...
Unpacking mediacenter-skin-osmc (3.0.7-1) over (3.0.5-1) ...
Preparing to unpack .../rbp1-libcec-osmc_3.0.0-4_armhf.deb ...
Unpacking rbp1-libcec-osmc (3.0.0-4) over (2.1.4-3) ...
Preparing to unpack .../armv6l-libshairplay-osmc_0.1.3_armhf.deb ...
Unpacking armv6l-libshairplay-osmc (0.1.3) over (0.1.2) ...
Preparing to unpack .../rbp1-mediacenter-osmc_15.1.0-9_armhf.deb ...
Unpacking rbp1-mediacenter-osmc (15.1.0-9) over (14.2.0-16) ...
Preparing to unpack .../rbp1-kernel-osmc_1.6.2_armhf.deb ...
Unpacking rbp1-kernel-osmc (1.6.2) over (1.4.1) ...
Preparing to unpack .../rbp1-device-osmc_1.1.0_armhf.deb ...
Unpacking rbp1-device-osmc (1.1.0) over (1.0.9) ...
Preparing to unpack .../bind9-host_1%3a9.9.5.dfsg-9+deb8u2_armhf.deb ...
Unpacking bind9-host (1:9.9.5.dfsg-9+deb8u2) over (1:9.9.5.dfsg-9) ...
Preparing to unpack .../libisc95_1%3a9.9.5.dfsg-9+deb8u2_armhf.deb ...
Unpacking libisc95 (1:9.9.5.dfsg-9+deb8u2) over (1:9.9.5.dfsg-9) ...
Preparing to unpack .../libdns100_1%3a9.9.5.dfsg-9+deb8u2_armhf.deb ...
Unpacking libdns100 (1:9.9.5.dfsg-9+deb8u2) over (1:9.9.5.dfsg-9) ...
Preparing to unpack .../libisccc90_1%3a9.9.5.dfsg-9+deb8u2_armhf.deb ...
Unpacking libisccc90 (1:9.9.5.dfsg-9+deb8u2) over (1:9.9.5.dfsg-9) ...
Preparing to unpack .../libisccfg90_1%3a9.9.5.dfsg-9+deb8u2_armhf.deb ...
Unpacking libisccfg90 (1:9.9.5.dfsg-9+deb8u2) over (1:9.9.5.dfsg-9) ...
Preparing to unpack .../libbind9-90_1%3a9.9.5.dfsg-9+deb8u2_armhf.deb ...
Unpacking libbind9-90 (1:9.9.5.dfsg-9+deb8u2) over (1:9.9.5.dfsg-9) ...
Preparing to unpack .../liblwres90_1%3a9.9.5.dfsg-9+deb8u2_armhf.deb ...
Unpacking liblwres90 (1:9.9.5.dfsg-9+deb8u2) over (1:9.9.5.dfsg-9) ...
Processing triggers for mime-support (3.58) ...
Setting up libgnutls-deb0-28:armhf (3.3.8-6+deb8u2) ...
Setting up libexpat1:armhf (2.1.0-6+deb8u1) ...
Setting up libicu52:armhf (52.1-8+deb8u2) ...
Setting up mysql-common (5.5.44-0+deb8u1) ...
Setting up libmysqlclient18:armhf (5.5.44-0+deb8u1) ...
Setting up rbp1-image-4.1.5-1-osmc (1) ...

 Hmm. There is a symbolic link /lib/modules/4.1.5-1-osmc/build
 However, I can not read it: No such file or directory
 Therefore, I am deleting /lib/modules/4.1.5-1-osmc/build


 Hmm. The package shipped with a symbolic link /lib/modules/4.1.5-1-osmc/source
 However, I can not read the target: No such file or directory
 Therefore, I am deleting /lib/modules/4.1.5-1-osmc/source

Running depmod.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.1.5-1-osmc /boot/vmlinuz-4.1.5-1-osmc
run-parts: executing /etc/kernel/postinst.d/inform-updater 4.1.5-1-osmc /boot/vmlinuz-4.1.5-1-osmc
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.1.5-1-osmc /boot/vmlinuz-4.1.5-1-osmc
run-parts: executing /etc/kernel/postinst.d/process-vmlinuz-rbp 4.1.5-1-osmc /boot/vmlinuz-4.1.5-1-osmc
Setting up wireless-firmware-osmc (1.0.7) ...
Setting up armv6l-network-osmc (1.5.6) ...
Setting up armv6l-splash-osmc (1.2.2) ...
Setting up base-files-osmc (1.5.6) ...
Setting up diskmount-osmc (1.3.2) ...
Setting up rbp-bootloader-osmc (1.1.4-0) ...
Setting up rbp-userland-osmc (1.1.3-1) ...
Setting up armv6l-eventlircd-osmc (1.1.6) ...
Setting up armv6l-remote-osmc (1.1.6) ...
Setting up mediacenter-addon-osmc (3.0.39) ...
Setting up mediacenter-skin-osmc (3.0.7-1) ...
Setting up rbp1-libcec-osmc (3.0.0-4) ...
Setting up armv6l-libshairplay-osmc (0.1.3) ...
Setting up rbp1-mediacenter-osmc (15.1.0-9) ...
Setting up rbp1-kernel-osmc (1.6.2) ...
Setting up rbp1-device-osmc (1.1.0) ...
Setting up libisc95 (1:9.9.5.dfsg-9+deb8u2) ...
Setting up libdns100 (1:9.9.5.dfsg-9+deb8u2) ...
Setting up libisccc90 (1:9.9.5.dfsg-9+deb8u2) ...
Setting up libisccfg90 (1:9.9.5.dfsg-9+deb8u2) ...
Setting up libbind9-90 (1:9.9.5.dfsg-9+deb8u2) ...
Setting up liblwres90 (1:9.9.5.dfsg-9+deb8u2) ...
Setting up bind9-host (1:9.9.5.dfsg-9+deb8u2) ...
Processing triggers for libc-bin (2.19-18) ...
osmc@osmc:~$

That’s not an error. That is completely fine warning. Please upload the Kodi.log so we can see why My OSMC has crashed.

Sam

OK good to know!
OSMC did not crash, I just exited it before running the upgrade via SSH.

I did find something else strange:

The following packages were automatically installed and are no longer required:
armv6l-libafpclient-osmc libcurl3-gnutls rbp1-image-3.18.13-1-osmc
Use ‘apt-get autoremove’ to remove them.
Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
osmc@osmc:~$ apt-get autoremove

Now I get a message that I am trying to remove a kernel that I am using, which could lead to disaster. I misread the final sentence and selected NO, as in do not proceed. But the final question was “Do you want to abort?”

So I did proceed and did a reboot afterwards: OSMC still works fine, with Kodi 15.1 :smile:

Compare you running (active) kernel with uname -a vs the kernel sudo apt-get remove wants to get rid of

Sam

it is already done and OSMC works fine. But for reference, this is the info:

osmc@osmc:~$ apt-get autoremove
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
osmc@osmc:~$ sudo apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  armv6l-libafpclient-osmc libcurl3-gnutls rbp1-image-3.18.13-1-osmc
0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
After this operation, 52.7 MB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 24591 files and directories currently installed.)
Removing armv6l-libafpclient-osmc (0.8.1-3) ...
Removing libcurl3-gnutls:armhf (7.38.0-4+deb8u2) ...
Removing rbp1-image-3.18.13-1-osmc (1) ...

Ok, proceeding with removing running kernel image.
Examining /etc/kernel/prerm.d.
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.18.13-1-osmc /boot/vmlinuz-3.18.13-1-osmc
Processing triggers for libc-bin (2.19-18) ...
osmc@osmc:~$ 

And the output of uname -a:

osmc@osmc:~$ uname -a
Linux osmc 4.1.5-1-osmc #1 PREEMPT Wed Aug 19 22:08:45 UTC 2015 armv6l GNU/Linux
osmc@osmc:~$

I guess this will happen to everyone who update now right after installing the image via the installer. No big deal, OSMC still runs fine AND I have an extra 50MB free now :slight_smile:

No errors there, looks fine.

Sam