The method depends on desktop environment:

For Ubuntu MATE 18.04 LTS and 20.04 LTS purging network-manager package is safe. You can simply run:

sudo apt-get purge network-manager
For Ubuntu 18.04 LTS and 20.04 LTS with GNOME desktop purging network-manager package will also purge ubuntu-desktop and gnome-control-center (essential part of GNOME desktop). So it is not an option.

Here you should disable NetworkManager service (as you have already done):

sudo systemctl stop NetworkManager.service
sudo systemctl disable NetworkManager.service
and three more services:

sudo systemctl stop NetworkManager-wait-online.service
sudo systemctl disable NetworkManager-wait-online.service

sudo systemctl stop NetworkManager-dispatcher.service
sudo systemctl disable NetworkManager-dispatcher.service

sudo systemctl stop network-manager.service
sudo systemctl disable network-manager.service
and then reboot.

see

https://askubuntu.com/questions/1091653/how-do-i-disable-network-manager-permanently

警告

关闭NetworkManager会导致无法使用网络,如果想要禁止它修改/etc/resolv.conf,配置其关闭自动DNS即可。

相关文章:

  • 2022-01-07
  • 2021-09-27
  • 2021-07-24
  • 2021-07-19
  • 2022-12-23
  • 2021-07-10
  • 2021-11-21
  • 2021-12-29
猜你喜欢
  • 2022-02-11
  • 2021-06-06
  • 2021-06-17
  • 2022-12-23
  • 2022-12-23
  • 2021-10-04
  • 2021-08-16
相关资源
相似解决方案