ubuntu 20.04.2.0 lts
关闭 CUPS 打印整套服务(cups 主服务 + cups‑browsed 浏览服务)
不使用打印机就关掉;以后要用打印机再打开。
sudo systemctl disable --now cups.service
sudo systemctl disable --now cups-browsed.service
#彻底禁用打印相关的socket、path单元
sudo systemctl disable --now cups.socket
sudo systemctl disable --now cups.path
校验全部状态命令
systemctl is-enabled cups.service
systemctl is-enabled cups.socket
systemctl is-enabled cups.path
systemctl is-enabled cups-browsed.service
全部输出disabled才算整套打印服务完全禁止开机自启。