Проигнорируйте следующую ошибку о deb-systemd-helper, не находящем samba-ad-dc.service

когда я пытаюсь обновить его прибывший, я не знает, как разрешить это

shashank@shashank-H110M-S2:~$ sudo apt install apt
[sudo] password for shashank: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
apt is already the newest version (1.6.6).
The following packages were automatically installed and are no longer required:
  linux-headers-4.15.0-34 linux-headers-4.15.0-34-generic
  linux-image-4.15.0-34-generic linux-modules-4.15.0-34-generic
  linux-modules-extra-4.15.0-34-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up samba (2:4.7.6+dfsg~ubuntu-0ubuntu2.2) ...
Samba is not being run as an AD Domain Controller.
Please ignore the following error about deb-systemd-helper not finding samba-ad-dc.service.
Job for nmbd.service failed because a timeout was exceeded.
See "systemctl status nmbd.service" and "journalctl -xe" for details.
invoke-rc.d: initscript nmbd, action "start" failed.
● nmbd.service - Samba NMB Daemon
   Loaded: loaded (/lib/systemd/system/nmbd.service; disabled; vendor preset: enabled)
   Active: failed (Result: timeout) since Mon 2018-11-12 13:21:42 IST; 19ms ago
     Docs: man:nmbd(8)
           man:samba(7)
           man:smb.conf(5)
  Process: 6648 ExecStart=/usr/sbin/nmbd --foreground --no-process-group $NMBDOPTIONS (code=killed, signal=TERM)
 Main PID: 6648 (code=killed, signal=TERM)
   Status: "nmbd: No local IPv4 non-loopback interfaces available, waiting for interface ..."

Nov 12 13:20:12 shashank-H110M-S2 systemd[1]: Starting Samba NMB Daemon...
Nov 12 13:21:42 shashank-H110M-S2 systemd[1]: nmbd.service: Start operation timed out. Terminating.
Nov 12 13:21:42 shashank-H110M-S2 systemd[1]: nmbd.service: Failed with result 'timeout'.
Nov 12 13:21:42 shashank-H110M-S2 systemd[1]: Failed to start Samba NMB Daemon.
dpkg: error processing package samba (--configure):
 installed samba package post-installation script subprocess returned error exit status 1
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Errors were encountered while processing:
 samba
E: Sub-process /usr/bin/dpkg returned an error code (1)
-1
задан 12 November 2018 в 11:02

1 ответ

У меня была та же проблема, но с последним обновлением я удалил и переустановил все, и теперь он работает нормально.

Надеюсь, это поможет вам

0
ответ дан 22 September 2019 в 16:29

Другие вопросы по тегам:

Похожие вопросы: