Udisks.service fails after latest update

Hi everybody

After updating my Raspberry Pi 3 OSMC installation last night it is not mounting my USB drives anymore.

It complains about the Disk Manager failed to load when it boots.

systemctl shows — udisks.service loaded failed failed

Trying a manual update also does not work…tried cleaning, purging, reinstalling…get stuck with the same errors
““Job for udisks.service failed. See ‘systemctl status udisks.service’ and ‘journalctl -xn’ for details.””

osmc@osmc:/media$ systemctl status udisks.service

  • udisks.service - Disk Manager (legacy version)
    Loaded: loaded (/lib/systemd/system/udisks.service; static)
    Active: failed (Result: exit-code) since Thu 2017-09-07 21:40:52 SAST; 3min 14s ago
    Docs: man:udisks(7)
    Process: 994 ExecStart=/usr/lib/udisks/udisks-daemon --no-debug (code=exited, status=203/EXEC)
    Main PID: 994 (code=exited, status=203/EXEC)

osmc@osmc:/media$ sudo apt-get dist-upgrade
Reading package lists… Done
Building dependency tree
Reading state information… Done
Calculating upgrade… Done
The following packages have been kept back:
rbp2-device-osmc
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up armv7-udisks-osmc (1.0.5-3) …
Job for udisks.service failed. See ‘systemctl status udisks.service’ and ‘journalctl -xn’ for details.
dpkg: error processing package armv7-udisks-osmc (–configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
armv7-udisks-osmc
E: Sub-process /usr/bin/dpkg returned an error code (1)

Log location https://paste.osmc.tv/icozuwefid

Did you use the staging (jessie-devel) repository recently?
That package is only in the jessie-devel repository and it’s currently not ready for prime time.

Hopefully this will be resolved soon; but for a stable system we do not recommend using this repository on a daily basis.

Not that I’m aware of. I just do the normal updates as they arrive.

Usually upgrades without any issues…

Provide output of cat /etc/apt/sources.list

osmc@osmc:/etc/apt$ cat sources.list
deb http://ftp.debian.org/debian jessie main contrib non-free

deb Index of /debian jessie-updates main contrib non-free

deb http://security.debian.org/ jessie/updates main contrib non-free

deb http://apt.osmc.tv jessie main

That is really strange, I just tried an upgrade on my system and I don’t get that udisk-osmc package.
so when you run
sudo apt-get update
sudo apt-get dist-upgrade

you still get that package installed?

osmc@osmc:/$ sudo apt-get dist-upgrade
Reading package lists… Done
Building dependency tree
Reading state information… Done
You might want to run ‘apt-get -f install’ to correct these.
The following packages have unmet dependencies:
rbp2-device-osmc : Depends: armv7-diskmount-osmc but it is not installed
E: Unmet dependencies. Try using -f.
osmc@osmc:/$ sudo apt-get -f install
Reading package lists… Done
Building dependency tree
Reading state information… Done
Correcting dependencies… Done
The following extra packages will be installed:
armv7-diskmount-osmc
The following NEW packages will be installed:
armv7-diskmount-osmc
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
Need to get 0 B/3830 B of archives.
After this operation, 71.7 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database … 23658 files and directories currently installed.)
Preparing to unpack …/armv7-diskmount-osmc_1.4.7_armhf.deb …
dpkg-divert: error: diversion of /etc/udisks-glue.conf to /etc/udisks-glue.conf.distributed by armv7-diskmount-osmc' clashes with diversion of /etc/udisks-glue.conf to /etc/udisks-glue.conf.distributed by diskmount-osmc’
dpkg: error processing archive /var/cache/apt/archives/armv7-diskmount-osmc_1.4.7_armhf.deb (–unpack):
subprocess new pre-installation script returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/armv7-diskmount-osmc_1.4.7_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Have you run sudo apt-get update before?
Provide the logs grab-logs -a

No only did dist-upgrade.

https://paste.osmc.tv/zalayaniru

Well than first run update as I suggested

Apologies, I read it wrong. I thought you meant sudo apt-get upgrade…

I only did update and then dist-upgrade. I’ve never done a sudo apt-get upgrade

Forum not allowing me to post more than 5 URL’s, so I did not include it…

Looking at the logs it looks like the problem started with armv7-udisks-osmc niot installing…

Log started: 2017-09-06 20:16:41
Preparing to unpack …/libxml2_2.9.1+dfsg1-5+deb8u5_armhf.deb …
Unpacking libxml2:armhf (2.9.1+dfsg1-5+deb8u5) over (2.9.1+dfsg1-5+deb8u4) …
Preparing to unpack …/archives/udisks_9.99-9_all.deb …
Unpacking udisks (9.99-9) over (1.0.5-1+b1) …
dpkg: warning: unable to delete old directory ‘/var/lib/udisks’: Directory not empty
Processing triggers for dbus (1.8.22-0+deb8u1) …
Setting up udisks (9.99-9) …
Selecting previously unselected package armv7-udisks-osmc.
Preparing to unpack …/armv7-udisks-osmc_1.0.5-3_armhf.deb …
Unpacking armv7-udisks-osmc (1.0.5-3) …
Preparing to unpack …/gpgv_1.4.18-7+deb8u4_armhf.deb …
Unpacking gpgv (1.4.18-7+deb8u4) over (1.4.18-7+deb8u3) …
Processing triggers for dbus (1.8.22-0+deb8u1) …
Setting up gpgv (1.4.18-7+deb8u4) …
Preparing to unpack …/gnupg_1.4.18-7+deb8u4_armhf.deb …
Unpacking gnupg (1.4.18-7+deb8u4) over (1.4.18-7+deb8u3) …
Setting up gnupg (1.4.18-7+deb8u4) …
Preparing to unpack …/armv7-network-osmc_1.6.7_armhf.deb …
Unpacking armv7-network-osmc (1.6.7) over (1.6.6) …
Preparing to unpack …/base-files-osmc_2.2.5_all.deb …
Unpacking base-files-osmc (2.2.5) over (2.2.4) …
Preparing to unpack …/mediacenter-addon-osmc_3.0.651_all.deb …
Unpacking mediacenter-addon-osmc (3.0.651) over (3.0.650) …
Preparing to unpack …/diskmount-osmc_9.99-9_all.deb …
Unpacking diskmount-osmc (9.99-9) over (1.4.4) …
dpkg: warning: unable to delete old directory ‘/media’: Directory not empty
Preparing to unpack …/rbp2-mediacenter-osmc_17.4.0-6_armhf.deb …
Unpacking rbp2-mediacenter-osmc (17.4.0-6) over (17.3.0-7) …
Preparing to unpack …/udisks-glue_9.99-9_all.deb …
Unpacking udisks-glue (9.99-9) over (1.3.5-1) …
Processing triggers for mime-support (3.58) …
Setting up libxml2:armhf (2.9.1+dfsg1-5+deb8u5) …
Setting up armv7-udisks-osmc (1.0.5-3) …
Job for udisks.service failed. See ‘systemctl status udisks.service’ and ‘journalctl -xn’ for details.
dpkg: error processing package armv7-udisks-osmc (–configure):
subprocess installed post-installation script returned error exit status 1
Setting up armv7-network-osmc (1.6.7) …
Setting up base-files-osmc (2.2.5) …
Setting up mediacenter-addon-osmc (3.0.651) …
Setting up diskmount-osmc (9.99-9) …
Setting up rbp2-mediacenter-osmc (17.4.0-6) …
Setting up udisks-glue (9.99-9) …
Processing triggers for libc-bin (2.19-18+deb8u10) …
Errors were encountered while processing:
armv7-udisks-osmc
Log ended: 2017-09-06 20:25:03

Yes, something went wrong on 6st September
Could it be that you had been on staging repo at that time?

What is the output of dpkg -l | grep udisks

Start-Date: 2017-09-06 20:16:41 Commandline: /usr/bin/apt-get-real -o APT::Status-Fd=4 -o APT::Keep-Fds::=5 -o APT::Keep-Fds::=6 -f -y dist-upgrade Install: armv7-udisks-osmc:armhf (1.0.5-3) Upgrade: libxml2:armhf (2.9.1+dfsg1-5+deb8u4, 2.9.1+dfsg1-5+deb8u5), udisks-glue:armhf (1.3.5-1, 9.99-9), gnupg:armhf (1.4.18-7+deb8u3, 1.4.18-7+deb8u4), rbp2-mediacenter-osmc:armhf (17.3.0-7, 17.4.0-6), mediacenter-addon-osmc:armhf (3.0.650, 3.0.651), armv7-network-osmc:armhf (1.6.6, 1.6.7), gpgv:armhf (1.4.18-7+deb8u3, 1.4.18-7+deb8u4), base-files-osmc:armhf (2.2.4, 2.2.5), udisks:armhf (1.0.5-1+b1, 9.99-9), diskmount-osmc:armhf (1.4.4, 9.99-9) Error: Sub-process /usr/bin/dpkg returned an error code (1) End-Date: 2017-09-06 20:25:03

If I was it wasn’t something I configured.

I’ve also never done any updates via the command line. Only doing it now to try and fix it.

osmc@osmc:/$ dpkg -l | grep udisks
iU armv7-udisks-glue-osmc 1.3.5-2 armhf udisks for OSMC
ii armv7-udisks-osmc 1.0.5-3 armhf udisks for OSMC
ii udisks 9.99-9 all udisks transitional package for OSMC
ii udisks-glue 9.99-9 all udisks-glue transitional package for OSMC

This update, Start-Date: 2017-09-06 20:16:41 was also an auto update from the Frontend…I just acknowledged the exit to perform the update…

Ok, something has messed up your installed packages quite badly. Depending on the importance of your data you might want to start with a backup. And then try this steps:

sudo apt-get remove armv7-udisks-glue-osmc armv7-udisks-osmc udisks udisks-glue
sudo apt-get update
sudo apt-get udisks udisks-glue

And at that time report again dpkg -l | grep udisks

osmc@osmc:/var/lib/dpkg$ sudo apt-get remove armv7-udisks-glue-osmc armv7-udisks-osmc udisks udisks-glue
Reading package lists… Done
Building dependency tree
Reading state information… Done
You might want to run ‘apt-get -f install’ to correct these:
The following packages have unmet dependencies:
rbp2-device-osmc : Depends: armv7-diskmount-osmc but it is not going to be installed
E: Unmet dependencies. Try ‘apt-get -f install’ with no packages (or specify a solution).
osmc@osmc:/var/lib/dpkg$ sudo apt-get -f install
Reading package lists… Done
Building dependency tree
Reading state information… Done
Correcting dependencies… Done
The following extra packages will be installed:
armv7-diskmount-osmc
The following NEW packages will be installed:
armv7-diskmount-osmc
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
Need to get 0 B/3830 B of archives.
After this operation, 71.7 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database … 23658 files and directories currently installed.)
Preparing to unpack …/armv7-diskmount-osmc_1.4.7_armhf.deb …
dpkg-divert: error: diversion of /etc/udisks-glue.conf to /etc/udisks-glue.conf.distributed by armv7-diskmount-osmc' clashes with diversion of /etc/udisks-glue.conf to /etc/udisks-glue.conf.distributed by diskmount-osmc’
dpkg: error processing archive /var/cache/apt/archives/armv7-diskmount-osmc_1.4.7_armhf.deb (–unpack):
subprocess new pre-installation script returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/armv7-diskmount-osmc_1.4.7_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Sorry I am a bit out of my expertise with what is pulling in the different packages.
what is sudo apt-get -f install giving you?
And can you try sudo apt-get install --reinstall rbp2-device-osmc-1.4.1

Nope nothing works, keeps on going back to armv7-diskmount-osmc errors…

This one package seems to have broken the system.

Weird thing is that the frontend works just fine, can get to everything…usb drives just does not work.

What is output of
dpkg -l | grep diskm
dpkg -l | grep device