I have tried to update from 2.5.0 to 2.5.1-2 on RPi4 on Fedora31 and I’m observing the following error during update:
error: unpacking of archive failed on file /var/lib/openhab2/tmp/README: cpio: chown
error: openhab2-0:2.5.1-2.noarch: install failed
A full log (please ignore the everything related to mosquitto - it has no impact on openhab2 installation):
$ sudo dnf update
[sudo] password for dw:
Last metadata expiration check: 1:13:29 ago on Mon 13 Jan 2020 09:46:01 CET.
Dependencies resolved.
Problem: package mosquitto-1.6.8-1.fc30.armv7hl requires libwebsockets.so.14, but none of the providers can be installed
- cannot install both libwebsockets-3.2.1-1.fc30.armv7hl and libwebsockets-3.1.0-2.fc30.armv7hl
- cannot install both libwebsockets-3.1.0-2.fc30.armv7hl and libwebsockets-3.2.1-1.fc30.armv7hl
- cannot install the best update candidate for package mosquitto-1.6.8-1.fc30.armv7hl
- cannot install the best update candidate for package libwebsockets-3.1.0-2.fc30.armv7hl
==============================================================================================================================================================================================================================================
Package Architecture Version Repository Size
==============================================================================================================================================================================================================================================
Upgrading:
openhab2 noarch 2.5.1-2 openHAB-Stable 79 M
openhab2-addons noarch 2.5.1-2 openHAB-Stable 181 M
Skipping packages with conflicts:
(add '--best --allowerasing' to command line to force their upgrade):
libwebsockets armv7hl 3.2.1-1.fc30 updates 197 k
Transaction Summary
==============================================================================================================================================================================================================================================
Upgrade 2 Packages
Skip 1 Package
Total download size: 261 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): openhab2-2.5.1-2.noarch.rpm 3.8 MB/s | 79 MB 00:21
(2/2): openhab2-addons-2.5.1-2.noarch.rpm 5.8 MB/s | 181 MB 00:31
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 8.3 MB/s | 261 MB 00:31
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Running scriptlet: openhab2-2.5.1-2.noarch 1/1
Running scriptlet: openhab2-addons-2.5.1-2.noarch 1/1
Preparing : 1/1
Running scriptlet: openhab2-2.5.1-2.noarch 1/1
Running scriptlet: openhab2-2.5.1-2.noarch 1/4
Upgrading : openhab2-2.5.1-2.noarch 1/4
Error unpacking rpm package openhab2-2.5.1-2.noarch
Running scriptlet: openhab2-addons-2.5.1-2.noarch 2/4
error: unpacking of archive failed on file /var/lib/openhab2/tmp/README: cpio: chown
error: openhab2-0:2.5.1-2.noarch: install failed
Upgrading : openhab2-addons-2.5.1-2.noarch 2/4
Running scriptlet: openhab2-addons-2.5.1-2.noarch 2/4
Running scriptlet: openhab2-addons-2.5.0-1.noarch 3/4
Cleanup : openhab2-addons-2.5.0-1.noarch 3/4
warning: file /usr/share/openhab2/addons/openhab-addons-2.5.0.kar: remove failed: No such file or directory
Running scriptlet: openhab2-addons-2.5.0-1.noarch 3/4
Running scriptlet: openhab2-2.5.0-1.noarch 4/4
Cleanup : openhab2-2.5.0-1.noarch 4/4
Running scriptlet: openhab2-2.5.0-1.noarch 4/4
Running scriptlet: openhab2-addons-2.5.1-2.noarch 4/4
Running scriptlet: openhab2-2.5.0-1.noarch 4/4
Verifying : openhab2-2.5.1-2.noarch 1/4
Verifying : openhab2-2.5.0-1.noarch 2/4
Verifying : openhab2-addons-2.5.1-2.noarch 3/4
Verifying : openhab2-addons-2.5.0-1.noarch 4/4
Upgraded:
openhab2-addons-2.5.1-2.noarch
Skipped:
libwebsockets-3.2.1-1.fc30.armv7hl
Failed:
openhab2-2.5.1-2.noarch
Error: Transaction failed
Interestingly, the same error happened earlier, when I tried to update from 2.4.0 to 2.5.0 using dnf, (I had to update it manually using rpm).