Update Error

Update failed, asked me to send logs.
Here they are: https://paste.osmc.tv/italixakif

Raspberry Pi 3B

Gabor

The error has occurred as a side-effect of installing the A2DP Bluetooth streaming package.

You need to run the following:

sudo rm /etc/apt/sources.list.d/a2dp.list

Then follow the instructions here: Udisks.service fails after latest update - #25 by dillthedog to try to restore your system to its correct state.

Once you have followed the instructions, please run

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

I get this

osmc@osmc-nappali:~$ sudo rm /etc/apt/sources.list.d/a2dp.list
osmc@osmc-nappali:~$ sudo apt-get update
Hit http://security.debian.org jessie/updates InRelease
Ign http://ftp.debian.org jessie InRelease
Hit http://ftp.debian.org jessie-updates InRelease
Hit http://ftp.debian.org jessie Release.gpg
Hit http://ftp.debian.org jessie Release
Hit http://apt.osmc.tv jessie InRelease
Hit http://security.debian.org jessie/updates/main armhf Packages
Hit http://security.debian.org jessie/updates/contrib armhf Packages
Hit http://security.debian.org jessie/updates/non-free armhf Packages
Hit http://security.debian.org jessie/updates/contrib Translation-en
Get:1 http://ftp.debian.org jessie-updates/main armhf Packages/DiffIndex [8884 B]
Hit http://security.debian.org jessie/updates/main Translation-en
Hit http://security.debian.org jessie/updates/non-free Translation-en
Hit http://ftp.debian.org jessie-updates/contrib armhf Packages
Get:2 http://ftp.debian.org jessie-updates/non-free armhf Packages/DiffIndex [736 B]
Hit http://ftp.debian.org jessie-updates/contrib Translation-en
Get:3 http://ftp.debian.org jessie-updates/main Translation-en/DiffIndex [3688 B]
Get:4 http://ftp.debian.org jessie-updates/non-free Translation-en/DiffIndex [736 B]
Hit http://ftp.debian.org jessie/main armhf Packages
Get:5 http://apt.osmc.tv jessie/main armhf Packages/DiffIndex [2023 B]
Hit http://ftp.debian.org jessie/contrib armhf Packages
Hit http://ftp.debian.org jessie/non-free armhf Packages
Hit http://ftp.debian.org jessie/contrib Translation-en
Hit http://ftp.debian.org jessie/main Translation-en
Hit http://ftp.debian.org jessie/non-free Translation-en
Ign http://apt.osmc.tv jessie/main Translation-en
Fetched 16.1 kB in 21s (736 B/s)
Reading package lists... Done
osmc@osmc-nappali:~$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  bind9-host gnupg libbind9-90 libdns100 libisc95 libisccc90 libisccfg90 liblwres90
8 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
Need to get 0 B/2113 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up gpgv (1.4.18-7+deb8u4) ...
(Reading database ... 28671 files and directories currently installed.)
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) ...
(Reading database ... 28671 files and directories currently installed.)
Preparing to unpack .../bind9-host_1%3a9.9.5.dfsg-9+deb8u14_armhf.deb ...
Unpacking bind9-host (1:9.9.5.dfsg-9+deb8u14) over (1:9.9.5.dfsg-9+deb8u13) ...
Preparing to unpack .../libisc95_1%3a9.9.5.dfsg-9+deb8u14_armhf.deb ...
Unpacking libisc95 (1:9.9.5.dfsg-9+deb8u14) over (1:9.9.5.dfsg-9+deb8u13) ...
Preparing to unpack .../libdns100_1%3a9.9.5.dfsg-9+deb8u14_armhf.deb ...
Unpacking libdns100 (1:9.9.5.dfsg-9+deb8u14) over (1:9.9.5.dfsg-9+deb8u13) ...
Preparing to unpack .../libisccc90_1%3a9.9.5.dfsg-9+deb8u14_armhf.deb ...
Unpacking libisccc90 (1:9.9.5.dfsg-9+deb8u14) over (1:9.9.5.dfsg-9+deb8u13) ...
Preparing to unpack .../libisccfg90_1%3a9.9.5.dfsg-9+deb8u14_armhf.deb ...
Unpacking libisccfg90 (1:9.9.5.dfsg-9+deb8u14) over (1:9.9.5.dfsg-9+deb8u13) ...
Preparing to unpack .../libbind9-90_1%3a9.9.5.dfsg-9+deb8u14_armhf.deb ...
Unpacking libbind9-90 (1:9.9.5.dfsg-9+deb8u14) over (1:9.9.5.dfsg-9+deb8u13) ...
Preparing to unpack .../liblwres90_1%3a9.9.5.dfsg-9+deb8u14_armhf.deb ...
Unpacking liblwres90 (1:9.9.5.dfsg-9+deb8u14) over (1:9.9.5.dfsg-9+deb8u13) ...
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 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 libisc95 (1:9.9.5.dfsg-9+deb8u14) ...
Setting up libdns100 (1:9.9.5.dfsg-9+deb8u14) ...
Setting up libisccc90 (1:9.9.5.dfsg-9+deb8u14) ...
Setting up libisccfg90 (1:9.9.5.dfsg-9+deb8u14) ...
Setting up libbind9-90 (1:9.9.5.dfsg-9+deb8u14) ...
Setting up liblwres90 (1:9.9.5.dfsg-9+deb8u14) ...
Setting up bind9-host (1:9.9.5.dfsg-9+deb8u14) ...
Processing triggers for libc-bin (2.19-18+deb8u10) ...
Errors were encountered while processing:
 armv7-udisks-glue-osmc
 armv7-udisks-osmc
E: Sub-process /usr/bin/dpkg returned an error code (1)
osmc@osmc-nappali:~$

I think you might have overlooked the part that says “Then follow the instructions here:”.

1 Like

That’s a shame, sorry about it.

It runs into an error here, should I continue with the remaining instructions?

osmc@osmc-nappali:/var/cache/apt/archives$ 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 0 not upgraded.
3 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]
Get:1 http://ftp.debian.org/debian/ jessie/main udisks armhf 1.0.5-1+b1 [166 kB]
Fetched 166 kB in 0s (688 kB/s)
(Reading database ... 28672 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 ... 28625 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 diskmount-osmc (9.99-10) ...
dpkg-divert: error: mismatch on package
  when removing `diversion of /sbin/mount.exfat-fuse to /sbin/mount.exfat-fuse.distributed by diskmount-osmc'
  found `diversion of /sbin/mount.exfat-fuse to /sbin/mount.exfat-fuse.distributed by armv7-diskmount-osmc'
dpkg: error processing package diskmount-osmc (--configure):
 subprocess installed post-installation script returned error exit status 2
Setting up udisks (1.0.5-1+b1) ...
Errors were encountered while processing:
 diskmount-osmc
E: Sub-process /usr/bin/dpkg returned an error code (1)
osmc@osmc-nappali:/var/cache/apt/archives$

Have you already run these two lines?

sudo apt-get install --reinstall rbp2-device-osmc=1.4.1
sudo apt-get install --reinstall diskmount-osmc=1.4.4

If so, run these:

sudo apt-get purge armv7-udisks-osmc
sudo apt-get purge armv7-udisks-glue-osmc

and then run all 4 reinstalls again.

I’ve already run the two lines you have highlighted.

No issues running the above.

But:

It produces the following error(s):

osmc@osmc-nappali:/var/cache/apt/archives$ sudo apt-get purge armv7-udisks-glue-osmc
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libconfuse-common libconfuse0
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  armv7-udisks-glue-osmc*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 77.8 kB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 28678 files and directories currently installed.)
Removing armv7-udisks-glue-osmc (1.3.5-2) ...
Purging configuration files for armv7-udisks-glue-osmc (1.3.5-2) ...
Setting up diskmount-osmc (9.99-10) ...
dpkg-divert: error: mismatch on package
  when removing `diversion of /sbin/mount.exfat-fuse to /sbin/mount.exfat-fuse.distributed by diskmount-osmc'
  found `diversion of /sbin/mount.exfat-fuse to /sbin/mount.exfat-fuse.distributed by armv7-diskmount-osmc'
dpkg: error processing package diskmount-osmc (--configure):
 subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
 diskmount-osmc
E: Sub-process /usr/bin/dpkg returned an error code (1)
osmc@osmc-nappali:/var/cache/apt/archives$

It might be ok. Run the 4 reinstalls again and we’ll take it from there.

Please also run

dpkg -l "armv7-udisks*"

He’s installed staging packages.
Staging can break.

Ironically, best solution for now is to stay on staging

Sam

I ran all of them, they produced the same errors, here is the output of the last one, followed by the dpkg -l “armv7-udisks*”

osmc@osmc-nappali:/var/cache/apt/archives$ en
-bash: en: command not found
osmc@osmc-nappali:/var/cache/apt/archives$ sudo apt-get install --reinstall udisks-glue=1.3.5-1
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libconfuse-common libconfuse0
The following NEW packages will be installed:
  libconfuse-common libconfuse0
The following packages will be DOWNGRADED:
  udisks-glue
0 upgraded, 2 newly installed, 1 downgraded, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 39.0 kB of archives.
After this operation, 146 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://ftp.debian.org/debian/ jessie/main libconfuse-common all 2.7-5 [4576 B]
Get:2 http://ftp.debian.org/debian/ jessie/main libconfuse0 armhf 2.7-5 [18.0 kB]
Get:3 http://ftp.debian.org/debian/ jessie/main udisks-glue armhf 1.3.5-1 [16.4 kB]
Fetched 39.0 kB in 0s (90.2 kB/s)
Selecting previously unselected package libconfuse-common.
(Reading database ... 28665 files and directories currently installed.)
Preparing to unpack .../libconfuse-common_2.7-5_all.deb ...
Unpacking libconfuse-common (2.7-5) ...
Selecting previously unselected package libconfuse0:armhf.
Preparing to unpack .../libconfuse0_2.7-5_armhf.deb ...
Unpacking libconfuse0:armhf (2.7-5) ...
dpkg: warning: downgrading udisks-glue from 9.99-9 to 1.3.5-1
Preparing to unpack .../udisks-glue_1.3.5-1_armhf.deb ...
Unpacking udisks-glue (1.3.5-1) over (9.99-9) ...
Setting up diskmount-osmc (9.99-10) ...
dpkg-divert: error: mismatch on package
  when removing `diversion of /sbin/mount.exfat-fuse to /sbin/mount.exfat-fuse.distributed by diskmount-osmc'
  found `diversion of /sbin/mount.exfat-fuse to /sbin/mount.exfat-fuse.distributed by armv7-diskmount-osmc'
dpkg: error processing package diskmount-osmc (--configure):
 subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of rbp2-device-osmc:
 rbp2-device-osmc depends on diskmount-osmc; however:
  Package diskmount-osmc is not configured yet.

dpkg: error processing package rbp2-device-osmc (--configure):
 dependency problems - leaving unconfigured
Setting up libconfuse-common (2.7-5) ...
Setting up libconfuse0:armhf (2.7-5) ...
Setting up udisks-glue (1.3.5-1) ...
Processing triggers for libc-bin (2.19-18+deb8u10) ...
Errors were encountered while processing:
 diskmount-osmc
 rbp2-device-osmc
E: Sub-process /usr/bin/dpkg returned an error code (1)
osmc@osmc-nappali:/var/cache/apt/archives$ dpkg -l "armv7-udisks*"
dpkg-query: no packages found matching armv7-udisks*

I can give ssh access, if that would help to fix it

I think that we’ll need to wait for Sam to sort out the issues, since udisks on staging seems to be just a bit borked.

No worries, thanks for the help

Correct.

I’m on it :slight_smile:

I’m having the same problem (with the infamous sad face on the screen)

E: Sub-process /usr/bin/dpkg returned an error code (1)

how I’m gonna fix this?

Hi Laura

Might not be the same issue. Try creating a new post and follow the advice here: How to submit a useful support request - General - OSMC

Sam