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.
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.
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.