Error installing samba

hi,

I’ve got an error while installing samba via app store.

Error installing samba
please report this on the OSMC forum

some packages were not installed/removed
Details have been written to the Kodi log

I’ve uploaded all the log with the link:
http://paste.osmc.io/egekebigik

Thank a lot for your help.

Your WiFi adapter seems to have issues with beacon frames. What model is it?

I looked at your term.log, but it’s in German, so I can’t really understand it. What happens when you run:

Please post the output of:

sudo -s
export LANG=C
dpkg --configure -a
apt-get update
apt-get install smb-app-osmc

hi sam_nazarko,

thanks for you reply.

to you first question, my Wifi dongle is Edimax EW-7811Un

osmc@osmc:~$ sudo lsusb
Bus 001 Device 005: ID 152d:2336 JMicron Technology Corp. / JMicron USA Technology Corp. Hard Disk Drive
Bus 001 Device 004: ID 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. LAN9500 Ethernet 10/100 Adapter / SMSC9512/9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

the output of the command were like following, it seemed like there was something wrong while installing the package.

osmc@osmc:~$ sudo -s
root@osmc:/home/osmc# export LANG=C
root@osmc:/home/osmc# dpkg --configure -a
root@osmc:/home/osmc# apt-get update
Hit http://mirrordirector.raspbian.org jessie InRelease
Hit http://apt.osmc.tv jessie InRelease
Hit http://mirrordirector.raspbian.org jessie/main armhf Packages
Hit http://mirrordirector.raspbian.org jessie/contrib armhf Packages
Get:1 http://apt.osmc.tv jessie/main armhf Packages/DiffIndex [2023 B]
Hit http://mirrordirector.raspbian.org jessie/non-free armhf Packages                   
Ign http://apt.osmc.tv jessie/main Translation-en                                       
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en
Ign http://mirrordirector.raspbian.org jessie/main Translation-en
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en
Fetched 2023 B in 27s (74 B/s)                                                                                        
Reading package lists... Done
root@osmc:/home/osmc# apt-get install smb-app-osmc
Selecting previously unselected package samba.
(Reading database ... 27055 files and directories currently installed.)
Preparing to unpack .../samba_2%3a4.1.17+dfsg-2_armhf.deb ...
The following extra packages will be installed:
  samba
Suggested packages:
  bind9 bind9utils ctdb ldb-tools smbldap-tools winbind
Recommended packages:
  attr logrotate samba-vfs-modules
The following NEW packages will be installed:
  samba smb-app-osmc
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/866 kB of archives.
After this operation, 10.9 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
 samba were encountered while processing:eb8u2) ...rned error exit status 1ctl -xn' for details....................] Jo
E: Sub-process /usr/bin/dpkg returned an error code (1)

thanks.

The last two lines of your log seem to be corrupt or incomplete - are you sure this is a direct copy and paste ?

hi DBMandrake,

I’ve repeated the procedure again and added a screenshot above. The same result.

I’ve also notice about that the apt-get install is a little bit different as the ones I used before.

  1. there was a progress bar with green background while installing
  2. after that all the information of installing packages were disappeared.

I’ve dragged the window in purpose during installation to keep this informaiton

For some reason your SSH client cannot correctly display the Dpkg “fancy progress” bar at the bottom, this is leading to corruption of the display and the error message. (Most likely your terminal type is set wrong in the client - what client are you using ?)

Please try installing smb-app-osmc with this command, which will disable the fancy progress bar and should let us see the error message in its complete form:

sudo apt-get install smb-app-osmc -o Dpkg::Progress-Fancy=0

Hi, DBMandrake,

I’m using the terminal under Mac OSX as SSH client.

MacBook-Pro$bash -v
bash-3.2$

I could not repeat the same procedure because I’ve reinstalled the OSMC now everything works right.

I have the same problem installing samba.

I get the following error:

root@osmc:/home/osmc# sudo apt-get install smb-app-osmc -o Dpkg::Progress-Fancy=0 Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: smb-app-osmc 0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded. 1 not fully installed or removed. Need to get 0 B/3268 B of archives. After this operation, 0 B of additional disk space will be used. Setting up samba (2:4.2.10+dfsg-0+deb8u3) ... Job for smbd.service failed. See 'systemctl status smbd.service' and 'journalctl -xn' for details. invoke-rc.d: initscript smbd, action "start" failed. dpkg: error processing package samba (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: samba E: Sub-process /usr/bin/dpkg returned an error code (1)

Try completely purging the samba and smb-app-osmc packages then reinstall:

sudo apt-get purge samba smb-app-osmc

Sorry… same result

osmc@osmc:/$ sudo apt-get install smb-app-osmc -o Dpkg::Progress-Fancy=0 Paketlisten werden gelesen... Fertig Abhängigkeitsbaum wird aufgebaut. Statusinformationen werden eingelesen.... Fertig Die folgenden zusätzlichen Pakete werden installiert: samba Vorgeschlagene Pakete: bind9 bind9utils ctdb ldb-tools smbldap-tools winbind Empfohlene Pakete: attr logrotate samba-vfs-modules Die folgenden NEUEN Pakete werden installiert: samba smb-app-osmc 0 aktualisiert, 2 neu installiert, 0 zu entfernen und 2 nicht aktualisiert. Es müssen noch 0 B von 958 kB an Archiven heruntergeladen werden. Nach dieser Operation werden 10,8 MB Plattenplatz zusätzlich benutzt. Möchten Sie fortfahren? [J/n] J Vormals nicht ausgewähltes Paket samba wird gewählt. (Lese Datenbank ... 34551 Dateien und Verzeichnisse sind derzeit installiert.) Vorbereitung zum Entpacken von .../samba_2%3a4.2.10+dfsg-0+deb8u3_armhf.deb ... Entpacken von samba (2:4.2.10+dfsg-0+deb8u3) ... Trigger für systemd (215-17+deb8u4) werden verarbeitet ... Trigger für man-db (2.7.0.2-5) werden verarbeitet ... samba (2:4.2.10+dfsg-0+deb8u3) wird eingerichtet ... Job for smbd.service failed. See 'systemctl status smbd.service' and 'journalctl -xn' for details. invoke-rc.d: initscript smbd, action "start" failed. dpkg: Fehler beim Bearbeiten des Paketes samba (--configure): Unterprozess installiertes post-installation-Skript gab den Fehlerwert 1 zurück Trigger für systemd (215-17+deb8u4) werden verarbeitet ... Fehler traten auf beim Bearbeiten von: samba E: Sub-process /usr/bin/dpkg returned an error code (1) osmc@osmc:/$

Well there are a wide range of possible issues, try:

sudo apt-get purge samba samba-common samba-common-bin samba-libs smb-app-osmc
sudo apt-get -f install
sudo rm -r /etc/samba/

And then try to install it from the App Store

dpkg -l | grep samba to find your Samba packages you installed, then purge them.