在 16.04 中禁用 CUPS 和 CUPS-BROWSED

Jui*_*icy 14 printing services systemd 16.04

其他问题中公认的解决方案,即:

echo manual > /etc/init/cups.override
echo manual > /etc/init/cups-browsed.override
reboot
Run Code Online (Sandbox Code Playgroud)

不要在 16.04 中工作。我不想卸载,cups因为我偶尔会需要它,但我不希望服务在启动时自动启动。

我怎样才能在 16.04 中实现这一目标?

Tho*_*mas 31

由于 Ubuntu 16.04 aka Xenialsystemd用作 init,您必须使用systemctl来控制/启动/停止服务。

在您的情况下,以下几行应该可以完成这项工作。

systemctl stop cups
systemctl stop cups-browsed
systemctl disable cups
systemctl disable cups-browsed
Run Code Online (Sandbox Code Playgroud)