avahi-daemon 未设置

avahi-daemon 未设置

在过去的一两周里,我更新 Ubuntu 18.04 时遇到软件包安装失败的问题。以下文本出现在“详细信息”窗口中:

Setting up gnome-session-flashback (1:3.28.0-1ubuntu1.1) ...
gnome-session-flashback.target is a disabled or a static unit not running, not starting it.
Setting up avahi-daemon (0.7-3.1ubuntu1.1) ...
Job for avahi-daemon.service failed because a timeout was exceeded.
See "systemctl status avahi-daemon.service" and "journalctl -xe" for details.
invoke-rc.d: initscript avahi-daemon, action "restart" failed.
● avahi-daemon.service - Avahi mDNS/DNS-SD Stack
   Loaded: loaded (/lib/systemd/system/avahi-daemon.service; enabled; vendor preset: enabled)
   Active: failed (Result: timeout) since Sat 2018-09-15 12:20:04 NZST; 5ms ago
  Process: 25493 ExecStart=/usr/sbin/avahi-daemon -s (code=exited, status=0/SUCCESS)
 Main PID: 25493 (code=exited, status=0/SUCCESS)
   Status: "avahi-daemon 0.7 starting up."

Sep 15 12:18:35 graham-desktop avahi-daemon[25493]: Service "graham-desktop" (/services/udisks.service) successfully established.
Sep 15 12:20:04 graham-desktop systemd[1]: avahi-daemon.service: Start operation timed out. Terminating.
Sep 15 12:20:04 graham-desktop avahi-daemon[25493]: Got SIGTERM, quitting.
Sep 15 12:20:04 graham-desktop avahi-daemon[25493]: Leaving mDNS multicast group on interface eth1.IPv6 with address fe80::75a:34e8:b08f:56e3.
Sep 15 12:20:04 graham-desktop avahi-daemon[25493]: Leaving mDNS multicast group on interface eth1.IPv4 with address 192.168.1.100.
Sep 15 12:20:04 graham-desktop avahi-daemon[25493]: Leaving mDNS multicast group on interface lo.IPv6 with address ::1.
Sep 15 12:20:04 graham-desktop avahi-daemon[25493]: Leaving mDNS multicast group on interface lo.IPv4 with address 127.0.0.1.
Sep 15 12:20:04 graham-desktop avahi-daemon[25493]: avahi-daemon 0.7 exiting.
Sep 15 12:20:04 graham-desktop systemd[1]: avahi-daemon.service: Failed with result 'timeout'.
Sep 15 12:20:04 graham-desktop systemd[1]: Failed to start Avahi mDNS/DNS-SD Stack.
dpkg: error processing package avahi-daemon (--configure):
 installed avahi-daemon package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 avahi-daemon
E: Sub-process /usr/bin/dpkg returned an error code (1)

我已经尝试创建 avahi 用户名和组(已存在)。我不想完全重新安装,还有其他建议吗?

谢谢。

答案1

正如暗示的那样这个问题/答案和 wurlyfan 的评论,最好的选择可能是卸载 avahi-daemon。

相关内容