Ubuntu 21.04 NetworkManager.service 失败

Ubuntu 21.04 NetworkManager.service 失败

我在使用 NetworkManager 服务时遇到了一些问题。它会随机失败,除非我重启机器,否则我将无法连接互联网。以前,使用sudo service NetworkManager restart或重启 NetworkManager 服务sudo systemctl restart systemd-networkd可以解决问题,但现在它们不起作用了。重启机器是恢复互联网连接的唯一选择。

当我尝试重新启动 NetworkManager 服务时发生这种情况:

$ sudo service NetworkManager restart
Failed to restart NetworkManager.service: Unit NetworkManager.service failed to load properly: Transport endpoint is not connected.
See system logs and 'systemctl status NetworkManager.service' for details.

检查 systemctl 状态,我得到了以下信息:

$ systemctl status NetworkManager.service
● NetworkManager.service - Network Manager
     Loaded: error (Reason: Unit NetworkManager.service failed to load properly: Transport endpoint is not connected.)
     Active: inactive (dead) since Wed 2021-08-18 09:05:22 IST; 12min ago
       Docs: man:NetworkManager(8)
    Process: 1186 ExecStart=/usr/sbin/NetworkManager --no-daemon (code=exited, status=0/SUCCESS)
   Main PID: 1186 (code=exited, status=0/SUCCESS)

Aug 18 09:04:52 ashish-Inspiron-7570 NetworkManager[1186]: <info>  [1629257692.0857] caught SIGTERM, shutting down normally.
Aug 18 09:04:54 ashish-Inspiron-7570 NetworkManager[1186]: <info>  [1629257694.1067] device (wlp3s0): state change: activated -> deactivating (reason 'unmanaged', sys-iface-state: 'managed')
Aug 18 09:04:56 ashish-Inspiron-7570 NetworkManager[1186]: <info>  [1629257696.5316] device (wlp3s0): state change: deactivating -> unmanaged (reason 'removed', sys-iface-state: 'managed')
Aug 18 09:04:56 ashish-Inspiron-7570 NetworkManager[1186]: <info>  [1629257696.5512] dhcp4 (wlp3s0): canceled DHCP transaction
Aug 18 09:04:56 ashish-Inspiron-7570 NetworkManager[1186]: <info>  [1629257696.5513] dhcp4 (wlp3s0): state changed bound -> done
Aug 18 09:04:56 ashish-Inspiron-7570 NetworkManager[1186]: <info>  [1629257696.7884] manager: NetworkManager state is now CONNECTED_LOCAL
Aug 18 09:04:56 ashish-Inspiron-7570 NetworkManager[1186]: <info>  [1629257696.7891] device (p2p-dev-wlp3s0): state change: disconnected -> unmanaged (reason 'removed', sys-iface-state: 'removed')
Aug 18 09:04:56 ashish-Inspiron-7570 NetworkManager[1186]: <info>  [1629257696.7922] device (docker_gwbridge): bridge port vethb8a76bb was detached
Aug 18 09:04:56 ashish-Inspiron-7570 NetworkManager[1186]: <info>  [1629257696.7922] device (vethb8a76bb): released from master device docker_gwbridge
Aug 18 09:05:22 ashish-Inspiron-7570 systemd[1]: NetworkManager.service: Succeeded.

我已将journalctl -xe日志发布于:https://pastebin.com/vi8f4eSj

有人能帮助我找出故障所在以及如何重新启动故障组件,以便恢复我的互联网连接,而无需重新启动我的机器。

答案1

我也遇到了同样令人困惑的事情传输端点未连接发行时也出现错误systemctl restart NetworkManager,并且能够使用(猜测)解决它systemctl deaemon-reload

相关内容