I have a desktop Ubuntu 22.04 that started taking over 2 minutes to start, and I determined this is probably because I did a server install and then installed Xfce on it which brought in NetworkManager from looking through these threads. This fixed it for me...


sudo systemctl stop systemd-networkd
sudo systemctl disable systemd-networkd
sudo systemctl mask systemd-networkd

sudo systemctl stop systemd-networkd-wait-online.service
sudo systemctl disable systemd-networkd-wait-online.service
sudo systemctl mask systemd-networkd-wait-online.service


Then I figured I don't need cloud-init and disabled that, plus why does NetworkManager need to wait for network either? So now my system has never been faster to start up...


sudo touch /etc/cloud/cloud-init.disabled

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