如何从 ubuntu 20.04 中彻底清除垃圾服务及其功能?我想完全删除此服务守护程序及其程序文件和程序包(如果存在)。所有关于此的建议都解释了如何禁用垃圾图标或项目,而不是守护程序或服务。我想完全禁用正在运行的垃圾守护程序。
答案1
假设你的服务[servicename]
以 root 身份运行:
systemctl stop [servicename]
systemctl disable [servicename]
rm /etc/systemd/system/[servicename]
rm /etc/systemd/system/[servicename] # and symlinks that might be related
rm /usr/lib/systemd/system/[servicename]
rm /usr/lib/systemd/system/[servicename] # and symlinks that might be related
systemctl daemon-reload
systemctl reset-failed