在 Ubuntu 里并没有一个叫 “trigger” 的命令或系统。你指的 trigger 很可能是下面几种之一,我按常见情况给你说明怎么“关闭”:
systemctl list-timers --all
例如:
sudo systemctl disable --now xxx.timer
例如关闭自动更新触发:
sudo systemctl disable --now apt-daily.timer
sudo systemctl disable --now apt-daily-upgrade.timer
这是 包管理器内部机制,不能也不建议直接“关闭”,但可以:
sudo dpkg --configure -a --no-triggers
⚠️ 不推荐日常使用,可能导致系统状态异常。
编辑:
sudo nano /etc/systemd/logind.conf
修改:
HandleLidSwitch=ignore
HandleLidSwitchExternalPower=ignore
然后:
sudo systemctl restart systemd-logind
udevadm trigger --verbose
sudo nano /etc/udev/rules.d/xxx.rules
注释或删除规则后:
sudo udevadm control --reload
sudo systemctl disable --now cron
请告诉我:
“Ubuntu trigger” 具体是:
你可以直接把 英文原文或截图文字 发给我。