i just installed ubuntu server on my laptop and everything works fine except for the fact that at boot if the laptop is not connected to ethernet or in range of my wi-fi i get this message "A start job is running for wait for network to be configured" that stays for about 2 minutes. I looked up online for solutions and i tried to:

  • Disable network manager
  • Edit timeout settings in /etc/systemd/system.conf
  • Disable systemd.networkd-wait-online.service

None of these solutions worked for me. Any possible fixes?

  • Those are the fixes. After each change, did you reload NM/systemd? They only read their config files at start. – user535733 Nov 2 '17 at 17:55
  • Yes i used systemctl daemon-reload, still the same result – vlad27 Nov 2 '17 at 18:23


systemctl disable systemd-networkd-wait-online.service

to disable the wait-online service to prevent the system from waiting on a network connection, and use

systemctl mask systemd-networkd-wait-online.service

to prevent the service from starting if requested by another service (the service is symlinked to /dev/null).

  • What means masking in this context?. – Jaime Hablutzel Mar 27 '18 at 3:37
  • It worked. :) Can you please describe what we have done here? I am just curious. – SD. Apr 14 '18 at 5:22
  • 2
    @SD @jaime-hablutzel See askubuntu.com/a/816378/445084 for an explanation of systemctl mask. Long story short: masking a service redirects it to /dev/null, preventing it from being re-enabled in the case that it is required by another service. – timelmer Apr 18 '18 at 22:43

Don't mask or disable the systemd service.

Edit /etc/netplan/01-netcfg.yaml and add optional: true to any devices that may not always be available.

sudo netplan apply
  • In my case it only worked after setting all interfaces to optional: true – duli Mar 4 at 14:11

This means systemd-networkd-wait-online.service is hanging. There's a few known bugs with it. Check what services want network-online.target with:

systemctl show -p WantedBy network-online.target

You can disable those services if you want. Otherwise, you may have to mask the service as Mr.Ecco indicated.


Use commands:

$ sudo systemctl stop systemd-networkd-wait-online.service
$ sudo systemctl disable systemd-networkd-wait-online.service
  • 6
    Could you explain why this is better than the top answer? – Melebius Sep 19 '18 at 11:31
  • 3
    Welcome to Ask Ubuntu! When you answer, please refrain from posting commands without context. We'd like to see why a given command fixes a problem. Also, as a side note, unless you manually enabled systemd-networkd-wait-online.service, those two commands are not sufficient. – Duncan X Simpson Sep 19 '18 at 14:31

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.