I ran:

 2023  sudo systemctl disable avahi-daemon.socket avahi-daemon.service 
 2024  sudo systemctl stop avahi-daemon.socket avahi-daemon.service 
 2025  sudo ps -aux | head
 2026  sudo ps -aux | grep avahi
 2027  sudo apt-get purge avahi-daemon 
 2028  sudo rm /var/run/avahi-daemon/ -rf

chen@MSI-Ubuntu:/var/run$ sudo apt-get purge avahi-daemon 
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
下列软件包将被【卸载】:
  avahi-daemon* libnss-mdns*
升级了 0 个软件包,新安装了 0 个软件包,要卸载 2 个软件包,有 0 个软件包未被升级。
解压缩后将会空出 501 kB 的空间。
您希望继续执行吗? [Y/n] y
(正在读取数据库 ... 系统当前共安装有 339528 个文件和目录。)
正在卸载 libnss-mdns:amd64 (0.10-6) ...
libnss-mdns.postrm: Checking NSS setup...
libnss-mdns.postrm: Removing mdns from NSS setup
正在清除 libnss-mdns:amd64 (0.10-6) 的配置文件 ...
正在卸载 avahi-daemon (0.6.31-4ubuntu4) ...
正在清除 avahi-daemon (0.6.31-4ubuntu4) 的配置文件 ...
rmdir: 删除 "/var/run/avahi-daemon" 失败: 目录非空
正在处理用于 libc-bin (2.21-0ubuntu4) 的触发器 ...
正在处理用于 dbus (1.8.12-1ubuntu5) 的触发器 ...
正在处理用于 man-db (2.7.0.2-5) 的触发器 ...
chen@MSI-Ubuntu:/var/run$ sudo rm /var/run/avahi-daemon/ -rf


I think I removed it successfully.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1502438

Title:
  package avahi-daemon 0.6.31-4ubuntu4 failed to install/upgrade: 子进程
  已安装 pre-removal 脚本 返回错误状态 1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/avahi/+bug/1502438/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to