在Ubuntu20.04LTS上安装了所有更新之后,我在监控上遇到了这个问题。其中一个systemd服务仍然失败,我不能禁用它。
● netplan-ovs-cleanup.service - OpenVSwitch configuration for cleanup
Loaded: loaded (/run/systemd/system/netplan-ovs-cleanup.service; enabled-runtime; vendor preset: enabled)
Active: inactive (dead)
Condition: start condition failed at Fri 2021-02-12 09:03:23 CET; 2h 22min ago
└─ ConditionFileIsExecutable=/usr/bin/ovs-vsctl was not met
Feb 12 08:54:55 hostname systemd[1]: Condition check resulted in OpenVSwitch configuration for cleanup being skipped.
Feb 12 09:03:23 hostname systemd[1]: Condition check resulted in OpenVSwitch configuration for cleanup being skipped.我正在寻找一些可以卸载的.deb包,但是dpkg没有。
发布于 2021-02-23 11:01:54
您应该能够使用以下命令禁用任何服务:
sudo systemctl disable servicename.service
sudo systemctl mask servicename.service第一个禁用服务。第二个确保服务不会在以后再次启动。
要恢复服务,unmask和enable:
sudo systemctl unmask servicename.service
sudo systemctl enable servicename.servicehttps://askubuntu.com/questions/1318617
复制相似问题