Installation of rbp4-mediacenter 21.1 failed

I have tried to update my OSMC installation on a raspberry 4 via “My OSMC” on the user interface. The update failed. I have tried several times.

Additionally, I have tried an update via “apt update” and “apt dist-upgrade” (mediacenter was stopped before) using ssh. During the “apt dist-upgrade” I get the following error messages for rbp4-mediacenter 21.1…

Preparing to unpack …/rbp4-mediacenter-osmc_21.1.0-8_armhf.deb …
Unpacking rbp4-mediacenter-osmc (21.1.0-8) over (21.1.0-4) …
dpkg-deb (subprocess): cannot copy archive member from ‘/var/cache/apt/archives/rbp4-mediacenter-osmc_21.1.0-8_armhf.deb’ to decompressor pipe: failed to read (Permission denied)
dpkg-deb (subprocess): decompressing archive ‘/var/cache/apt/archives/rbp4-mediacenter-osmc_21.1.0-8_armhf.deb’ (size=94022016) member ‘data.tar’: lzma error: unexpected end of input
dpkg-deb: error: subprocess returned error exit status 2
dpkg: error processing archive /var/cache/apt/archives/rbp4-mediacenter-osmc_21.1.0-8_armhf.deb (–unpack):
cannot copy extracted data for ‘./usr/lib/kodi/addons/vfs.rar/vfs.rar.so.21.0.0’ to ‘/usr/lib/kodi/addons/vfs.rar/vfs.rar.so.21.0.0.dpkg-new’: unexpected end of file or stream
dpkg: error processing archive /var/cache/apt/archives/containerd.io_1.7.23-1_armhf.deb (–unpack):
cannot access archive ‘/var/cache/apt/archives/containerd.io_1.7.23-1_armhf.deb’: Permission denied
dpkg: error processing archive /var/cache/apt/archives/libcurl3-gnutls_7.74.0-1.3+deb11u14_armhf.deb (–unpack):
cannot access archive ‘/var/cache/apt/archives/libcurl3-gnutls_7.74.0-1.3+deb11u14_armhf.deb’: Permission denied
Errors were encountered while processing:
/var/cache/apt/archives/rbp4-mediacenter-osmc_21.1.0-8_armhf.deb
/var/cache/apt/archives/containerd.io_1.7.23-1_armhf.deb
/var/cache/apt/archives/libcurl3-gnutls_7.74.0-1.3+deb11u14_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Does anyone have an idea how to solve the problem?

Best regards

Dirk

Good Evening,

Please try:-

sudo apt install -f

If that doesn’t resolve, please provide full logs.

Regards Tom.