0

Currently, on my laptop I'm using Ubuntu 24.04 which I installed a few days ago, and it takes a long time to boot up. Using the systemd-analyze blame command, I noticed that it's NetworkManager.service's fault. Following the advice from this question (Help me troubleshoot slow boot since 24.04 upgrade), I tried forgetting all Wi-Fi networks, and the boot time decreased dramatically. I specify that I am using a Wi-Fi connection, not Ethernet. At this point I wanted to ask if there is anyone who has found a solution that does not involve forgetting all Wi-Fi networks at each reboot.

1 Answer 1

3

The boot process only waits for the network to be active if there is something that declares a dependency on it -- on a normal system no services do that, so the network configures in the background.

Forgetting all networks makes network configuration fail, which also allows booting to progress, but the actual problem is that something is waiting for the network to be configured, and wifi takes a while (because it requires a network scan (which has a 2 second timeout) and a DHCP lease (which typically has a five second collision detection period).

1
  • So if I disable the service that uses the network manager, the boot time should decrease?
    – Lingegnere
    Commented Jul 3 at 9:44

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .