Udisks.service fails after latest update

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

It looks like you installed A2DP packages

I think you switched to staging for that and then didn’t switch back before upgrading. I’ve checked and the problematic UDisks packages are only in staging.

As Sam has said, you have somehow downloaded files from staging. For now we need to focus on the udisks problem. First of all, please run the following to remove previously downloaded files:

cd /var/cache/apt/archives
sudo rm diskmount-osmc_9.99-9_all.deb
sudo rm armv7-udisks-osmc_1.0.5-3_armhf.deb
sudo rm udisks_9.99-9_all.deb
sudo rm udisks-glue_9.99-9_all.deb
sudo rm armv7-udisks-glue-osmc_1.3.5-2_armhf.deb
sudo rm rbp2-device-osmc_1.4.3_armhf.deb

Then run:

sudo apt-get update
sudo apt-get install --reinstall rbp2-device-osmc=1.4.1
sudo apt-get install --reinstall diskmount-osmc=1.4.4
sudo apt-get install --reinstall udisks=1.0.5-1+b1
sudo apt-get install --reinstall udisks-glue=1.3.5-1
sudo apt-get purge armv7-udisks-osmc
sudo apt-get purge armv7-udisks-glue-osmc

I’d be grateful if you would post the full output from the commands. Format it using the </> “Preformatted text” button.

1 Like

Ok I’m back again…could only post 20 replies yesterday… :confused:

It WORKED!!! Thank you very much…saved me from reinstalling everything!! Appreciate it.

Should I do an update again?

sudo apt-get update
Get:1 http://security.debian.org jessie/updates InRelease [63.1 kB]
Ign http://ftp.debian.org jessie InRelease
Get:2 http://ftp.debian.org jessie-updates InRelease [145 kB]
Hit http://apt.osmc.tv jessie InRelease
Hit http://apt.osmc.tv jessie-devel InRelease
Hit http://security.debian.org jessie/updates/main armhf Packages
Hit http://ftp.debian.org jessie Release.gpg
Get:3 http://ftp.debian.org jessie-updates/main armhf Packages/DiffIndex [8392 B]
Get:4 http://apt.osmc.tv jessie/main armhf Packages/DiffIndex [2023 B]
Hit http://security.debian.org jessie/updates/contrib armhf Packages
Hit http://ftp.debian.org jessie-updates/contrib armhf Packages
Hit http://security.debian.org jessie/updates/non-free armhf Packages
Get:5 http://ftp.debian.org jessie-updates/non-free armhf Packages/DiffIndex [736 B]
Get:6 http://apt.osmc.tv jessie-devel/main armhf Packages/DiffIndex [2023 B]
Hit http://security.debian.org jessie/updates/contrib Translation-en
Hit http://ftp.debian.org jessie-updates/contrib Translation-en
Hit http://security.debian.org jessie/updates/main Translation-en
Get:7 http://ftp.debian.org jessie-updates/main Translation-en/DiffIndex [3196 B]
Hit http://security.debian.org jessie/updates/non-free Translation-en
Get:8 http://ftp.debian.org jessie-updates/non-free Translation-en/DiffIndex [736 B]
Hit http://ftp.debian.org jessie Release
Hit http://ftp.debian.org jessie/main armhf Packages
Hit http://ftp.debian.org jessie/contrib armhf Packages
Hit http://ftp.debian.org jessie/non-free armhf Packages
Ign http://apt.osmc.tv jessie/main Translation-en
Hit http://ftp.debian.org jessie/contrib Translation-en
Ign http://apt.osmc.tv jessie-devel/main Translation-en
Hit http://ftp.debian.org jessie/main Translation-en
Hit http://ftp.debian.org jessie/non-free Translation-en
Fetched 225 kB in 14s (15.4 kB/s)
Reading package lists... Done

sudo apt-get install --reinstall rbp2-device-osmc=1.4.1
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be DOWNGRADED:
  rbp2-device-osmc
0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
Need to get 241 kB of archives.
After this operation, 4096 B disk space will be freed.
Do you want to continue? [Y/n] y
Get:1 http://apt.osmc.tv/ jessie/main rbp2-device-osmc armhf 1.4.1 [241 kB]
Fetched 241 kB in 2s (120 kB/s)


dpkg: warning: downgrading rbp2-device-osmc from 1.4.3 to 1.4.1
(Reading database ... 23658 files and directories currently installed.)
Preparing to unpack .../rbp2-device-osmc_1.4.1_armhf.deb ...
Unpacking rbp2-device-osmc (1.4.1) over (1.4.3) ...


Setting up libconfuse-common (2.7-5) ...
Setting up libconfuse0:armhf (2.7-5) ...
Setting up armv7-udisks-glue-osmc (1.3.5-2) ...
Job for udisks.service failed. See 'systemctl status udisks.service' and 'journalctl -xn' for details.
dpkg: error processing package armv7-udisks-glue-osmc (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up rbp2-device-osmc (1.4.1) ...
Processing triggers for libc-bin (2.19-18+deb8u10) ...
Errors were encountered while processing:
 armv7-udisks-glue-osmc
E: Sub-process /usr/bin/dpkg returned an error code (1)

sudo apt-get install --reinstall diskmount-osmc=1.4.4
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be DOWNGRADED:
  diskmount-osmc
0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
Need to get 3684 B of archives.
After this operation, 61.4 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://apt.osmc.tv/ jessie/main diskmount-osmc all 1.4.4 [3684 B]
Fetched 3684 B in 0s (3978 B/s)
dpkg: warning: downgrading diskmount-osmc from 9.99-9 to 1.4.4
(Reading database ... 23658 files and directories currently installed.)
Preparing to unpack .../diskmount-osmc_1.4.4_all.deb ...
Unpacking diskmount-osmc (1.4.4) over (9.99-9) ...
Setting up armv7-udisks-glue-osmc (1.3.5-2) ...
Job for udisks.service failed. See 'systemctl status udisks.service' and 'journalctl -xn' for details.
dpkg: error processing package armv7-udisks-glue-osmc (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up diskmount-osmc (1.4.4) ...
Errors were encountered while processing:
 armv7-udisks-glue-osmc
E: Sub-process /usr/bin/dpkg returned an error code (1)

sudo apt-get install --reinstall udisks=1.0.5-1+b1
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  xfsprogs reiserfsprogs mdadm
Recommended packages:
  cryptsetup-bin
The following packages will be REMOVED:
  armv7-udisks-osmc
The following packages will be DOWNGRADED:
  udisks
0 upgraded, 0 newly installed, 1 downgraded, 1 to remove and 2 not upgraded.
1 not fully installed or removed.
Need to get 166 kB of archives.
After this operation, 96.3 kB disk space will be freed.
Do you want to continue? [Y/n] y
Get:1 http://ftp.debian.org/debian/ jessie/main udisks armhf 1.0.5-1+b1 [166 kB]
Fetched 166 kB in 2s (76.2 kB/s)
(Reading database ... 23662 files and directories currently installed.)
Removing armv7-udisks-osmc (1.0.5-3) ...
Processing triggers for dbus (1.8.22-0+deb8u1) ...
dpkg: warning: downgrading udisks from 9.99-9 to 1.0.5-1+b1
(Reading database ... 23615 files and directories currently installed.)
Preparing to unpack .../udisks_1.0.5-1+b1_armhf.deb ...
Unpacking udisks (1.0.5-1+b1) over (9.99-9) ...
Processing triggers for dbus (1.8.22-0+deb8u1) ...
Setting up armv7-udisks-glue-osmc (1.3.5-2) ...
Setting up udisks (1.0.5-1+b1) ...

(udisks:2474): udisks-WARNING **: Couldn't enumerate devices: Message did not receive a reply (timeout by message bus)

sudo apt-get install --reinstall udisks-glue=1.3.5-1
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  armv7-udisks-glue-osmc
The following packages will be DOWNGRADED:
  udisks-glue
0 upgraded, 0 newly installed, 1 downgraded, 1 to remove and 3 not upgraded.
Need to get 16.4 kB of archives.
After this operation, 8192 B disk space will be freed.
Do you want to continue? [Y/n] y
Get:1 http://ftp.debian.org/debian/ jessie/main udisks-glue armhf 1.3.5-1 [16.4 kB]
Fetched 16.4 kB in 1s (10.5 kB/s)
(Reading database ... 23668 files and directories currently installed.)
Removing armv7-udisks-glue-osmc (1.3.5-2) ...
dpkg: warning: downgrading udisks-glue from 9.99-9 to 1.3.5-1
(Reading database ... 23665 files and directories currently installed.)
Preparing to unpack .../udisks-glue_1.3.5-1_armhf.deb ...
Unpacking udisks-glue (1.3.5-1) over (9.99-9) ...
Setting up udisks-glue (1.3.5-1) ...

sudo apt-get purge armv7-udisks-osmc
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  armv7-udisks-osmc*
0 upgraded, 0 newly installed, 1 to remove and 4 not upgraded.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 23673 files and directories currently installed.)
Removing armv7-udisks-osmc (1.0.5-3) ...
Purging configuration files for armv7-udisks-osmc (1.0.5-3) ...

A dist-upgrade should run clean now

Yesterday the system did an auto update and the same happened. It tried to install the the armv7-diskmount.osmc 1.4.7 and failed.

Disabled the auto updates for now.

Ok actually I forgot something the other day. You may have the repository in a subfolder.
What does ls -lah /etc/apt/sources.list.d/ gives you?

I’ll check tonight when I’m home…

Can it perhaps be because of this?
echo “deb http://apt.osmc.tv jessie-devel main” | sudo tee /etc/apt/sources.list.d/a2dp.list

Had to add it to test the bluetooth streaming…
Think I might have forgotten to remove it after installing?

That is what I assume. I thought you had checked it after Sam wrote the reminder

I just forgot that the entry is in the subfolder and not the mainfile

I totally forgot that I installed the bluetooth streaming functionality.

I’ll check it tonight…

First check if it still there with the ls command and then execute what is highlighted in the bluetooth thread sudo rm /etc/apt/sources.list.d/a2dp.list

Thanks, worked for me, note you have a typo for udisks you are missing the ‘s’

1 Like

Make sure you don’t have the staging repository anywhere in your sources.

Cheers. Fixed now.

Removed and all is now good!! Thanks!