After install ubuntu server 18.04 and found boot more 2 minute and have a error "a start job is running for wait for network to be configured"
How to fix this error check network interface
sudo networkctl
IDX LINK TYPE OPERATIONAL SETUP
1 lo loopback carrier unmanaged
2 enp4s5 ether routable configured
3 enp5s0 ether no-carrier configuring
sudo networkctl status enp4s5
1. sudo vim /run/systemd/generator/network-online.target.wants/systemd-networkd-wait-online.service
change this line
ExecStart=/lib/systemd/systemd-networkd-wait-online
to
ExecStart=/lib/systemd/systemd-networkd-wait-online --interface=enp4s5 --quiet
------------------edit-----------------------------------
[Service]
Type=oneshot
ExecStart=/lib/systemd/systemd-networkd-wait-online --interface=enp4s5 --quiet
RemainAfterExit=yes
Ô
------------------end------------------------------------
2. reboot
Ref: a-start-job-is-running-for-wait-for-network-to-be-configured-ubuntu-server-17-1