在过去的一两周里,我在更新 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 用户名和组(已经存在)。我不想完全重新安装,还有其他建议吗?
谢谢。
正如这个问题/答案和 wurlyfan 的评论所暗示的,最好的选择可能是卸载 avahi-daemon。