직접 패치 후에도 systemd-networkd-wait-online.service가 성공적으로 완료되지 않습니다.

직접 패치 후에도 systemd-networkd-wait-online.service가 성공적으로 완료되지 않습니다.

나는 그것이 systemd-networkd-wait-online.service항상 내 노트북에 있다는 것을 알았습니다. 이 조언을 활용하세요아치 리눅스 위키 페이지, 서비스 파일을 편집 systemctl edit systemd-networkd-wait-online하고 다음 내용을 파일에 추가했습니다 /etc/systemd/system/systemd-networkd-wait-online.service.d/override.conf.

[Service]
ExecStart=
ExecStart=/usr/lib/systemd/systemd-networkd-wait-online --any

데몬( systemctl daemon-reload)을 다시 로드한 후 서비스를 다시 시작했습니다 systemctl restart systemd-networkd-wait-online. 그러나 2분 후에도 서비스는 여전히 실패했습니다. 어떡해?


작동 중인 네트워크 인터페이스가 있습니다. 결과는 다음과 같습니다 ip a.

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host noprefixroute 
       valid_lft forever preferred_lft forever
2: enp2s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
    link/ether b4:45:06:50:6b:7a brd ff:ff:ff:ff:ff:ff
3: wlp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether a8:93:4a:ac:d7:73 brd ff:ff:ff:ff:ff:ff
    inet 172.20.10.9/28 brd 172.20.10.15 scope global dynamic noprefixroute wlp3s0
       valid_lft 81362sec preferred_lft 81362sec
    inet6 fe80::3902:41a4:241f:a7ad/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever
4: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default 
    link/ether 02:42:52:af:c1:0c brd ff:ff:ff:ff:ff:ff
    inet 172.17.0.1/16 brd 172.17.255.255 scope global docker0
       valid_lft forever preferred_lft forever

휴대폰의 핫스팟을 사용하고 있기 때문일 수도 있다고 생각하고 유효한 이더넷 연결을 사용해 보았지만 여전히 실패했습니다.

2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether b4:45:06:50:6b:7a brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.42/24 brd 192.168.1.255 scope global noprefixroute enp2s0
       valid_lft forever preferred_lft forever
    inet6 fe80::a540:801:603d:d8e9/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever

출력 systemctl status systemd-networkd-wait-online:

× systemd-networkd-wait-online.service - Wait for Network to be Configured
     Loaded: loaded (/usr/lib/systemd/system/systemd-networkd-wait-online.service; enabled; preset: enabled)
    Drop-In: /etc/systemd/system/systemd-networkd-wait-online.service.d
             └─override.conf
     Active: failed (Result: exit-code) since Thu 2023-10-19 11:43:19 BST; 15min ago
       Docs: man:systemd-networkd-wait-online.service(8)
    Process: 3401 ExecStart=/usr/lib/systemd/systemd-networkd-wait-online --any (code=exited, status=1/FAILURE)
   Main PID: 3401 (code=exited, status=1/FAILURE)
        CPU: 8ms

Oct 19 11:41:19 main systemd[1]: Starting Wait for Network to be Configured...
Oct 19 11:43:19 main systemd-networkd-wait-online[3401]: Timeout occurred while waiting for network connectivity.
Oct 19 11:43:19 main systemd[1]: systemd-networkd-wait-online.service: Main process exited, code=exited, status=1/FAILURE
Oct 19 11:43:19 main systemd[1]: systemd-networkd-wait-online.service: Failed with result 'exit-code'.
Oct 19 11:43:19 main systemd[1]: Failed to start Wait for Network to be Configured.

journalctl -xeu systemd-networkd-wait-online.service이미 복사되었기 때문에 출력을 제공하지 않습니다 systemctl status.

networkctl산출:

IDX LINK        TYPE     OPERATIONAL SETUP    
  1 lo          loopback carrier     unmanaged
  2 enp2s0      ether    no-carrier  unmanaged
  3 wlp3s0      wlan     routable    unmanaged
  4 docker0     bridge   routable    unmanaged
  8 vethc59fd34 ether    enslaved    unmanaged

5 links listed.

관련 정보