samba falhou ao iniciar após a instalação

0

Estou tentando executar o samba na minha caixa, mas não o faço. depois de instalar o samba eu sempre recebo uma mensagem de erro, algumas bibliotecas estão faltando.

meu ambiente:

lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 9.5 (stretch)
Release:    9.5
Codename:   stretch

Linux test 4.9.0-8-amd64 #1 SMP Debian 4.9.110-3+deb9u4 (2018-08-21) x86_64 GNU/Linux


● smbd.service - Samba SMB Daemon
   Loaded: loaded (/lib/systemd/system/smbd.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Mon 2018-09-10 09:07:55 CEST; 12ms ago
     Docs: man:smbd(8)
           man:samba(7)
           man:smb.conf(5)
  Process: 45717 ExecStart=/usr/sbin/smbd $SMBDOPTIONS (code=exited, status=127)
 Main PID: 45717 (code=exited, status=127)

Sep 10 09:07:55 test systemd[1]: Starting Samba SMB Daemon...
Sep 10 09:07:55 test smbd[45717]: /usr/sbin/smbd: error while loading shared libraries: libwinbind-client.so.0: cannot open shared object file: No such fi… or directory
Sep 10 09:07:55 test systemd[1]: smbd.service: Main process exited, code=exited, status=127/n/a
Sep 10 09:07:55 test systemd[1]: Failed to start Samba SMB Daemon.
Sep 10 09:07:55 test systemd[1]: smbd.service: Unit entered failed state.
Sep 10 09:07:55 test systemd[1]: smbd.service: Failed with result 'exit-code'.
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: error processing package samba (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Processing triggers for systemd (232-25+deb9u4) ...
Processing triggers for ufw (0.35-4) ...
Errors were encountered while processing:

Eu tentei resolver esse problema:

apt-get autoremove --purge
apt-get autoclean
apt-get remove samba samba-common
apt-get autoclean 
apt-get autoremove --purge

a lib parece estar no pacote libwbclient-dev, então eu instalei libwbclient-dev

libwbclient-dev is already the newest version (2:4.5.12+dfsg-2+deb9u3)

sem sucesso.

    
por Peter 10.09.2018 / 09:17

1 resposta

0

Isso parece uma instalação quando algumas das dependências estão ausentes. Normalmente, é porque você esqueceu de executar apt-get update antes do apt-get install... e, portanto, o conjunto esperado de pacotes não corresponde mais à realidade.

Corrigir

apt-get update     # Get the current set of packages
apt-get install    # Complete the installation attempt
    
por 10.09.2018 / 09:36

Tags