Unknown username whoopsie in message bus configuration file
2022年7月8日大约 1 分钟
上一级页面:index-la
前言
运行dbus-daemon时出现的报错
● dbus.service - D-Bus System Message Bus
Loaded: loaded (/lib/systemd/system/dbus.service; static; vendor preset: enabled)
Active: active (running) since Fri 2022-07-08 11:07:47 CST; 1min 34s ago
TriggeredBy: ● dbus.socket
Docs: man:dbus-daemon(1)
Main PID: 198 (dbus-daemon)
Tasks: 1 (limit: 2286)
Memory: 1.2M
CGroup: /system.slice/dbus.service
└─198 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
7月 08 11:07:47 WSL-b6OupkEv systemd[1]: Started D-Bus System Message Bus.
7月 08 11:07:47 WSL-b6OupkEv dbus-daemon[198]: dbus[198]: Unknown username "whoopsie" in message bus configuration file
具体报错如下
daemon[198]: dbus[198]: Unknown username "whoopsie" in message bus configuration file
whoopsie是“Ubuntu 错误报告”守护程序,默认情况下安装在桌面/服务器安装中。详见apport - 什么是“whoopsie”过程,我该如何删除它?- 问乌班图 (askubuntu.com)
需要注意的是它很耗费服务器的RAM,并且没什么用处,它只会向外发送错误报告
如何解决
查找 whoopsie 引用的来源配置文件:
cd /etc/dbus-1/system.d
grep -nr "Whoop" ./
对我来说找到这个文件
./com.ubuntu.WhoopsiePreferences.conf
lamirs@WSL-b6OupkEv /etc/dbus-1/system.d grep -nr "Whoop" ./
./com.ubuntu.WhoopsiePreferences.conf:11: <allow own="com.ubuntu.WhoopsiePreferences"/>
./com.ubuntu.WhoopsiePreferences.conf:17: <allow send_destination="com.ubuntu.WhoopsiePreferences"
./com.ubuntu.WhoopsiePreferences.conf:18: send_interface="com.ubuntu.WhoopsiePreferences"/>
./com.ubuntu.WhoopsiePreferences.conf:19: <allow send_destination="com.ubuntu.WhoopsiePreferences"
./com.ubuntu.WhoopsiePreferences.conf:21: <allow send_destination="com.ubuntu.WhoopsiePreferences"
移动走它
sudo mv com.ubuntu.WhoopsiePreferences.conf ~/com.ubuntu.W
hoopsiePreferences.conf