Ubuntu 20.04.2 LTS 突然失去互联网连接

Ubuntu 20.04.2 LTS 突然失去互联网连接

我的电脑连接到路由器。路由器一直在工作,并且有互联网连接。几天前,我注意到我突然无法再通过路由器管理页面连接到我的电脑。我不知道这是我的电脑配置错误还是 NetworkManager 错误,或者其他什么原因。非常感谢任何提示!

syslog那一天:

Jun 24 04:06:32 myPC001 NetworkManager[724]: <error> [1687572392.0562] dhcp4 (enp1s0): error -111 dispatching events
Jun 24 04:06:32 myPC001 NetworkManager[724]: <info>  [1687572392.0562] dhcp4 (enp1s0): state changed extended -> fail
Jun 24 04:06:32 myPC001 NetworkManager[724]: <info>  [1687572392.0563] device (enp1s0): DHCPv4: trying to acquire a new lease within 90 seconds
Jun 24 04:06:55 myPC001 ntpd[419423]: error resolving pool ntp.ubuntu.com: Temporary failure in name resolution (-3)
Jun 24 04:06:55 myPC001 ntpd[419423]: Soliciting pool server 0.0.0.1
Jun 24 04:07:24 myPC001 ntpd[419423]: Soliciting pool server 0.0.0.0
Jun 24 04:07:59 myPC001 ntpd[419423]: error resolving pool ntp.ubuntu.com: Temporary failure in name resolution (-3)
Jun 24 04:07:59 myPC001 ntpd[419423]: Soliciting pool server 0.0.0.1
Jun 24 04:08:02 myPC001 NetworkManager[724]: <info>  [1687572482.5143] device (enp1s0): DHCPv4: grace period expired
Jun 24 04:08:02 myPC001 NetworkManager[724]: <info>  [1687572482.5144] device (enp1s0): state change: activated -> failed (reason 'ip-config-unavailable', sys-iface-state: 'managed')
Jun 24 04:08:02 myPC001 NetworkManager[724]: <info>  [1687572482.5214] manager: NetworkManager state is now CONNECTED_LOCAL
Jun 24 04:08:02 myPC001 NetworkManager[724]: <warn>  [1687572482.5291] device (enp1s0): Activation: failed for connection 'netplan-enp1s0'
Jun 24 04:08:02 myPC001 dbus-daemon[723]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.10' (uid=0 pid=724 comm="/usr/sbin/NetworkManager --no-daemon " label="unconfined")
Jun 24 04:08:02 myPC001 systemd[1]: Starting Network Manager Script Dispatcher Service...
Jun 24 04:08:02 myPC001 NetworkManager[724]: <info>  [1687572482.5503] device (enp1s0): state change: failed -> disconnected (reason 'none', sys-iface-state: 'managed')
Jun 24 04:08:02 myPC001 avahi-daemon[1212771]: Withdrawing address record for fe81::76fe:49ff:fe7b:6101 on enp1s0.
Jun 24 04:08:02 myPC001 avahi-daemon[1212771]: Leaving mDNS multicast group on interface enp1s0.IPv6 with address fe81::76fe:49ff:fe7b:6101.
Jun 24 04:08:02 myPC001 avahi-daemon[1212771]: Interface enp1s0.IPv6 no longer relevant for mDNS.
Jun 24 04:08:02 myPC001 NetworkManager[724]: <info>  [1687572482.5756] dhcp4 (enp1s0): canceled DHCP transaction
Jun 24 04:08:02 myPC001 NetworkManager[724]: <info>  [1687572482.5760] dhcp4 (enp1s0): state changed fail -> done
Jun 24 04:08:02 myPC001 dbus-daemon[723]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Jun 24 04:08:02 myPC001 systemd[1]: Started Network Manager Script Dispatcher Service.
Jun 24 04:08:02 myPC001 avahi-daemon[1212771]: Withdrawing address record for 192.168.1.101 on enp1s0.
Jun 24 04:08:02 myPC001 avahi-daemon[1212771]: Leaving mDNS multicast group on interface enp1s0.IPv4 with address 192.168.1.101.
Jun 24 04:08:02 myPC001 avahi-daemon[1212771]: Interface enp1s0.IPv4 no longer relevant for mDNS.
Jun 24 04:08:02 myPC001 whoopsie[934]: [04:08:02] Cannot reach: https://daisy.ubuntu.com
Jun 24 04:08:02 myPC001 nm-dispatcher[1572748]: run-parts: failed to stat component /etc/network/if-post-down.d/avahi-daemon: No such file or directory
Jun 24 04:08:02 myPC001 NetworkManager[724]: <info>  [1687572482.6495] policy: auto-activating connection 'netplan-enp1s0' (cac41fbe-bc18-3d87-bba7-af2af7f8ffab)
Jun 24 04:08:02 myPC001 NetworkManager[724]: <info>  [1687572482.6636] device (enp1s0): Activation: starting connection 'netplan-enp1s0' (cac41fbe-bc18-3d87-bba7-af2af7f8ffab)
Jun 24 04:08:02 myPC001 NetworkManager[724]: <info>  [1687572482.6669] device (enp1s0): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed')
Jun 24 04:08:02 myPC001 NetworkManager[724]: <info>  [1687572482.6706] manager: NetworkManager state is now CONNECTING
Jun 24 04:08:02 myPC001 NetworkManager[724]: <info>  [1687572482.6733] device (enp1s0): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
Jun 24 04:08:02 myPC001 NetworkManager[724]: <info>  [1687572482.6874] device (enp1s0): state change: config -> ip-config (reason 'none', sys-iface-state: 'managed')
Jun 24 04:08:02 myPC001 NetworkManager[724]: <info>  [1687572482.6896] dhcp4 (enp1s0): activation: beginning transaction (timeout in 45 seconds)
Jun 24 04:08:02 myPC001 avahi-daemon[1212771]: Joining mDNS multicast group on interface enp1s0.IPv6 with address fe81::76fe:49ff:fe7b:6101.
Jun 24 04:08:02 myPC001 avahi-daemon[1212771]: New relevant interface enp1s0.IPv6 for mDNS.
Jun 24 04:08:02 myPC001 /usr/lib/gdm3/gdm-wayland-session[1015]: dbus-daemon[1015]: [session uid=125 pid=1015] Activating service name='org.freedesktop.systemd1' requested by ':1.10' (uid=125 pid=1300 comm="/usr/libexec/gsd-sharing " label="unconfined")
Jun 24 04:08:02 myPC001 avahi-daemon[1212771]: Registering new address record for fe81::76fe:49ff:fe7b:6101 on enp1s0.*.
Jun 24 04:08:02 myPC001 /usr/lib/gdm3/gdm-wayland-session[1015]: dbus-daemon[1015]: [session uid=125 pid=1015] Activating service name='ca.desrt.dconf' requested by ':1.2' (uid=125 pid=1061 comm="/usr/bin/gnome-shell " label="unconfined")
Jun 24 04:08:02 myPC001 /usr/lib/gdm3/gdm-wayland-session[1015]: dbus-daemon[1015]: [session uid=125 pid=1015] Successfully activated service 'ca.desrt.dconf'
Jun 24 04:08:02 myPC001 /usr/lib/gdm3/gdm-wayland-session[1015]: dbus-daemon[1015]: [session uid=125 pid=1015] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1
Jun 24 04:08:02 myPC001 gsd-sharing[1300]: Failed to StopUnit service: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Process org.freedesktop.systemd1 exited with status 1
Jun 24 04:08:02 myPC001 gsd-sharing[1300]: message repeated 3 times: [ Failed to StopUnit service: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Process org.freedesktop.systemd1 exited with status 1]
Jun 24 04:08:02 myPC001 internet.sh[1533537]: [sudo] password for myPC:
Jun 24 04:08:02 myPC001 internet.sh[1572761]: ping: connect: Network is unreachable
Jun 24 04:08:03 myPC001 ovpn-client[2165992]: write UDP: Network is unreachable (code=101)
Jun 24 04:08:05 myPC001 ntpd[419423]: Deleting interface #25 enp1s0, 192.168.1.101#123, interface stats: received=890, sent=4015, dropped=0, active_time=199980 secs

以下是输出nmcli connection show netplan-enp1s0 | grep -e fail -e method

ipv4.method:                            auto
ipv4.may-fail:                          yes
ipv6.method:                            auto
ipv6.may-fail:                          yes
proxy.method:                           none

相关内容