the new rbp1-device-osmc 1.2.4 (assumingly released in the last 24h, because yesterday same time it wasn’t there) breaks the upgrade.
rbp1-device-osmc 1.2.4 has a new dependency to new armv6l-diskmount-osmc which requires new armv6l-diskmount-osmc that replaces diskmount-osmc and depends on armv6l-udisks-osmc.
Sadly the new armv6l-udisks-osmc seems broken and cannot be started. (sorry for the german log)
armv6l-udisks-osmc (1.0.5-8) wird eingerichtet ...
Job for udisks.service failed. See 'systemctl status udisks.service' and 'journalctl -xn' for details.
dpkg: Fehler beim Bearbeiten des Paketes armv6l-udisks-osmc (--configure):
Unterprozess installiertes post-installation-Skript gab den Fehlerwert 1 zurück
This way the postinstall script fails and because of that the update stops with half-configured stuff. Had to roll back manually using files from /var/cache/archive to get it working again.
I am willing to dig into that if I get a bit of help what I should try and how I can get meaningful logs from the failing service, because “journalctl -xn” did not give any log lines.
This time it breaks in another way. Maybe this is a result of my rollback?
root@osmc:/home/osmc# apt-get update
Hit http://mirrordirector.raspbian.org jessie InRelease
Hit http://apt.osmc.tv jessie InRelease
Hit http://mirrordirector.raspbian.org jessie/main armhf Packages
Hit http://mirrordirector.raspbian.org jessie/contrib armhf Packages
Hit http://mirrordirector.raspbian.org jessie/non-free armhf Packages
Get:1 http://apt.osmc.tv jessie/main armhf Packages/DiffIndex [2023 B]
Ign http://apt.osmc.tv jessie/main Translation-en
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 2023 B in 16s (119 B/s)
Reading package lists... Done
root@osmc:/home/osmc# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be REMOVED:
diskmount-osmc
The following NEW packages will be installed:
armv6l-diskmount-osmc armv6l-udisks-osmc libatasmart4 libdevmapper-event1.02.1 libgudev-1.0-0
liblvm2app2.2 libparted2 libsgutils2-2
The following packages will be upgraded:
rbp1-device-osmc
1 upgraded, 8 newly installed, 1 to remove and 0 not upgraded.
Need to get 0 B/1228 kB of archives.
After this operation, 2829 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Selecting previously unselected package libatasmart4:armhf.
(Reading database ... 35915 files and directories currently installed.)
Preparing to unpack .../libatasmart4_0.19-3_armhf.deb ...
Unpacking libatasmart4:armhf (0.19-3) ...
Selecting previously unselected package libgudev-1.0-0:armhf.
Preparing to unpack .../libgudev-1.0-0_215-17+deb8u7_armhf.deb ...
Unpacking libgudev-1.0-0:armhf (215-17+deb8u7) ...
Selecting previously unselected package libdevmapper-event1.02.1:armhf.
Preparing to unpack .../libdevmapper-event1.02.1_2%3a1.02.90-2.2+deb8u1_armhf.deb ...
Unpacking libdevmapper-event1.02.1:armhf (2:1.02.90-2.2+deb8u1) ...
Selecting previously unselected package liblvm2app2.2:armhf.
Preparing to unpack .../liblvm2app2.2_2.02.111-2.2+deb8u1_armhf.deb ...
Unpacking liblvm2app2.2:armhf (2.02.111-2.2+deb8u1) ...
Selecting previously unselected package libparted2:armhf.
Preparing to unpack .../libparted2_3.2-7_armhf.deb ...
Unpacking libparted2:armhf (3.2-7) ...
Selecting previously unselected package libsgutils2-2.
Preparing to unpack .../libsgutils2-2_1.39-1_armhf.deb ...
Unpacking libsgutils2-2 (1.39-1) ...
Selecting previously unselected package armv6l-udisks-osmc.
Preparing to unpack .../armv6l-udisks-osmc_1.0.5-8_armhf.deb ...
Unpacking armv6l-udisks-osmc (1.0.5-8) ...
Preparing to unpack .../rbp1-device-osmc_1.2.4_armhf.deb ...
Unpacking rbp1-device-osmc (1.2.4) over (1.2.0) ...
Processing triggers for dbus (1.8.22-0+deb8u1) ...
(Reading database ... 35997 files and directories currently installed.)
Removing diskmount-osmc (9.99-17) ...
dpkg-divert: error: mismatch on package
when removing `diversion of /etc/udisks-glue.conf to /etc/udisks-glue.conf.distributed by diskmount-osmc'
found `diversion of /etc/udisks-glue.conf to /etc/udisks-glue.conf.distributed by armv6l-diskmount-osmc'
dpkg: error processing package diskmount-osmc (--remove):
subprocess installed post-removal script returned error exit status 2
Errors were encountered while processing:
diskmount-osmc
E: Sub-process /usr/bin/dpkg returned an error code (1)
additionally:
root@osmc:/home/osmc# dpkg -l | grab-logs -A
Killed
My guess was OOM and dmesg confirmed it
[94376.338420] Out of memory: Kill process 1525 (python2) score 818 or sacrifice child
[94376.338460] Killed process 1525 (python2) total-vm:310844kB, anon-rss:304048kB, file-rss:144kB, shmem-rss:0kB
The mediacenter was already stopped so I don’t see any possibility to free up more RAM.
Just before the line that says remove_divert /etc/udisks-glue.conf.distributed /etc/udisks-glue.conf add exit on a line by itself - this will bypass attempted removal of diverts that now belong to another package.
Now try upgrading again. Long story short - there was a transitional package for diskmount-osmc with a buggy postrm script which should not have still been in the apt repo but this only caused an issue because of an incorrect dependency in rbp1-device-osmc (now fixed by 1.2.4) and the way you attempted to roll back and re-update, which tripped up the migration from diskmount-osmc to armv6l-diskmount-osmc.
It shouldn’t happen again now that both these problems are fixed.
Thank you! This solved the issue with the divert. Now I could reproduce the initial problem:
root@osmc:~# 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:
armv6l-diskmount-osmc
The following packages will be REMOVED:
diskmount-osmc
The following NEW packages will be installed:
armv6l-diskmount-osmc
0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
9 not fully installed or removed.
Need to get 0 B/3802 B of archives.
After this operation, 60.4 kB of additional disk space will be used.
Do you want to continue? [Y/n]
(Reading database ... 35997 files and directories currently installed.)
Removing diskmount-osmc (9.99-17) ...
Selecting previously unselected package armv6l-diskmount-osmc.
(Reading database ... 35997 files and directories currently installed.)
Preparing to unpack .../armv6l-diskmount-osmc_1.5.5_armhf.deb ...
Adding 'diversion of /sbin/mount.exfat-fuse to /sbin/mount.exfat-fuse.distributed by armv6l-diskmount-osmc'
Unpacking armv6l-diskmount-osmc (1.5.5) ...
Setting up libatasmart4:armhf (0.19-3) ...
Setting up libdevmapper-event1.02.1:armhf (2:1.02.90-2.2+deb8u1) ...
Setting up libgudev-1.0-0:armhf (215-17+deb8u7) ...
Setting up liblvm2app2.2:armhf (2.02.111-2.2+deb8u1) ...
Setting up libparted2:armhf (3.2-7) ...
Setting up libsgutils2-2 (1.39-1) ...
Setting up armv6l-udisks-osmc (1.0.5-8) ...
Job for udisks.service failed. See 'systemctl status udisks.service' and 'journalctl -xn' for details.
dpkg: error processing package armv6l-udisks-osmc (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of armv6l-diskmount-osmc:
armv6l-diskmount-osmc depends on armv6l-udisks-osmc; however:
Package armv6l-udisks-osmc is not configured yet.
dpkg: error processing package armv6l-diskmount-osmc (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of rbp1-device-osmc:
rbp1-device-osmc depends on armv6l-diskmount-osmc; however:
Package armv6l-diskmount-osmc is not configured yet.
dpkg: error processing package rbp1-device-osmc (--configure):
dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.19-18+deb8u10) ...
Errors were encountered while processing:
armv6l-udisks-osmc
armv6l-diskmount-osmc
rbp1-device-osmc
E: Sub-process /usr/bin/dpkg returned an error code (1)
I’m most inconsolable that grab-logs wants more than 310MB memory and OOMs. If grab-logs is not usable with 310MB free memory, then there’s nothing I can do about it. I’m sure you understand that I don’t want to upgrade to a bigger raspi version, just to be able to send logfiles…
grab-logs is written in Python so possibly could use a lot of memory if its uploading very large log files. Instead you can use paste-log to upload a single log file using a lightweight bash script. Can you upload the system journal please so I can see why udisks is failing to start:
I decided to upload it manually, because I had to redact some confidential hostnames that were showing up in failed dns resolutions a few times when an autossh was starting up.
I am concerned that raspi might not come up after reboot because of those 3 unconfigures base packages. Can you confirm it should be safe (as far as you think)?
root@osmc:/# apt-get install -f udisks-osmc --reinstall
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package udisks-osmc
I think because the broken upgrade did already remove udisks-osmc in favour of armv6l-udisks-osmc?
root@osmc:/# dpkg -l *udisks* |cat
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=======================-============-============-=================================
ii armv6l-udisks-glue-osmc 1.3.5-6 armhf udisks for OSMC
iF armv6l-udisks-osmc 1.0.5-8 armhf udisks for OSMC
un udisks <none> <none> (no description available)
un udisks-glue <none> <none> (no description available)