在Ubuntu 20.04中,Snap Store总是在启动时自动运行。我该如何禁止它在启动时自动运行?
我很少使用Snap服务。
我很少使用Snap服务。
sudo systemctl disable snapd.service
sudo systemctl disable snapd.socket
sudo systemctl disable snapd.seeded.service
sudo systemctl disable servicename
其中"servicename"是实际服务的名称。我对Snap Store服务不熟悉,所以您需要自己找出名称。
如前所述,依赖于该服务的其他服务仍然可以启动它,因此它可能会在启动时自动启动。如果发生这种情况,请告诉我,也许我们可以想出另一种解决方案。
如果您需要手动启动该服务,可以运行以下命令:
sudo systemctl start servicename
sudo systemctl status servicename
并且
sudo systemctl stop servicename