新装的deepin15.3在终端下更新安装samba时报错。
Tofloor
poster avatar
xyxc0673
deepin
2017-03-01 05:52
Author
之前用deepin时都没遇到这问题,然后昨天当了小白鼠体验了一下15.4后想换回来,然后就遇到这个问题了。最初我以为是我安装的姿势不对,又重装过系统,结果还是这样。不知道有谁遇到过这样的问题?要怎么解决?

错误信息:

  1. 正在读取软件包列表... 完成
  2. 正在分析软件包的依赖关系树      
  3. 正在读取状态信息... 完成      
  4. 正在计算更新... 完成
  5. 下列软件包是自动安装的并且现在不需要了:
  6.   imagemagick-common
  7. 使用'sudo apt autoremove'来卸载它(它们)。
  8. 升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
  9. 有 3 个软件包没有被完全安装或卸载。
  10. 解压缩后会消耗 0 B 的额外空间。
  11. 您希望继续执行吗? [Y/n] Y
  12. 正在设置 samba (2:4.4.7+dfsg-1) ...
  13. Failed to preset unit: Unit file /etc/systemd/system/samba-ad-dc.service is masked.
  14. /usr/bin/deb-systemd-helper: error: systemctl preset failed on samba-ad-dc.service: No such file or directory
  15. Job for nmbd.service failed because a timeout was exceeded.
  16. See "systemctl status nmbd.service" and "journalctl -xe" for details.
  17. invoke-rc.d: initscript nmbd, action "start" failed.
  18. ● nmbd.service - Samba NMB Daemon
  19.    Loaded: loaded (/lib/systemd/system/nmbd.service; enabled; vendor preset: enabled)
  20.    Active: failed (Result: timeout) since 二 2017-02-28 21:12:06 CST; 5ms ago
  21.      Docs: man:nmbd(8)
  22.            man:samba(7)
  23.            man:smb.conf(5)
  24. Main PID: 28501
  25.    Status: "nmbd: No local IPv4 non-loopback interfaces available, waiting for interface ..."
  26.     Tasks: 1 (limit: 4915)
  27.    CGroup: /system.slice/nmbd.service

  28. 2月 28 21:11:56 carl-pc systemd[1]: Starting Samba NMB Daemon...
  29. 2月 28 21:11:56 carl-pc systemd[1]: nmbd.service: Supervising process 28501 which is not our child. We'll most...exits.
  30. 2月 28 21:12:06 carl-pc systemd[1]: nmbd.service: Start operation timed out. Terminating.
  31. 2月 28 21:12:06 carl-pc systemd[1]: nmbd.service: Killing process 28501 (nmbd) with signal SIGKILL.
  32. 2月 28 21:12:06 carl-pc systemd[1]: Failed to start Samba NMB Daemon.
  33. 2月 28 21:12:06 carl-pc systemd[1]: nmbd.service: Unit entered failed state.
  34. 2月 28 21:12:06 carl-pc systemd[1]: nmbd.service: Failed with result 'timeout'.
  35. Hint: Some lines were ellipsized, use -l to show in full.
  36. dpkg: 处理软件包 samba (--configure)时出错:
  37. 子进程 已安装 post-installation 脚本 返回错误状态 1
  38. dpkg: 依赖关系问题使得 dde-file-manager 的配置工作不能继续:
  39. dde-file-manager 依赖于 samba;然而:
  40.   软件包 samba 尚未配置。

  41. dpkg: 处理软件包 dde-file-manager (--configure)时出错:
  42. 依赖关系问题 - 仍未被配置
  43. dpkg: 依赖关系问题使得 dde 的配置工作不能继续:
  44. dde 依赖于 dde-file-manager;然而:
  45.   软件包 dde-file-manager 尚未配置。

  46. dpkg: 处理软件包 dde (--configure)时出错:
  47. 依赖关系问题 - 仍未被配置
  48. 正在处理用于 libc-bin (2.24-5) 的触发器 ...
  49. 在处理时有错误发生:
  50. samba
  51. dde-file-manager
  52. dde
  53. E: Sub-process /usr/bin/dpkg returned an error code (1)
Copy the Code


Reply Favorite View the author
All Replies
avatar
nexus2017
deepin
2017-03-13 04:11
#1
萌新帮顶,我貌似也有这个问题,但是不懂。
Reply View the author
avatar
lordopt
deepin
2017-05-28 23:02
#2
我也遇到这个问题了,我是这么解决的:

$ sudo systemctl mask samba-ad-dc.service

如果提示Failed to mask unit: File /etc/systemd/system/samba-ad-dc.service already exists. 就去相应目录下把那个文件删了,然后重新执行上面的命令,再安装samba就没问题了
Reply View the author
avatar
hghua
deepin
2017-05-28 23:21
#3
是啊,每次重启时smb服务都失败,可执行以下命令查看:
systemctl --failed
Reply View the author
avatar
hghua
deepin
2017-05-28 23:22
#4
https://bbs.deepin.org/post/135336
我也遇到这个问题了,我是这么解决的:

$ sudo systemctl mask samba-ad-dc.service

兄弟是怎么发现这个解决方法的?
Reply View the author
avatar
lordopt
deepin
2017-05-28 23:46
#5
https://bbs.deepin.org/post/135336
兄弟是怎么发现这个解决方法的?

搜到这个页面:
http://debian.2.n7.nabble.com/Bug-828137-samba-does-not-install-and-fails-to-start-td3870676.html
Reply View the author
avatar
jingle
deepin
2017-05-29 06:00
#6
Reply View the author
avatar
fatal
deepin
2017-07-22 22:18
#7
停用当前的 PPPOE拨号链接  改为网线直连   可解决问题
Reply View the author
avatar
mythos
deepin
2017-08-10 23:01
#8
https://bbs.deepin.org/post/135336
停用当前的 PPPOE拨号链接  改为网线直连   可解决问题

蟹蟹,断了有线网卡就解决了
Reply View the author
avatar
jiancheng_wang
deepin
2017-08-12 08:08
#9
Main PID: 21490 (code=exited, status=1/FAILURE)
wjc@wjc-PC:~$ journalctl  -xe
Hint: You are currently not seeing messages from other users and the system.
      Users in groups 'adm', 'systemd-journal' can see all messages.
      Pass -q to turn off this notice.
Aug 11 23:57:43 wjc-PC daemon/dock[1043]: dock_manager_hide_state.go:66: getActiveWinGroup: not found active window in clientListSt
Aug 11 23:57:43 wjc-PC daemon/dock[1043]: xutils.go:265: GetProperty: No such property '_NET_WM_DESKTOP' on window 2a0016e.
Aug 11 23:57:44 wjc-PC daemon/dock[1043]: dock_manager_hide_state.go:66: getActiveWinGroup: not found active window in clientListSt
Aug 11 23:57:44 wjc-PC daemon/dock[1043]: xutils.go:265: GetProperty: No such property '_NET_WM_DESKTOP' on window 2a0016e.
Aug 11 23:57:44 wjc-PC daemon/dock[1043]: dock_manager_hide_state.go:66: getActiveWinGroup: not found active window in clientListSt
Aug 11 23:57:44 wjc-PC daemon/dock[1043]: xutils.go:265: GetProperty: No such property '_NET_WM_DESKTOP' on window 2a0016e.
Aug 11 23:57:45 wjc-PC daemon/dock[1043]: dock_manager_hide_state.go:66: getActiveWinGroup: not found active window in clientListSt
Aug 11 23:57:45 wjc-PC daemon/dock[1043]: xutils.go:265: GetProperty: No such property '_NET_WM_DESKTOP' on window 2a0016e.
Aug 11 23:57:45 wjc-PC daemon/dock[1043]: dock_manager_hide_state.go:66: getActiveWinGroup: not found active window in clientListSt
Aug 11 23:57:45 wjc-PC daemon/dock[1043]: xutils.go:265: GetProperty: No such property '_NET_WM_DESKTOP' on window 2a0016e.
Aug 11 23:59:45 wjc-PC daemon/dock[1043]: dock_manager_hide_state.go:66: getActiveWinGroup: not found active window in clientListSt
Aug 11 23:59:45 wjc-PC daemon/dock[1043]: xutils.go:265: GetProperty: No such property '_NET_WM_DESKTOP' on window 1400029.
Aug 11 23:59:51 wjc-PC daemon/dock[1043]: dock_manager_hide_state.go:66: getActiveWinGroup: not found active window in clientListSt
Reply View the author
avatar
errormaker
deepin
2017-09-24 17:58
#10
https://bbs.deepin.org/post/135336
蟹蟹,断了有线网卡就解决了

断网了 还玩啥啊 没看懂
Reply View the author
avatar
mythos
deepin
2017-09-26 07:29
#11
https://bbs.deepin.org/post/135336
断网了 还玩啥啊 没看懂

用WiFi下载安装 ,然后重启
Reply View the author
avatar
errormaker
deepin
2017-09-27 17:55
#12
https://bbs.deepin.org/post/135336
用WiFi下载安装 ,然后重启

我这是台式 2333
Reply View the author
avatar
lifeng202
deepin
2017-11-14 08:59
#13
装openssh-server的时候也遇到同样的问题,mask没解决问题,remove dpkg info也不行
Reply View the author