OSMC starting with a sad face after update

Hi,

I have a Raspberry Pi 2 device with a IQAudio-pi-dac+ connected.
Kodi update was always giving an error about Samba update not installing properly for sometime. However everything booted and worked fine until today.

I ran an update today (unfortunately I cant provide details as I clicked on an empty notification button and it started an update process).

After the update osmc boots into a sad face. I have been messing around through SSH for hours and just cant get it working. I been trying different suggestions posted on the forum for similar problems.

I have a bad idea I might have made things worse.

Please see if you can look at the log and identify he problem. If all fails I will have to reinstall from scratch.

My logs
http://paste.osmc.io/iwipibabex

Many thanks.

Sorry,

My Logs are here

http://paste.osmc.io/jovahuwele

Try

sudo systemctl stop mediacenter
mv .kodi/userdata/guisettings.xml .kodi/userdata/guisettings.xml.backup
sudo systemctl start mediacenter

Hi,

Tried that, but no luck. same sad face…

Hi,

Any help or suggestions on this is highly appreciated. If you need further information I can provide it.

Thanks.

Well first you need to provide full logs, i think you mixed up -a with -A. The right command is grab-logs -A

If the guisettings move didn’t work try a full kodi move

sudo systemctl stop mediacenter
mv .kodi/ .kodi.backup
sudo systemctl start mediacenter

Hi,

the full Kodi move also doesnt work. Tried it but no success.

I have uploaded my new logs to

http://paste.osmc.io/nogamuselu

Thanks.

To me it looks like a Kodi error.

Any way I can reinstall kodi keeping my config ?

/usr/lib/kodi/kodi.bin: error while loading shared libraries: liblibcli-lsa3.so.0: cannot open shared object file: No such file or directory

Something has really messed up your install. So first you can move backup your backups

sudo systemctl stop mediacenter
mv .kodi.backup .kodi
mv .kodi/userdata/guisettings.xml.backup .kodi/userdata/guisettings.xml
sudo systemctl start mediacenter

But then you need to find out what caused your problem! Did you had a power problem or could your SD card be broken?
Or did you uninstall samba?

Hi,

I did the above. (renamed backed up directory/files).

I restarted the mediacenter, but no difference. I also rebooted. Same.

I might have had a power problem. I only tried command line stuff after it stopped working.

Well you seem to have run several times apt-get with different success. Try the following and report the output best via paste.osmc.io.

sudo apt-get update
sudo apt-get -f install
sudo apt-get install samba
sudo apt-get dist-upgrade

Then reboot and check the status.

Did that but I get the same result. (sad face).

Logs
http://paste.osmc.io/esayibewaf

Your logs don’t show the execution of the above commands.
Please copy/paste your command line output!

Hi,

Here’s CL output

login as: osmc
osmc@192.168.1.11’s password:

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon May 2 09:35:05 2016 from 192.168.1.99
osmc@OSMC-MP:~$ sudo apt-get update
Ign http://ftp.debian.org jessie InRelease
Get:1 http://ftp.debian.org jessie-updates InRelease [142 kB]
Hit http://security.debian.org jessie/updates InRelease
Get:2 http://apt.osmc.tv jessie InRelease [3687 B]
Hit http://ftp.debian.org jessie Release.gpg
Hit http://ftp.debian.org jessie Release
Hit http://security.debian.org jessie/updates/main armhf Packages
Get:3 http://apt.osmc.tv jessie/main armhf Packages/DiffIndex [2023 B]
Get:4 http://ftp.debian.org jessie-updates/main armhf Packages/DiffIndex [2980 B ]
Get:5 http://ftp.debian.org jessie-updates/contrib armhf Packages [32 B]
Get:6 http://ftp.debian.org jessie-updates/non-free armhf Packages/DiffIndex [73 6 B]
Hit http://security.debian.org jessie/updates/contrib armhf Packages
Get:7 http://ftp.debian.org jessie-updates/contrib Translation-en [14 B]
Get:8 http://ftp.debian.org jessie-updates/main Translation-en/DiffIndex [1720 B ]
Hit http://security.debian.org jessie/updates/non-free armhf Packages
Get:9 http://ftp.debian.org jessie-updates/non-free Translation-en/DiffIndex [73 6 B]
Hit http://ftp.debian.org jessie/main armhf Packages
Err http://apt.osmc.tv jessie/main armhf Packages

Hit http://ftp.debian.org jessie/contrib armhf Packages
Hit http://security.debian.org jessie/updates/contrib Translation-en
Hit http://ftp.debian.org jessie/non-free armhf Packages
Err http://apt.osmc.tv jessie/main armhf Packages

Hit http://ftp.debian.org jessie/contrib Translation-en
Hit http://ftp.debian.org jessie/main Translation-en
Hit http://security.debian.org jessie/updates/main Translation-en
Hit http://ftp.debian.org jessie/non-free Translation-en
Get:10 http://apt.osmc.tv jessie/main armhf Packages [23.8 kB]
Hit http://security.debian.org jessie/updates/non-free Translation-en
Ign http://apt.osmc.tv jessie/main Translation-en
Fetched 178 kB in 18s (9412 B/s)
Reading package lists… Done
osmc@OSMC-MP:~$
osmc@OSMC-MP:~$
osmc@OSMC-MP:~$
osmc@OSMC-MP:~$
osmc@OSMC-MP:~$
osmc@OSMC-MP:~$
osmc@OSMC-MP:~$ 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:
samba samba-libs
Suggested packages:
bind9 bind9utils ctdb ldb-tools smbldap-tools winbind
Recommended packages:
attr logrotate samba-vfs-modules
The following packages will be upgraded:
samba samba-libs
2 upgraded, 0 newly installed, 0 to remove and 16 not upgraded.
15 not fully installed or removed.
Need to get 0 B/5327 kB of archives.
After this operation, 1916 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database … 38310 files and directories currently installed.)
Preparing to unpack …/samba_2%3a4.2.10+dfsg-0+deb8u2_armhf.deb …
Unpacking samba (2:4.2.10+dfsg-0+deb8u2) over (2:4.1.17+dfsg-2) …
dpkg: error processing archive /var/cache/apt/archives/samba_2%3a4.2.10+dfsg-0+d eb8u2_armhf.deb (–unpack):
unable to make backup link of ./usr/share/samba/setup/slapd.conf' before insta lling new version: Operation not permitted dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) insserv: warning: current start runlevel(s) (empty) of script smbd’ overrides L SB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script smbd' over rides LSB defaults (0 1 6). insserv: warning: current start runlevel(s) (empty) of script nmbd’ overrides L SB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script nmbd' over rides LSB defaults (0 1 6). insserv: warning: current start runlevel(s) (empty) of script samba-ad-dc’ over rides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `samba-ad-d c’ overrides LSB defaults (0 1 6).
Preparing to unpack …/samba-libs_2%3a4.2.10+dfsg-0+deb8u2_armhf.deb …
Unpacking samba-libs:armhf (2:4.2.10+dfsg-0+deb8u2) over (2:4.1.17+dfsg-2+deb8u2 ) …
dpkg: error processing archive /var/cache/apt/archives/samba-libs_2%3a4.2.10+dfsg-0+deb8u2_armhf.deb (–unpack):
trying to overwrite ‘/usr/lib/arm-linux-gnueabihf/samba/process_model/onefork.so’, which is also in package samba 2:4.1.17+dfsg-2
Processing triggers for systemd (215-17+deb8u4) …
Errors were encountered while processing:
/var/cache/apt/archives/samba_2%3a4.2.10+dfsg-0+deb8u2_armhf.deb
/var/cache/apt/archives/samba-libs_2%3a4.2.10+dfsg-0+deb8u2_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
osmc@OSMC-MP:~$
osmc@OSMC-MP:~$
osmc@OSMC-MP:~$
osmc@OSMC-MP:~$
osmc@OSMC-MP:~$
osmc@OSMC-MP:~$
osmc@OSMC-MP:~$
osmc@OSMC-MP:~$ sudo apt-get install samba
Reading package lists… Done
Building dependency tree
Reading state information… Done
You might want to run ‘apt-get -f install’ to correct these:
The following packages have unmet dependencies:
libsmbclient : Depends: samba-libs (= 2:4.2.10+dfsg-0+deb8u2) but 2:4.1.17+dfsg-2+deb8u2 is to be installed
python-samba : Depends: samba-libs (= 2:4.2.10+dfsg-0+deb8u2) but 2:4.1.17+dfsg-2+deb8u2 is to be installed
samba : Depends: samba-libs (= 2:4.2.10+dfsg-0+deb8u2) but 2:4.1.17+dfsg-2+deb8u2 is to be installed
samba-common-bin : Depends: samba-libs (= 2:4.2.10+dfsg-0+deb8u2) but 2:4.1.17+dfsg-2+deb8u2 is to be installed
samba-dsdb-modules : Depends: samba-libs (= 2:4.2.10+dfsg-0+deb8u2) but 2:4.1.17+dfsg-2+deb8u2 is to be installed
samba-libs : Depends: libldb1 (< 2:1.1.18~) but 2:1.1.20-0+deb8u1 is to be installed
E: Unmet dependencies. Try ‘apt-get -f install’ with no packages (or specify a solution).
osmc@OSMC-MP:~$
osmc@OSMC-MP:~$
osmc@OSMC-MP:~$
osmc@OSMC-MP:~$
osmc@OSMC-MP:~$
osmc@OSMC-MP:~$
osmc@OSMC-MP:~$
osmc@OSMC-MP:~$
osmc@OSMC-MP:~$ sudo apt-get dist-upgrade
Reading package lists… Done
Building dependency tree
Reading state information… Done
You might want to run ‘apt-get -f install’ to correct these.
The following packages have unmet dependencies:
libsmbclient : Depends: samba-libs (= 2:4.2.10+dfsg-0+deb8u2) but 2:4.1.17+dfsg-2+deb8u2 is installed
python-samba : Depends: samba-libs (= 2:4.2.10+dfsg-0+deb8u2) but 2:4.1.17+dfsg-2+deb8u2 is installed
samba : Depends: samba-common (= 2:4.1.17+dfsg-2) but 2:4.2.10+dfsg-0+deb8u2 is installed
Depends: samba-common-bin (= 2:4.1.17+dfsg-2) but 2:4.2.10+dfsg-0+deb8u2 is installed
Depends: samba-libs (= 2:4.1.17+dfsg-2) but 2:4.1.17+dfsg-2+deb8u2 is installed
samba-common-bin : Depends: samba-libs (= 2:4.2.10+dfsg-0+deb8u2) but 2:4.1.17+dfsg-2+deb8u2 is installed
samba-dsdb-modules : Depends: samba-libs (= 2:4.2.10+dfsg-0+deb8u2) but 2:4.1.17+dfsg-2+deb8u2 is installed
samba-libs : Depends: libldb1 (< 2:1.1.18~) but 2:1.1.20-0+deb8u1 is installed
E: Unmet dependencies. Try using -f.
osmc@OSMC-MP:~$

Well this is where your problem is, not sure how you ended up there

dpkg: error processing archive 
/var/cache/apt/archives/samba_2%3a4.2.10+dfsg-0+d                       
            eb8u2_armhf.deb (--unpack):
 unable to make backup link of ./usr/share/samba/setup/slapd.conf' before insta                                   lling new version: Operation not permitted
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
insserv: warning: current start runlevel(s) (empty) of scriptsmbd' overrides L                                   SB defaults (2 3 4 5)

Did you blocked/masked samba packages? Try to remove and reinstall.
Otherwise a reinstall might be needed.

I cant remember doing anything to samba.

Kodi was working fine till yesterday. I used it about 3 times during the last 1 week.

I only tried reinstalling etc after it stopped working. If it cant be repaired I guess I’ll have to do a fresh installation of everything.

Is there some way i can backup my OSMC/Kodi config ? (to make my life a little easier :slight_smile:

Either use the backup function from MyOSMC or just copy the .kodi folder

Ok.

I just FTP’d the .kodi directory to my PC. Will put it back once reinstalled.

Thanks a lot for your help and taking the time to advice.

Cheers