When trying to update OSMC on my Pi, I got following message: “an error occured while installing the following package: (unknown package)”
Afterwards it ended in a continous reboot with a sad face.
Logging in with SSH, stopping Kodi and proceeding with a manual upgrade (sudo apt-get update && sudo apt-get dist-upgrade) resulted in following error message:
The following packages have unmet dependencies:
libsmbclient : Depends: samba-libs (= 2:4.1.17+dfsg-2+deb8u2) but 2:4.2.10+dfsg-0+deb8u2 is installed
E: Unmet dependencies. Try using -f.
No clue what to do next.
Any help is welcome. Thanks in advance.
Have you installed any samba packages on your own? Have you configured any package to be hold?
sudo apt-get update
sudo apt-get -f install
I did not install any additional packages.
sudo apt-get -f install gives an error message as well:
osmc@osmc:~$ 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:
The following packages will be upgraded:
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
22 not fully installed or removed.
Need to get 0 B/137 kB of archives.
After this operation, 1024 B of additional disk space will be used.
Do you want to continue? [Y/n] y
E: Invalid archive member header
E: Prior errors apply to /var/cache/apt/archives/libsmbclient_2%3a4.2.10+dfsg-0+deb8u2_armhf.deb
debconf: apt-extracttemplates failed: No such file or directory
tar: Skipping to next header
tar: Exiting with failure status due to previous errors
dpkg-deb: error: subprocess tar returned error exit status 2
dpkg: error processing archive /var/cache/apt/archives/libsmbclient_2%3a4.2.10+dfsg-0+deb8u2_armhf.deb (–unpack):
subprocess dpkg-deb --control returned error exit status 2
E: Sub-process /usr/bin/dpkg returned an error code (1)
Somehow this package is corrupted.
Try removing it with
sudo apt-get clean then try updating again. If you still have problems its likely you have file system corruption.
Thanks for the help… but that did not help either.
Will do a full reinstall. I think that will be the easiest way.