![Ubuntu whoopsie 离线,以太网断线](https://linux22.com/image/940283/Ubuntu%20whoopsie%20%E7%A6%BB%E7%BA%BF%EF%BC%8C%E4%BB%A5%E5%A4%AA%E7%BD%91%E6%96%AD%E7%BA%BF.png)
我有 Ubuntu 21.04(20.04 上也有同样的情况)。我的互联网会随机断开 1-5 秒。当这种情况发生时,我会在日志中看到这一点。
14:08:18 whoopsie: [14:08:18] online
14:08:18 whoopsie: [14:08:18] Found usable connection: /org/freedesktop/NetworkManager/ActiveConnection/1
14:08:18 whoopsie: [14:08:18] Not a paid data plan: /org/freedesktop/NetworkManager/ActiveConnection/1
14:08:18 whoopsie: [14:08:18] The default IPv4 route is: /org/freedesktop/NetworkManager/ActiveConnection/1
14:08:18 NetworkManager: <info> [1629803298.4232] manager: NetworkManager state is now CONNECTED_GLOBAL
14:08:18 systemd: Started Network Manager Script Dispatcher Service.
14:08:18 dbus-daemon: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
14:08:18 systemd: Starting Network Manager Script Dispatcher Service...
14:08:18 dbus-daemon: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.9' (uid=0 pid=703 comm="/usr/sbin/NetworkManager --no-daemon " label="unconfined")
14:08:18 whoopsie: [14:08:18] offline
14:08:18 NetworkManager: <info> [1629803298.1533] manager: NetworkManager state is now CONNECTED_SITE
我尝试重新安装 linux-headers、更新所有软件包和 ubuntu 本身,并将 ubuntu 从 20.04 升级到 21.04。这也是我的网络问题而不是 linux 的问题吗?因为它在日志中,我不明白是网络管理器问题还是我的互联网问题
sudo lshw -C network
结果正如某人要求的那样:
*-network
description: Ethernet interface
product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:04:00.0
logical name: enp4s0
version: 15
serial: b0:6e:bf:c8:0e:3f
size: 1Gbit/s
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=5.11.0-31-generic duplex=full firmware=rtl8168h-2_0.0.2 02/26/15 ip=192.168.1.242 latency=0 link=yes multicast=yes port=twisted pair speed=1Gbit/s
resources: irq:19 ioport:d000(size=256) memory:f7104000-f7104fff memory:f7100000-f7103fff
还ls -al /var/crash
total 33376
drwxrwsrwt 2 root whoopsie 4096 Aug 23 23:39 .
drwxr-xr-x 14 root root 4096 Feb 9 2021 ..
-rw-r----- 1 root whoopsie 714106 Aug 23 23:38 postfix.0.crash
-rw-r--r-- 1 root whoopsie 0 Aug 23 23:38 postfix.0.upload
-rw------- 1 whoopsie whoopsie 37 Aug 23 23:39 postfix.0.uploaded
-rw-r----- 1 vadim whoopsie 2906719 Aug 23 23:25 _usr_libexec_tracker-extract.1000.crash
-rw-r----- 1 vadim whoopsie 30538240 Aug 23 23:25 _usr_share_apport_apport-gtk.1000.crash