Failed to automount /dev/sda1: Not Authorized

It seems that auto-mounting of my NTFS hard drive is not working anymore.
Max USB current is set. The PSU I’m using worked for years.

In the log file is an error: udisks-glue[297]: Failed to automount /dev/sda1: Not Authorized

The full log can be found here.

When typing sudo mount -t ntfs /dev/sda1 /media via ssh it will be mounted correctly.

There is another strange behavior. I don’t know wether it’s related to the same issue. When shutting down or rebooting via GUI it gets stuck. When rebooting via ssh I must be root otherwise I get this error:
osmc@osmc:~$ reboot
==== AUTHENTICATING FOR org.freedesktop.login1.reboot ===
Authentication is required for rebooting the system.
Authenticating as: root
Password:
polkit-agent-helper-1: pam_authenticate failed: Authentication failure
==== AUTHENTICATION FAILED ===
Failed to execute operation: Access denied
Must be root.

I have no clue what these errors mean. I’ve already tried repairing the hard drive with Windows and rejecting it correctly.

This sounds like you may have experienced corruption: possibly of some PolicyKit definitions.

Can you post a full log?

Also try a fresh install on a separate SD card to see if the disk is automatically mounted.

Thanks

The full log is here: http://paste.osmc.io/bedegufeqa

I tried a fresh install yesterday on the same sd card after saving the image. The hard drive was mounted indeed. After sudo apt-get upgrade with the new install the hdd disappeared again. That’s why I changed back to the old install.

NEVER use that command on OSMC, it will brake your system eventually!
Use

sudo apt-get update
sudo apt-get dist-upgrade

Oh, thanks for the hint.

This is what caused the issues, I suspect.

APT log would verify. But I suspect if you do a reinstall and a proper dist-upgrade you won’t have any issues.

I hope this is the right log:

Start-Date: 2015-08-01  21:59:41
Install: perl-modules:armhf (5.20.2-3+deb8u1, automatic), python-ntdb:armhf (1.0-5, automatic), python-ldb:armhf (1.1.17-2, automatic), perl:armhf (5.20.2-3+deb8u1, automatic), libfile-copy-recursive-perl:armhf (0.38-1, automatic), libgdbm3:armhf (1.8.3-13.1, automatic), smb-app-osmc:armhf (1.1.8), samba:armhf (4.1.17+dfsg-2, automatic), samba-common-bin:armhf (4.1.17+dfsg-2, automatic), python-samba:armhf (4.1.17+dfsg-2, automatic), tdb-tools:armhf (1.3.1-1, automatic), libkdc2-heimdal:armhf (1.6~rc2+dfsg-9, automatic), python-tdb:armhf (1.3.1-1, automatic), samba-dsdb-modules:armhf (4.1.17+dfsg-2, automatic), libhdb9-heimdal:armhf (1.6~rc2+dfsg-9, automatic), python-crypto:armhf (2.6.1-5+b2, automatic), update-inetd:armhf (4.43, automatic), python-dnspython:armhf (1.12.0-1, automatic)

Start-Date: 2015-08-01  22:06:50
Install: perl-modules:armhf (5.20.2-3+deb8u1, automatic), python-ntdb:armhf (1.0-5, automatic), python-ldb:armhf (1.1.17-2, automatic), perl:armhf (5.20.2-3+deb8u1, automatic), libfile-copy-recursive-perl:armhf (0.38-1, automatic), libgdbm3:armhf (1.8.3-13.1, automatic), smb-app-osmc:armhf (1.1.8), samba:armhf (4.1.17+dfsg-2, automatic), samba-common-bin:armhf (4.1.17+dfsg-2, automatic), python-samba:armhf (4.1.17+dfsg-2, automatic), tdb-tools:armhf (1.3.1-1, automatic), libkdc2-heimdal:armhf (1.6~rc2+dfsg-9, automatic), python-tdb:armhf (1.3.1-1, automatic), samba-dsdb-modules:armhf (4.1.17+dfsg-2, automatic), libhdb9-heimdal:armhf (1.6~rc2+dfsg-9, automatic), python-crypto:armhf (2.6.1-5+b2, automatic), update-inetd:armhf (4.43, automatic), python-dnspython:armhf (1.12.0-1, automatic)
Error: Sub-process /usr/bin/dpkg returned an error code (2)
End-Date: 2015-08-01  22:06:50

Start-Date: 2015-08-02  00:31:44
Install: perl-modules:armhf (5.20.2-3+deb8u1, automatic), python-ntdb:armhf (1.0-5, automatic), python-ldb:armhf (1.1.17-2, automatic), perl:armhf (5.20.2-3+deb8u1, automatic), libfile-copy-recursive-perl:armhf (0.38-1, automatic), libgdbm3:armhf (1.8.3-13.1, automatic), smb-app-osmc:armhf (1.1.8), samba:armhf (4.1.17+dfsg-2, automatic), samba-common-bin:armhf (4.1.17+dfsg-2, automatic), python-samba:armhf (4.1.17+dfsg-2, automatic), tdb-tools:armhf (1.3.1-1, automatic), libkdc2-heimdal:armhf (1.6~rc2+dfsg-9, automatic), python-tdb:armhf (1.3.1-1, automatic), samba-dsdb-modules:armhf (4.1.17+dfsg-2, automatic), libhdb9-heimdal:armhf (1.6~rc2+dfsg-9, automatic), python-crypto:armhf (2.6.1-5+b2, automatic), update-inetd:armhf (4.43, automatic), python-dnspython:armhf (1.12.0-1, automatic)
End-Date: 2015-08-02  00:38:19

Start-Date: 2015-09-14  16:13:41
Commandline: apt-get -o APT::Status-Fd=4 -o APT::Keep-Fds::=5 -o APT::Keep-Fds::=6 -f -y dist-upgrade
Install: rbp2-image-4.1.5-1-osmc:armhf (1, automatic)
Upgrade: tzdata:armhf (2015d-0+deb8u1, 2015f-0+deb8u1), apt:armhf (1.0.9.8, 1.0.9.8.1), libudev1:armhf (215-17+deb8u1, 215-17+deb8u2), armv7-libshairplay-osmc:armhf (0.1.2, 0.1.3), dbus:armhf (1.8.18-0+deb8u1, 1.8.20-0+deb8u1), systemd-sysv:armhf (215-17+deb8u1, 215-17+deb8u2), multiarch-support:armhf (2.19-18, 2.19-18+deb8u1), wireless-firmware-osmc:armhf (1.0.5, 1.1.0), python-apt-common:armhf (0.9.3.11, 0.9.3.12), rbp-bootloader-osmc:armhf (1.0.5-0, 1.1.4-0), libisccc90:armhf (9.9.5.dfsg-9, 9.9.5.dfsg-9+deb8u3), systemd:armhf (215-17+deb8u1, 215-17+deb8u2), libc6:armhf (2.19-18, 2.19-18+deb8u1), libsystemd0:armhf (215-17+deb8u1, 215-17+deb8u2), rbp2-kernel-osmc:armhf (1.4.1, 1.6.2), mediacenter-skin-osmc:armhf (3.0.5-1, 3.0.7-1), udev:armhf (215-17+deb8u1, 215-17+deb8u2), libdbus-1-3:armhf (1.8.18-0+deb8u1, 1.8.20-0+deb8u1), libisc95:armhf (9.9.5.dfsg-9, 9.9.5.dfsg-9+deb8u3), libapt-pkg4.12:armhf (1.0.9.8, 1.0.9.8.1), libbind9-90:armhf (9.9.5.dfsg-9, 9.9.5.dfsg-9+deb8u3), libdns100:armhf (9.9.5.dfsg-9, 9.9.5.dfsg-9+deb8u3), python-apt:armhf (0.9.3.11, 0.9.3.12), locales:armhf (2.19-18, 2.19-18+deb8u1), rbp2-mediacenter-osmc:armhf (14.2.0-16, 15.1.0-9), base-files:armhf (8+deb8u1, 8+deb8u2), mediacenter-addon-osmc:armhf (3.0.13, 3.0.39), rbp2-libcec-osmc:armhf (2.1.4-3, 3.0.0-4), libldap-2.4-2:armhf (2.4.40+dfsg-1, 2.4.40+dfsg-1+deb8u1), liblwres90:armhf (9.9.5.dfsg-9, 9.9.5.dfsg-9+deb8u3), libgnutls-deb0-28:armhf (3.3.8-6+deb8u1, 3.3.8-6+deb8u3), apt-utils:armhf (1.0.9.8, 1.0.9.8.1), libapt-inst1.5:armhf (1.0.9.8, 1.0.9.8.1), libpam-systemd:armhf (215-17+deb8u1, 215-17+deb8u2), libexpat1:armhf (2.1.0-6+b3, 2.1.0-6+deb8u1), libisccfg90:armhf (9.9.5.dfsg-9, 9.9.5.dfsg-9+deb8u3), mysql-common:armhf (5.5.43-0+deb8u1, 5.5.44-0+deb8u1), libicu52:armhf (52.1-8, 52.1-8+deb8u2), libmysqlclient18:armhf (5.5.43-0+deb8u1, 5.5.44-0+deb8u1), armv7-network-osmc:armhf (1.5.2, 1.5.6), armv7-splash-osmc:armhf (1.1.9, 1.2.2), bind9-host:armhf (9.9.5.dfsg-9, 9.9.5.dfsg-9+deb8u3), base-files-osmc:armhf (1.5.2, 1.5.6), armv7-remote-osmc:armhf (1.1.5, 1.1.6), libc-bin:armhf (2.19-18, 2.19-18+deb8u1), rbp-userland-osmc:armhf (1.1.2-1, 1.1.3-1), armv7-eventlircd-osmc:armhf (1.1.5, 1.1.6), rbp2-device-osmc:armhf (1.2.2, 1.2.3), diskmount-osmc:armhf (1.3.1, 1.3.8), libgudev-1.0-0:armhf (215-17+deb8u1, 215-17+deb8u2)
End-Date: 2015-09-14  16:39:46

Start-Date: 2015-09-30  19:02:35
Commandline: apt-get -o APT::Status-Fd=4 -o APT::Keep-Fds::=5 -o APT::Keep-Fds::=6 -f -y dist-upgrade
Install: rbp2-image-4.2.1-1-osmc:armhf (1, automatic), libnss-myhostname:armhf (0.3-9, automatic), libgif4:armhf (4.1.6-11, automatic), apt-transport-https:armhf (1.0.9.8.1, automatic)
Upgrade: libsasl2-2:armhf (2.1.26.dfsg1-13, 2.1.26.dfsg1-13+deb8u1), libsasl2-modules-db:armhf (2.1.26.dfsg1-13, 2.1.26.dfsg1-13+deb8u1), rbp-bootloader-osmc:armhf (1.1.4-0, 1.1.8-0), rpcbind:armhf (0.2.1-6, 0.2.1-6+deb8u1), rbp2-kernel-osmc:armhf (1.6.2, 1.7.2), mediacenter-skin-osmc:armhf (3.0.7-1, 3.0.8-1), armv7-connman-osmc:armhf (1.2.9-3, 1.3.0-1), rbp2-mediacenter-osmc:armhf (15.1.0-9, 15.1.0-21), mediacenter-addon-osmc:armhf (3.0.39, 3.0.494), libicu52:armhf (52.1-8+deb8u2, 52.1-8+deb8u3), armv7-network-osmc:armhf (1.5.6, 1.5.7), base-files-osmc:armhf (1.5.6, 1.6.0), armv7-libnfs-osmc:armhf (1.9.6-1, 1.9.8-2), rbp-userland-osmc:armhf (1.1.3-1, 1.1.6-1), perftune-osmc:armhf (1.1.3, 1.1.4), armv7-eventlircd-osmc:armhf (1.1.6, 1.1.8), rbp2-device-osmc:armhf (1.2.3, 1.2.4), diskmount-osmc:armhf (1.3.8, 1.4.0)
End-Date: 2015-09-30  19:19:45

Start-Date: 2015-10-31  15:45:52
Commandline: apt-get -o APT::Status-Fd=4 -o APT::Keep-Fds::=5 -o APT::Keep-Fds::=6 -f -y dist-upgrade
Install: rbp2-image-4.2.3-2-osmc:armhf (2, automatic)
Upgrade: tzdata:armhf (2015f-0+deb8u1, 2015g-0+deb8u1), rbp-bootloader-osmc:armhf (1.1.8-0, 1.2.0-0), rbp2-kernel-osmc:armhf (1.7.2, 1.8.0), armv7-connman-osmc:armhf (1.3.0-1, 1.3.0-2), rbp2-mediacenter-osmc:armhf (15.1.0-21, 15.2.0-1), mediacenter-addon-osmc:armhf (3.0.494, 3.0.507), ssh-app-osmc:armhf (1.1.3, 1.1.8), mysql-common:armhf (5.5.44-0+deb8u1, 5.5.46-0+deb8u1), libmysqlclient18:armhf (5.5.44-0+deb8u1, 5.5.46-0+deb8u1), armv7-network-osmc:armhf (1.5.7, 1.5.9), base-files-osmc:armhf (1.6.0, 1.6.5), armv7-libnfs-osmc:armhf (1.9.8-2, 1.9.8-4), libfreetype6:armhf (2.5.2-3, 2.5.2-3+deb8u1), perftune-osmc:armhf (1.1.4, 1.1.5)
End-Date: 2015-10-31  15:58:46

Start-Date: 2015-12-12  16:13:31
Commandline: apt-get -o APT::Status-Fd=4 -o APT::Keep-Fds::=5 -o APT::Keep-Fds::=6 -f -y dist-upgrade
Install: rbp2-image-4.3.0-10-osmc:armhf (10, automatic), armv7-libbluray-osmc:armhf (0.9.1-1, automatic), armv7-libsqlite-osmc:armhf (3.9.2.0-2, automatic)
Upgrade: libgssapi-krb5-2:armhf (1.12.1+dfsg-19, 1.12.1+dfsg-19+deb8u1), libkrb5-3:armhf (1.12.1+dfsg-19, 1.12.1+dfsg-19+deb8u1), libk5crypto3:armhf (1.12.1+dfsg-19, 1.12.1+dfsg-19+deb8u1), dpkg:armhf (1.17.25, 1.17.26), libpng12-0:armhf (1.2.50-2+b2, 1.2.50-2+deb8u1), rbp-bootloader-osmc:armhf (1.2.0-0, 1.2.1-0), rbp2-kernel-osmc:armhf (1.8.0, 1.9.7), libkrb5support0:armhf (1.12.1+dfsg-19, 1.12.1+dfsg-19+deb8u1), armv7-connman-osmc:armhf (1.3.0-2, 1.3.0-3), rbp2-mediacenter-osmc:armhf (15.2.0-1, 15.2.0-8), mediacenter-addon-osmc:armhf (3.0.507, 3.0.517), ntp:armhf (4.2.6.p5+dfsg-7, 4.2.6.p5+dfsg-7+deb8u1), rbp2-libcec-osmc:armhf (3.0.0-4, 3.0.1-8), openssl:armhf (1.0.1k-3+deb8u1, 1.0.1k-3+deb8u2), armv7-network-osmc:armhf (1.5.9, 1.6.1), armv7-splash-osmc:armhf (1.2.2, 1.2.4), base-files-osmc:armhf (1.6.5, 1.6.8), wpasupplicant:armhf (2.3-1+deb8u1, 2.3-1+deb8u3), libssl1.0.0:armhf (1.0.1k-3+deb8u1, 1.0.1k-3+deb8u2), rbp-userland-osmc:armhf (1.1.6-1, 1.1.6-3), armv7-eventlircd-osmc:armhf (1.1.8, 1.1.9), diskmount-osmc:armhf (1.4.0, 1.4.1)
End-Date: 2015-12-12  16:29:51

Start-Date: 2015-12-12  16:30:09
Commandline: apt-get -o APT::Status-Fd=4 -o APT::Keep-Fds::=5 -o APT::Keep-Fds::=6 -y purge rbp2-image-3.18.13-1-osmc rbp2-image-4.1.5-1-osmc rbp2-image-4.2.1-1-osmc
Purge: rbp2-image-3.18.13-1-osmc:armhf (1), rbp2-image-4.2.1-1-osmc:armhf (1), rbp2-image-4.1.5-1-osmc:armhf (1)
End-Date: 2015-12-12  16:30:35

Start-Date: 2015-12-29  18:51:26
Commandline: apt-get -o APT::Status-Fd=4 -o APT::Keep-Fds::=5 -o APT::Keep-Fds::=6 -f -y dist-upgrade
Install: hfsprogs:armhf (332.25-11, automatic), rbp2-image-4.3.3-2-osmc:armhf (2, automatic)
Upgrade: libxml2:armhf (2.9.1+dfsg1-5, 2.9.1+dfsg1-5+deb8u1), rbp-bootloader-osmc:armhf (1.2.1-0, 1.2.2-2), libisccc90:armhf (9.9.5.dfsg-9+deb8u3, 9.9.5.dfsg-9+deb8u4), armv7-librtmp-osmc:armhf (2.4.0-8, 2.4.0-9), rbp2-kernel-osmc:armhf (1.9.7, 2.0.4), mediacenter-skin-osmc:armhf (3.0.8-1, 3.1.0-1), armv7-connman-osmc:armhf (1.3.0-3, 1.3.0-4), libisc95:armhf (9.9.5.dfsg-9+deb8u3, 9.9.5.dfsg-9+deb8u4), libbind9-90:armhf (9.9.5.dfsg-9+deb8u3, 9.9.5.dfsg-9+deb8u4), libdns100:armhf (9.9.5.dfsg-9+deb8u3, 9.9.5.dfsg-9+deb8u4), mediacenter-addon-osmc:armhf (3.0.517, 3.0.524), rbp2-libcec-osmc:armhf (3.0.1-8, 3.0.1-13), liblwres90:armhf (9.9.5.dfsg-9+deb8u3, 9.9.5.dfsg-9+deb8u4), libisccfg90:armhf (9.9.5.dfsg-9+deb8u3, 9.9.5.dfsg-9+deb8u4), armv7-splash-osmc:armhf (1.2.4, 1.2.5), bind9-host:armhf (9.9.5.dfsg-9+deb8u3, 9.9.5.dfsg-9+deb8u4), base-files-osmc:armhf (1.6.8, 1.7.2), rbp-userland-osmc:armhf (1.1.6-3, 1.1.7-3), rbp2-device-osmc:armhf (1.2.4, 1.2.7), diskmount-osmc:armhf (1.4.1, 1.4.2)
End-Date: 2015-12-29  19:00:29

Start-Date: 2015-12-29  19:00:46
Commandline: apt-get -o APT::Status-Fd=4 -o APT::Keep-Fds::=5 -o APT::Keep-Fds::=6 -y purge rbp2-image-4.2.3-2-osmc
Purge: rbp2-image-4.2.3-2-osmc:armhf (2)
End-Date: 2015-12-29  19:00:58

Start-Date: 2016-02-28  14:34:00
Commandline: apt-get -f dist-upgrade
Install: rbp2-image-4.4.1-1-osmc:armhf (1, automatic), armv7-libcrossguid-osmc:armhf (1.0.0-2, automatic)
Upgrade: libgssapi-krb5-2:armhf (1.12.1+dfsg-19+deb8u1, 1.12.1+dfsg-19+deb8u2), exfat-fuse:armhf (1.1.0-2, 1.1.0-2+deb8u1), perl-modules:armhf (5.20.2-3+deb8u1, 5.20.2-3+deb8u3), apt:armhf (1.0.9.8.1, 1.0.9.8.2), libkrb5-3:armhf (1.12.1+dfsg-19+deb8u1, 1.12.1+dfsg-19+deb8u2), libudev1:armhf (215-17+deb8u2, 215-17+deb8u3), libk5crypto3:armhf (1.12.1+dfsg-19+deb8u1, 1.12.1+dfsg-19+deb8u2), python-ldb:armhf (1.1.17-2, 1.1.17-2+deb8u1), perl:armhf (5.20.2-3+deb8u1, 5.20.2-3+deb8u3), libpam-modules-bin:armhf (1.1.8-3.1, 1.1.8-3.1+deb8u1), libpam-modules:armhf (1.1.8-3.1, 1.1.8-3.1+deb8u1), armv7-libshairplay-osmc:armhf (0.1.3, 0.1.4), libldb1:armhf (1.1.17-2, 1.1.17-2+deb8u1), fuse:armhf (2.9.3-15+deb8u1, 2.9.3-15+deb8u2), libgraphite2-3:armhf (1.2.4-3, 1.3.5-1~deb8u1), systemd-sysv:armhf (215-17+deb8u2, 215-17+deb8u3), multiarch-support:armhf (2.19-18+deb8u1, 2.19-18+deb8u3), libcurl3:armhf (7.38.0-4+deb8u2, 7.38.0-4+deb8u3), openssh-sftp-server:armhf (6.7p1-5, 6.7p1-5+deb8u1), libpng12-0:armhf (1.2.50-2+deb8u1, 1.2.50-2+deb8u2), sudo:armhf (1.8.10p3-1+deb8u2, 1.8.10p3-1+deb8u3), libgcrypt20:armhf (1.6.3-2, 1.6.3-2+deb8u1), samba:armhf (4.1.17+dfsg-2, 4.1.17+dfsg-2+deb8u1), samba-common-bin:armhf (4.1.17+dfsg-2, 4.1.17+dfsg-2+deb8u1), openssh-server:armhf (6.7p1-5, 6.7p1-5+deb8u1), libssh2-1:armhf (1.4.3-4.1, 1.4.3-4.1+deb8u1), rbp-bootloader-osmc:armhf (1.2.2-2, 1.2.4-1), libisccc90:armhf (9.9.5.dfsg-9+deb8u4, 9.9.5.dfsg-9+deb8u5), exfat-utils:armhf (1.1.0-2, 1.1.0-2+deb8u1), systemd:armhf (215-17+deb8u2, 215-17+deb8u3), libc6:armhf (2.19-18+deb8u1, 2.19-18+deb8u3), samba-common:armhf (4.1.17+dfsg-2, 4.1.17+dfsg-2+deb8u1), libsystemd0:armhf (215-17+deb8u2, 215-17+deb8u3), rbp2-kernel-osmc:armhf (2.0.4, 2.2.7), libkrb5support0:armhf (1.12.1+dfsg-19+deb8u1, 1.12.1+dfsg-19+deb8u2), mediacenter-skin-osmc:armhf (3.1.0-1, 3.1.0-4), python-samba:armhf (4.1.17+dfsg-2, 4.1.17+dfsg-2+deb8u1), libfuse2:armhf (2.9.3-15+deb8u1, 2.9.3-15+deb8u2), libpcre3:armhf (8.35-3.3, 8.35-3.3+deb8u2), udev:armhf (215-17+deb8u2, 215-17+deb8u3), curl:armhf (7.38.0-4+deb8u2, 7.38.0-4+deb8u3), armv7-connman-osmc:armhf (1.3.0-4, 1.3.0-5), libisc95:armhf (9.9.5.dfsg-9+deb8u4, 9.9.5.dfsg-9+deb8u5), libapt-pkg4.12:armhf (1.0.9.8.1, 1.0.9.8.2), libbind9-90:armhf (9.9.5.dfsg-9+deb8u4, 9.9.5.dfsg-9+deb8u5), perl-base:armhf (5.20.2-3+deb8u1, 5.20.2-3+deb8u3), samba-dsdb-modules:armhf (4.1.17+dfsg-2, 4.1.17+dfsg-2+deb8u1), libdns100:armhf (9.9.5.dfsg-9+deb8u4, 9.9.5.dfsg-9+deb8u5), locales:armhf (2.19-18+deb8u1, 2.19-18+deb8u3), rbp2-mediacenter-osmc:armhf (15.2.0-8, 16.0.0-1), libsmbclient:armhf (4.1.17+dfsg-2, 4.1.17+dfsg-2+deb8u1), base-files:armhf (8+deb8u2, 8+deb8u3), mediacenter-addon-osmc:armhf (3.0.524, 3.0.554), libldap-2.4-2:armhf (2.4.40+dfsg-1+deb8u1, 2.4.40+dfsg-1+deb8u2), liblwres90:armhf (9.9.5.dfsg-9+deb8u4, 9.9.5.dfsg-9+deb8u5), apt-utils:armhf (1.0.9.8.1, 1.0.9.8.2), libapt-inst1.5:armhf (1.0.9.8.1, 1.0.9.8.2), openssh-client:armhf (6.7p1-5, 6.7p1-5+deb8u1), libpam-systemd:armhf (215-17+deb8u2, 215-17+deb8u3), libpam0g:armhf (1.1.8-3.1, 1.1.8-3.1+deb8u1), libcurl3-gnutls:armhf (7.38.0-4+deb8u2, 7.38.0-4+deb8u3), libisccfg90:armhf (9.9.5.dfsg-9+deb8u4, 9.9.5.dfsg-9+deb8u5), mysql-common:armhf (5.5.46-0+deb8u1, 5.5.47-0+deb8u1), libmysqlclient18:armhf (5.5.46-0+deb8u1, 5.5.47-0+deb8u1), samba-libs:armhf (4.1.17+dfsg-2, 4.1.17+dfsg-2+deb8u1), armv7-splash-osmc:armhf (1.2.5, 1.2.6), bind9-host:armhf (9.9.5.dfsg-9+deb8u4, 9.9.5.dfsg-9+deb8u5), libtiff5:armhf (4.0.3-12.3, 4.0.3-12.3+deb8u1), base-files-osmc:armhf (1.7.2, 1.8.4), libpcrecpp0:armhf (8.35-3.3, 8.35-3.3+deb8u2), ca-certificates:armhf (20141019, 20141019+deb8u1), login:armhf (4.2-3, 4.2-3+deb8u1), armv7-remote-osmc:armhf (1.1.6, 1.1.7), libc-bin:armhf (2.19-18+deb8u1, 2.19-18+deb8u3), libpam-runtime:armhf (1.1.8-3.1, 1.1.8-3.1+deb8u1), libwbclient0:armhf (4.1.17+dfsg-2, 4.1.17+dfsg-2+deb8u1), passwd:armhf (4.2-3, 4.2-3+deb8u1), libssh-4:armhf (0.6.3-4, 0.6.3-4+deb8u2), rbp-userland-osmc:armhf (1.1.7-3, 1.1.7-6), perftune-osmc:armhf (1.1.5, 1.1.6), apt-transport-https:armhf (1.0.9.8.1, 1.0.9.8.2), libgudev-1.0-0:armhf (215-17+deb8u2, 215-17+deb8u3)
End-Date: 2016-02-28  15:10:55

Start-Date: 2016-03-05  03:11:32
Commandline: apt-get -o APT::Status-Fd=4 -o APT::Keep-Fds::=5 -o APT::Keep-Fds::=6 -f -y dist-upgrade
Install: rbp2-image-4.4.3-3-osmc:armhf (3, automatic)
Upgrade: perl-modules:armhf (5.20.2-3+deb8u3, 5.20.2-3+deb8u4), perl:armhf (5.20.2-3+deb8u3, 5.20.2-3+deb8u4), rbp-bootloader-osmc:armhf (1.2.4-1, 1.2.5-1), rbp2-kernel-osmc:armhf (2.2.7, 2.3.6), python-pil:armhf (2.6.1-2, 2.6.1-2+deb8u2), perl-base:armhf (5.20.2-3+deb8u3, 5.20.2-3+deb8u4), mediacenter-addon-osmc:armhf (3.0.554, 3.0.610), openssl:armhf (1.0.1k-3+deb8u2, 1.0.1k-3+deb8u4), base-files-osmc:armhf (1.8.4, 1.8.6), armv7-remote-osmc:armhf (1.1.7, 1.1.9), libssl1.0.0:armhf (1.0.1k-3+deb8u2, 1.0.1k-3+deb8u4), python-imaging:armhf (2.6.1-2, 2.6.1-2+deb8u2), perftune-osmc:armhf (1.1.6, 1.1.8), rbp2-device-osmc:armhf (1.2.7, 1.2.9), diskmount-osmc:armhf (1.4.2, 1.4.3)
End-Date: 2016-03-05  03:20:48

Start-Date: 2016-03-05  03:21:15
Commandline: apt-get -o APT::Status-Fd=4 -o APT::Keep-Fds::=5 -o APT::Keep-Fds::=6 -y purge rbp2-image-4.3.0-10-osmc rbp2-image-4.3.3-2-osmc
Purge: rbp2-image-4.3.0-10-osmc:armhf (10), rbp2-image-4.3.3-2-osmc:armhf (2)
End-Date: 2016-03-05  03:21:43

Start-Date: 2016-03-28  13:53:54
Commandline: apt-get -o APT::Status-Fd=4 -o APT::Keep-Fds::=5 -o APT::Keep-Fds::=6 -f -y dist-upgrade
Upgrade: tzdata:armhf (2015g-0+deb8u1, 2016c-0+deb8u1), libjasper1:armhf (1.900.1-debian1-2.4, 1.900.1-debian1-2.4+deb8u1), libgraphite2-3:armhf (1.3.5-1~deb8u1, 1.3.6-1~deb8u1), samba:armhf (4.1.17+dfsg-2+deb8u1, 4.1.17+dfsg-2+deb8u2), samba-common-bin:armhf (4.1.17+dfsg-2+deb8u1, 4.1.17+dfsg-2+deb8u2), libisccc90:armhf (9.9.5.dfsg-9+deb8u5, 9.9.5.dfsg-9+deb8u6), samba-common:armhf (4.1.17+dfsg-2+deb8u1, 4.1.17+dfsg-2+deb8u2), python-samba:armhf (4.1.17+dfsg-2+deb8u1, 4.1.17+dfsg-2+deb8u2), libisc95:armhf (9.9.5.dfsg-9+deb8u5, 9.9.5.dfsg-9+deb8u6), libbind9-90:armhf (9.9.5.dfsg-9+deb8u5, 9.9.5.dfsg-9+deb8u6), samba-dsdb-modules:armhf (4.1.17+dfsg-2+deb8u1, 4.1.17+dfsg-2+deb8u2), libdns100:armhf (9.9.5.dfsg-9+deb8u5, 9.9.5.dfsg-9+deb8u6), libsmbclient:armhf (4.1.17+dfsg-2+deb8u1, 4.1.17+dfsg-2+deb8u2), rbp2-libcec-osmc:armhf (3.0.1-13, 3.0.1-16), liblwres90:armhf (9.9.5.dfsg-9+deb8u5, 9.9.5.dfsg-9+deb8u6), libisccfg90:armhf (9.9.5.dfsg-9+deb8u5, 9.9.5.dfsg-9+deb8u6), samba-libs:armhf (4.1.17+dfsg-2+deb8u1, 4.1.17+dfsg-2+deb8u2), bind9-host:armhf (9.9.5.dfsg-9+deb8u5, 9.9.5.dfsg-9+deb8u6), base-files-osmc:armhf (1.8.6, 1.8.7), libwbclient0:armhf (4.1.17+dfsg-2+deb8u1, 4.1.17+dfsg-2+deb8u2)
End-Date: 2016-03-28  13:57:47

Start-Date: 2016-03-28  13:58:14
Commandline: apt-get -o APT::Status-Fd=4 -o APT::Keep-Fds::=5 -o APT::Keep-Fds::=6 -y purge rbp2-image-4.4.1-1-osmc
Purge: rbp2-image-4.4.1-1-osmc:armhf (1)
End-Date: 2016-03-28  13:58:23

Start-Date: 2016-04-02  13:45:03
Commandline: apt-get install git-core
Install: liberror-perl:armhf (0.17-1.1, automatic), git-core:armhf (2.1.4-2.1+deb8u2), git:armhf (2.1.4-2.1+deb8u2, automatic), git-man:armhf (2.1.4-2.1+deb8u2, automatic)
End-Date: 2016-04-02  13:45:54

Start-Date: 2016-04-02  13:50:33
Commandline: apt-get install build-essential
Install: libdpkg-perl:armhf (1.17.26, automatic), xz-utils:armhf (5.1.1alpha+20120614-2+b3, automatic), libmpfr4:armhf (3.1.2-2, automatic), make:armhf (4.0-8.1, automatic), libcloog-isl4:armhf (0.18.2-1+b2, automatic), dpkg-dev:armhf (1.17.26, automatic), libc6-dev:armhf (2.19-18+deb8u3, automatic), build-essential:armhf (11.7), g++-4.9:armhf (4.9.2-10, automatic), libatomic1:armhf (4.9.2-10, automatic), libgcc-4.9-dev:armhf (4.9.2-10, automatic), patch:armhf (2.7.5-1, automatic), g++:armhf (4.9.2-2, automatic), libstdc++-4.9-dev:armhf (4.9.2-10, automatic), libtimedate-perl:armhf (2.3000-2, automatic), libisl10:armhf (0.12.2-2, automatic), bzip2:armhf (1.0.6-7+b3, automatic), libasan1:armhf (4.9.2-10, automatic), libc-dev-bin:armhf (2.19-18+deb8u3, automatic), gcc:armhf (4.9.2-2, automatic), linux-libc-dev:armhf (3.16.7-ckt20-1+deb8u4, automatic), libmpc3:armhf (1.0.2-1, automatic), cpp:armhf (4.9.2-2, automatic), libgomp1:armhf (4.9.2-10, automatic), binutils:armhf (2.25-5, automatic), cpp-4.9:armhf (4.9.2-10, automatic), gcc-4.9:armhf (4.9.2-10, automatic), libubsan0:armhf (4.9.2-10, automatic)
End-Date: 2016-04-02  13:57:20

Start-Date: 2016-04-02  22:53:13
Commandline: apt-get upgrade
Upgrade: apt:armhf (1.0.9.8.2, 1.0.9.8.3), libudev1:armhf (215-17+deb8u3, 215-17+deb8u4), libnettle4:armhf (2.7.1-5, 2.7.1-5+deb8u1), libpam-modules-bin:armhf (1.1.8-3.1+deb8u1, 1.1.8-3.1+deb8u1+b1), libpam-modules:armhf (1.1.8-3.1+deb8u1, 1.1.8-3.1+deb8u1+b1), systemd-sysv:armhf (215-17+deb8u3, 215-17+deb8u4), multiarch-support:armhf (2.19-18+deb8u3, 2.19-18+deb8u4), systemd:armhf (215-17+deb8u3, 215-17+deb8u4), libc6:armhf (2.19-18+deb8u3, 2.19-18+deb8u4), libsystemd0:armhf (215-17+deb8u3, 215-17+deb8u4), libc6-dev:armhf (2.19-18+deb8u3, 2.19-18+deb8u4), libpcre3:armhf (8.35-3.3+deb8u2, 8.35-3.3+deb8u4), udev:armhf (215-17+deb8u3, 215-17+deb8u4), gnupg:armhf (1.4.18-7, 1.4.18-7+deb8u1), libhogweed2:armhf (2.7.1-5, 2.7.1-5+deb8u1), libapt-pkg4.12:armhf (1.0.9.8.2, 1.0.9.8.3), locales:armhf (2.19-18+deb8u3, 2.19-18+deb8u4), base-files:armhf (8+deb8u3, 8+deb8u4), libglib2.0-0:armhf (2.42.1-1, 2.42.1-1+b1), apt-utils:armhf (1.0.9.8.2, 1.0.9.8.3), libc-dev-bin:armhf (2.19-18+deb8u3, 2.19-18+deb8u4), libapt-inst1.5:armhf (1.0.9.8.2, 1.0.9.8.3), linux-libc-dev:armhf (3.16.7-ckt20-1+deb8u4, 3.16.7-ckt25-1), libpam-systemd:armhf (215-17+deb8u3, 215-17+deb8u4), libpam0g:armhf (1.1.8-3.1+deb8u1, 1.1.8-3.1+deb8u1+b1), gpgv:armhf (1.4.18-7, 1.4.18-7+deb8u1), libgif4:armhf (4.1.6-11, 4.1.6-11+deb8u1), libpcrecpp0:armhf (8.35-3.3+deb8u2, 8.35-3.3+deb8u4), libc-bin:armhf (2.19-18+deb8u3, 2.19-18+deb8u4), apt-transport-https:armhf (1.0.9.8.2, 1.0.9.8.3), libgudev-1.0-0:armhf (215-17+deb8u3, 215-17+deb8u4)
End-Date: 2016-04-02  23:04:39

Start-Date: 2016-04-02  23:23:39
Commandline: apt-get install default-jre
Install: libdatrie1:armhf (0.2.8-1, automatic), libx11-xcb1:armhf (1.6.2-3, automatic), openjdk-7-jre:armhf (7u95-2.6.4-1~deb8u1, automatic), libsm6:armhf (1.2.2-1+b1, automatic), libgdk-pixbuf2.0-0:armhf (2.31.1-2+deb8u4, automatic), java-common:armhf (0.52, automatic), libsndfile1:armhf (1.0.25-9.1+deb8u1, automatic), libjson-c2:armhf (0.11-4, automatic), libxcb-render0:armhf (1.10-3+b1, automatic), libxcb-glx0:armhf (1.10-3+b1, automatic), libxrender1:armhf (0.9.8-1+b1, automatic), libasyncns0:armhf (0.8-5, automatic), libglapi-mesa:armhf (10.3.2-1+deb8u1, automatic), libatk1.0-data:armhf (2.14.0-1, automatic), libxcomposite1:armhf (0.4.4-1, automatic), libxxf86vm1:armhf (1.1.3-1+b1, automatic), libgtk2.0-0:armhf (2.24.25-3+deb8u1, automatic), libnss3:armhf (3.17.2-1.1+deb8u2, automatic), libpixman-1-0:armhf (0.32.6-3, automatic), default-jre:armhf (1.7-52), default-jre-headless:armhf (1.7-52, automatic), fontconfig:armhf (2.11.0-6.3, automatic), libxcb-shm0:armhf (1.10-3+b1, automatic), ca-certificates-java:armhf (20140324, automatic), libxinerama1:armhf (1.1.3-1+b1, automatic), libxcb-dri3-0:armhf (1.10-3+b1, automatic), openjdk-7-jre-headless:armhf (7u95-2.6.4-1~deb8u1, automatic), libpangoft2-1.0-0:armhf (1.36.8-3, automatic), libgtk2.0-common:armhf (2.24.25-3+deb8u1, automatic), libxrandr2:armhf (1.4.2-1+b1, automatic), x11-common:armhf (7.7+7, automatic), libdrm2:armhf (2.4.58-2, automatic), libxcb-dri2-0:armhf (1.10-3+b1, automatic), libatk-wrapper-java-jni:armhf (0.30.5-1, automatic), libpango-1.0-0:armhf (1.36.8-3, automatic), libxcb-sync1:armhf (1.10-3+b1, automatic), libxfixes3:armhf (5.0.1-2+b2, automatic), libxext6:armhf (1.3.3-1, automatic), libthai-data:armhf (0.1.21-1, automatic), tzdata-java:armhf (2016c-0+deb8u1, automatic), libgdk-pixbuf2.0-common:armhf (2.31.1-2+deb8u4, automatic), libpulse0:armhf (5.0-13, automatic), libice6:armhf (1.0.9-1+b1, automatic), shared-mime-info:armhf (1.3-1, automatic), libxcb-present0:armhf (1.10-3+b1, automatic), libsctp1:armhf (1.0.16+dfsg-2, automatic), libxshmfence1:armhf (1.1-4, automatic), libpangocairo-1.0-0:armhf (1.36.8-3, automatic), libxdamage1:armhf (1.1.4-2+b1, automatic), libxcursor1:armhf (1.1.14-1+b1, automatic), libatk1.0-0:armhf (2.14.0-1, automatic), libnspr4:armhf (4.10.7-1+deb8u1, automatic), libxtst6:armhf (1.2.2-1+b1, automatic), libatk-wrapper-java:armhf (0.30.5-1, automatic), libcairo2:armhf (1.14.0-2.1+deb8u1, automatic), libthai0:armhf (0.1.21-1, automatic), libxi6:armhf (1.7.4-1+b2, automatic), libgl1-mesa-glx:armhf (10.3.2-1+deb8u1, automatic)
End-Date: 2016-04-02  23:31:59

Start-Date: 2016-04-03  12:17:48
Commandline: apt-get -o APT::Status-Fd=4 -o APT::Keep-Fds::=5 -o APT::Keep-Fds::=6 -f -y dist-upgrade
Install: rbp2-image-4.4.6-3-osmc:armhf (3, automatic), armv7-bluez-osmc:armhf (5.3.8-8, automatic)
Upgrade: rbp-bootloader-osmc:armhf (1.2.5-1, 1.2.6-1), rbp2-kernel-osmc:armhf (2.3.6, 2.5.8), rbp2-mediacenter-osmc:armhf (16.0.0-1, 16.0.0-12), mediacenter-addon-osmc:armhf (3.0.610, 3.0.611), bluez:armhf (5.23-2+b1, 9.99-9), armv7-network-osmc:armhf (1.6.1, 1.6.2), base-files-osmc:armhf (1.8.7, 1.9.0), rbp-userland-osmc:armhf (1.1.7-6, 1.1.8-1), rbp2-device-osmc:armhf (1.2.9, 1.3.3)
End-Date: 2016-04-03  12:34:41

Start-Date: 2016-04-17  18:45:38
Commandline: apt-get -o APT::Status-Fd=4 -o APT::Keep-Fds::=5 -o APT::Keep-Fds::=6 -f -y dist-upgrade
Upgrade: python-ldb:armhf (1.1.17-2+deb8u1, 1.1.20-0+deb8u1), libldb1:armhf (1.1.17-2+deb8u1, 1.1.20-0+deb8u1), libtdb1:armhf (1.3.1-1, 1.3.6-0+deb8u1), openssh-sftp-server:armhf (6.7p1-5+deb8u1, 6.7p1-5+deb8u2), samba:armhf (4.1.17+dfsg-2+deb8u2, 4.2.10+dfsg-0+deb8u2), samba-common-bin:armhf (4.1.17+dfsg-2+deb8u2, 4.2.10+dfsg-0+deb8u2), python-talloc:armhf (2.1.1-2, 2.1.2-0+deb8u1), openssh-server:armhf (6.7p1-5+deb8u1, 6.7p1-5+deb8u2), libtalloc2:armhf (2.1.1-2, 2.1.2-0+deb8u1), samba-common:armhf (4.1.17+dfsg-2+deb8u2, 4.2.10+dfsg-0+deb8u2), libtevent0:armhf (0.9.21-1, 0.9.25-0+deb8u1), python-samba:armhf (4.1.17+dfsg-2+deb8u2, 4.2.10+dfsg-0+deb8u2), tdb-tools:armhf (1.3.1-1, 1.3.6-0+deb8u1), python-tdb:armhf (1.3.1-1, 1.3.6-0+deb8u1), samba-dsdb-modules:armhf (4.1.17+dfsg-2+deb8u2, 4.2.10+dfsg-0+deb8u2), rbp2-mediacenter-osmc:armhf (16.0.0-12, 16.0.0-13), libsmbclient:armhf (4.1.17+dfsg-2+deb8u2, 4.2.10+dfsg-0+deb8u2), linux-libc-dev:armhf (3.16.7-ckt25-1, 3.16.7-ckt25-2), openssh-client:armhf (6.7p1-5+deb8u1, 6.7p1-5+deb8u2), samba-libs:armhf (4.1.17+dfsg-2+deb8u2, 4.2.10+dfsg-0+deb8u2), base-files-osmc:armhf (1.9.0, 1.9.1), libwbclient0:armhf (4.1.17+dfsg-2+deb8u2, 4.2.10+dfsg-0+deb8u2)
End-Date: 2016-04-17  19:00:37

Start-Date: 2016-04-17  19:00:56
Commandline: apt-get -o APT::Status-Fd=4 -o APT::Keep-Fds::=5 -o APT::Keep-Fds::=6 -y purge rbp2-image-4.4.3-3-osmc
Purge: rbp2-image-4.4.3-3-osmc:armhf (3)
End-Date: 2016-04-17  19:01:05

Start-Date: 2016-05-01  15:40:39
Commandline: apt-get upgrade
Upgrade: tzdata:armhf (2016c-0+deb8u1, 2016d-0+deb8u1), tzdata-java:armhf (2016c-0+deb8u1, 2016d-0+deb8u1), mysql-common:armhf (5.5.47-0+deb8u1, 5.5.49-0+deb8u1), libmysqlclient18:armhf (5.5.47-0+deb8u1, 5.5.49-0+deb8u1)
End-Date: 2016-05-01  15:41:52

Start-Date: 2016-05-01  15:48:09
Commandline: apt-get install python-pip
Install: python-setuptools:armhf (5.5.1-1, automatic), python-html5lib:armhf (0.999-3, automatic), python-distlib:armhf (0.1.9-1, automatic), python-pip:armhf (1.5.6-5), python-colorama:armhf (0.3.2-1, automatic)
End-Date: 2016-05-01  15:48:43

Start-Date: 2016-05-01  15:53:17
Commandline: apt-get install python-dev
Install: libexpat1-dev:armhf (2.1.0-6+deb8u1, automatic), libpython2.7-dev:armhf (2.7.9-2, automatic), libpython-dev:armhf (2.7.9-1, automatic), python-dev:armhf (2.7.9-1), python2.7-dev:armhf (2.7.9-2, automatic)
End-Date: 2016-05-01  15:53:54

Start-Date: 2016-05-18  18:31:36
Commandline: apt-get -o APT::Status-Fd=4 -o APT::Keep-Fds::=5 -o APT::Keep-Fds::=6 -f -y dist-upgrade
Install: rbp2-image-4.4.8-3-osmc:armhf (3, automatic)
Upgrade: libexpat1-dev:armhf (2.1.0-6+deb8u1, 2.1.0-6+deb8u2), wireless-firmware-osmc:armhf (1.1.0, 1.1.1), rbp-bootloader-osmc:armhf (1.2.6-1, 1.2.8-1), rbp2-kernel-osmc:armhf (2.5.8, 2.6.8), rbp2-mediacenter-osmc:armhf (16.0.0-13, 16.1.0-3), mediacenter-addon-osmc:armhf (3.0.611, 3.0.614), openssl:armhf (1.0.1k-3+deb8u4, 1.0.1k-3+deb8u5), libexpat1:armhf (2.1.0-6+deb8u1, 2.1.0-6+deb8u2), base-files-osmc:armhf (1.9.1, 1.9.3), armv7-libnfs-osmc:armhf (1.9.8-4, 1.10.0-1), armv7-remote-osmc:armhf (1.1.9, 1.2.0), armv7-bluez-osmc:armhf (5.3.8-8, 5.3.9-1), libtasn1-6:armhf (4.2-3+deb8u1, 4.2-3+deb8u2), libidn11:armhf (1.29-1+b2, 1.29-1+deb8u1), armv7-libsqlite-osmc:armhf (3.9.2.0-2, 3.9.2.0-3), libssl1.0.0:armhf (1.0.1k-3+deb8u4, 1.0.1k-3+deb8u5), rbp-userland-osmc:armhf (1.1.8-1, 1.2.0-1)
End-Date: 2016-05-18  18:53:43

Start-Date: 2016-05-28  21:50:09
Commandline: apt-get autoremove
Remove: libbluray1:armhf (0.6.2-1), armv7-libafpclient-osmc:armhf (0.8.1-3), rbp2-image-4.4.6-3-osmc:armhf (3), libkdc2-heimdal:armhf (1.6~rc2+dfsg-9), libgssapi3-heimdal:armhf (1.6~rc2+dfsg-9), libheimntlm0-heimdal:armhf (1.6~rc2+dfsg-9), apt-transport-https:armhf (1.0.9.8.3)
Error: Sub-process /usr/bin/dpkg returned an error code (2)
End-Date: 2016-05-28  21:50:10

I will try a fresh install within the next days. Is there any other way of repairing that?

I’d start fresh. apt-get upgrade has not been recommended on Debian distributions for a few years.

Sam

Just to let you know. Everything works great since fresh install and without using ‘apt-get upgrade’.
Thanks for the help.