Ubuntu 23.10 wifi 使用 0bda:c811 Realtek 适配器每隔几秒就会连接和断开连接

Ubuntu 23.10 wifi 使用 0bda:c811 Realtek 适配器每隔几秒就会连接和断开连接

我正在尝试双启动 Ubuntu 23.10 和 Windows 10。当我启动 Ubuntu 时,Wifi 连接后几秒钟就断开了。这种情况一直存在。

刚开始,我安装完 Ubuntu 后,Wifi 根本连不上。为了解决这个问题,我安装了一个驱动程序morrownr/8821cu-20210916来自 github。Wifi 工作了几个小时,然后开始每隔几秒钟连接和断开连接。我重启了很多次,并尝试重新安装驱动程序,但都没有用。

尝试修复:

  • 我已禁用 Windows 10 上的快速启动。
  • 将 Realtek Wifi 适配器移至计算机上的几个不同端口
  • 在 Wifi 连接设置中禁用 ipv6
  • 将其他 wifi 驱动程序列入黑名单,作为解决其他人类似问题的建议

可能的问题

  • 有时 Ubuntu 和 Windows 上的时钟时间不正确,我尝试通过设置硬件时钟的时间来解决这个问题

  • 我不确定驱动程序是否安装正确。我所做的就是:从 github 下载它,运行脚本./install-driver.sh并保存默认配置文件。然后我运行命令sudo modprobe 8821cu

当我运行该命令时lsusb,我的 wifi 适配器显示为0bda:c811

请告诉我哪些命令输出对诊断问题有用。谢谢,Maverick。

编辑1

输出sudo journalctl -b 0 -u NetworkManager

Oct 20 16:26:26 RedUbuntu23 systemd[1]: Starting NetworkManager.service - Network Manager...
Oct 20 16:26:32 RedUbuntu23 NetworkManager[1100]: <info>  [1697811992.0802] NetworkManager (version 1.44.2) is starting... (boot:3307225c-e534-4246-bbcd-673d440aa300)
Oct 20 16:26:32 RedUbuntu23 NetworkManager[1100]: <info>  [1697811992.0803] Read config: /etc/NetworkManager/NetworkManager.conf (lib: 10-dns-resolved.conf, 20-connectivity-ubuntu.conf, no-mac-addr-change.conf) (run: 10-globally-managed-devices.conf) (etc: default-wifi-powersave-on.conf)
Oct 20 16:26:32 RedUbuntu23 NetworkManager[1100]: <info>  [1697811992.2247] manager[0x563f3960a720]: monitoring kernel firmware directory '/lib/firmware'.
Oct 20 16:26:32 RedUbuntu23 NetworkManager[1100]: <info>  [1697811992.2248] monitoring ifupdown state file '/run/network/ifstate'.
Oct 20 16:26:32 RedUbuntu23 NetworkManager[1100]: <info>  [1697811992.4380] hostname: hostname: using hostnamed
Oct 20 16:26:32 RedUbuntu23 NetworkManager[1100]: <info>  [1697811992.4381] hostname: static hostname changed from (none) to "RedUbuntu23"
Oct 20 16:26:32 RedUbuntu23 NetworkManager[1100]: <info>  [1697811992.4394] dns-mgr: init: dns=systemd-resolved rc-manager=unmanaged (auto), plugin=systemd-resolved
Oct 20 16:26:32 RedUbuntu23 NetworkManager[1100]: <info>  [1697811992.4414] rfkill0: found Wi-Fi radio killswitch (at /sys/devices/pci0000:00/0000:00:01.2/0000:01:00.0/usb1/1-8/1-8:1.0/ieee80211/phy0/rfkill0) (driver rtw_8821cu)
Oct 20 16:26:32 RedUbuntu23 NetworkManager[1100]: <info>  [1697811992.4416] manager[0x563f3960a720]: rfkill: Wi-Fi hardware radio set enabled
Oct 20 16:26:32 RedUbuntu23 NetworkManager[1100]: <info>  [1697811992.4416] manager[0x563f3960a720]: rfkill: WWAN hardware radio set enabled
Oct 20 16:26:32 RedUbuntu23 NetworkManager[1100]: <info>  [1697811992.6269] Loaded device plugin: NMAtmManager (/usr/lib/x86_64-linux-gnu/NetworkManager/1.44.2/libnm-device-plugin-adsl.so)
Oct 20 16:26:32 RedUbuntu23 NetworkManager[1100]: <info>  [1697811992.7878] Loaded device plugin: NMTeamFactory (/usr/lib/x86_64-linux-gnu/NetworkManager/1.44.2/libnm-device-plugin-team.so)
Oct 20 16:26:32 RedUbuntu23 NetworkManager[1100]: <info>  [1697811992.8575] Loaded device plugin: NMWifiFactory (/usr/lib/x86_64-linux-gnu/NetworkManager/1.44.2/libnm-device-plugin-wifi.so)
Oct 20 16:26:32 RedUbuntu23 NetworkManager[1100]: <info>  [1697811992.9587] Loaded device plugin: NMBluezManager (/usr/lib/x86_64-linux-gnu/NetworkManager/1.44.2/libnm-device-plugin-bluetooth.so)
Oct 20 16:26:32 RedUbuntu23 NetworkManager[1100]: <info>  [1697811992.9593] Loaded device plugin: NMWwanFactory (/usr/lib/x86_64-linux-gnu/NetworkManager/1.44.2/libnm-device-plugin-wwan.so)
Oct 20 16:26:32 RedUbuntu23 NetworkManager[1100]: <info>  [1697811992.9596] manager: rfkill: Wi-Fi enabled by radio killswitch; enabled by state file
Oct 20 16:26:32 RedUbuntu23 NetworkManager[1100]: <info>  [1697811992.9596] manager: rfkill: WWAN enabled by radio killswitch; enabled by state file
Oct 20 16:26:32 RedUbuntu23 NetworkManager[1100]: <info>  [1697811992.9596] manager: Networking is enabled by state file
Oct 20 16:26:33 RedUbuntu23 NetworkManager[1100]: <info>  [1697811993.1377] settings: Loaded settings plugin: ifupdown ("/usr/lib/x86_64-linux-gnu/NetworkManager/1.44.2/libnm-settings-plugin-ifupdown.so")
Oct 20 16:26:33 RedUbuntu23 NetworkManager[1100]: <info>  [1697811993.1378] settings: Loaded settings plugin: keyfile (internal)
Oct 20 16:26:33 RedUbuntu23 NetworkManager[1100]: <info>  [1697811993.1378] ifupdown: management mode: unmanaged
Oct 20 16:26:33 RedUbuntu23 NetworkManager[1100]: <info>  [1697811993.2152] ifupdown: interfaces file /etc/network/interfaces doesn't exist
Oct 20 16:26:36 RedUbuntu23 generate[1217]: Permissions for /etc/netplan/01-network-manager-all.yaml are too open. Netplan configuration should NOT be accessible by others.
Oct 20 16:26:36 RedUbuntu23 NetworkManager[1100]: <info>  [1697811996.4790] dhcp: init: Using DHCP client 'internal'
Oct 20 16:26:36 RedUbuntu23 NetworkManager[1100]: <info>  [1697811996.4793] manager: (lo): new Loopback device (/org/freedesktop/NetworkManager/Devices/1)
Oct 20 16:26:36 RedUbuntu23 NetworkManager[1100]: <info>  [1697811996.4805] device (lo): state change: unmanaged -> unavailable (reason 'connection-assumed', sys-iface-state: 'external')
Oct 20 16:26:36 RedUbuntu23 NetworkManager[1100]: <info>  [1697811996.4810] device (lo): state change: unavailable -> disconnected (reason 'connection-assumed', sys-iface-state: 'external')
Oct 20 16:26:36 RedUbuntu23 NetworkManager[1100]: <info>  [1697811996.4817] device (lo): Activation: starting connection 'lo' (aa37dd63-3695-487b-bf81-4911a1f2e46f)
Oct 20 16:26:36 RedUbuntu23 NetworkManager[1100]: <info>  [1697811996.4829] manager: (enp6s0): new Ethernet device (/org/freedesktop/NetworkManager/Devices/2)
Oct 20 16:26:36 RedUbuntu23 NetworkManager[1100]: <info>  [1697811996.4831] device (enp6s0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
Oct 20 16:26:36 RedUbuntu23 NetworkManager[1100]: <info>  [1697811996.7318] device (wlx502b73a9677b): driver supports Access Point (AP) mode
Oct 20 16:26:36 RedUbuntu23 NetworkManager[1100]: <info>  [1697811996.7324] manager: (wlx502b73a9677b): new 802.11 Wi-Fi device (/org/freedesktop/NetworkManager/Devices/3)
Oct 20 16:26:36 RedUbuntu23 NetworkManager[1100]: <info>  [1697811996.7326] device (wlx502b73a9677b): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
Oct 20 16:26:48 RedUbuntu23 NetworkManager[1100]: <info>  [1697812008.5996] failed to open /run/network/ifstate
Oct 20 16:26:48 RedUbuntu23 systemd[1]: Started NetworkManager.service - Network Manager.
Oct 20 16:26:48 RedUbuntu23 NetworkManager[1100]: <info>  [1697812008.6005] bus-manager: acquired D-Bus service "org.freedesktop.NetworkManager"
Oct 20 16:26:48 RedUbuntu23 NetworkManager[1100]: <warn>  [1697812008.6007] dns-mgr: update-pending changed: DNS plugin did not become ready again. Assume something is wrong
Oct 20 16:26:48 RedUbuntu23 NetworkManager[1100]: <info>  [1697812008.6017] device (lo): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'external')
Oct 20 16:26:48 RedUbuntu23 NetworkManager[1100]: <info>  [1697812008.6020] device (lo): state change: prepare -> config (reason 'none', sys-iface-state: 'external')
Oct 20 16:26:48 RedUbuntu23 NetworkManager[1100]: <info>  [1697812008.6023] device (lo): state change: config -> ip-config (reason 'none', sys-iface-state: 'external')
Oct 20 16:26:48 RedUbuntu23 NetworkManager[1100]: <info>  [1697812008.6032] device (lo): state change: ip-config -> ip-check (reason 'none', sys-iface-state: 'external')
Oct 20 16:26:48 RedUbuntu23 NetworkManager[1100]: <info>  [1697812008.6037] modem-manager: ModemManager available
Oct 20 16:26:48 RedUbuntu23 NetworkManager[1100]: <info>  [1697812008.8859] device (lo): state change: ip-check -> secondaries (reason 'none', sys-iface-state: 'external')
Oct 20 16:26:48 RedUbuntu23 NetworkManager[1100]: <info>  [1697812008.8861] device (lo): state change: secondaries -> activated (reason 'none', sys-iface-state: 'external')
Oct 20 16:26:48 RedUbuntu23 NetworkManager[1100]: <info>  [1697812008.8866] device (lo): Activation: successful, device activated.
Oct 20 16:26:49 RedUbuntu23 NetworkManager[1100]: <info>  [1697812009.4643] device (wlx502b73a9677b): supplicant interface state: internal-starting -> disconnected
Oct 20 16:26:49 RedUbuntu23 NetworkManager[1100]: <info>  [1697812009.4644] device (wlx502b73a9677b): state change: unavailable -> disconnected (reason 'supplicant-available', sys-iface-state: 'managed')
Oct 20 16:26:49 RedUbuntu23 NetworkManager[1100]: <info>  [1697812009.9657] manager: startup complete
Oct 20 16:27:05 RedUbuntu23 NetworkManager[1100]: <info>  [1697812025.3085] agent-manager: agent[bce397d468451cd2,:1.41/org.gnome.Shell.NetworkAgent/123]: agent registered
Oct 20 16:27:11 RedUbuntu23 NetworkManager[1100]: <info>  [1697812031.4892] policy: auto-activating connection 'BumBleBee25 1' (ead9d6f1-62dc-464f-af93-56505a076904)
Oct 20 16:27:11 RedUbuntu23 NetworkManager[1100]: <info>  [1697812031.4896] device (wlx502b73a9677b): Activation: starting connection 'BumBleBee25 1' (ead9d6f1-62dc-464f-af93-56505a076904)
Oct 20 16:27:11 RedUbuntu23 NetworkManager[1100]: <info>  [1697812031.4897] device (wlx502b73a9677b): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed')
Oct 20 16:27:11 RedUbuntu23 NetworkManager[1100]: <info>  [1697812031.4898] manager: NetworkManager state is now CONNECTING
Oct 20 16:27:11 RedUbuntu23 NetworkManager[1100]: <info>  [1697812031.4901] device (wlx502b73a9677b): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
Oct 20 16:27:11 RedUbuntu23 NetworkManager[1100]: <info>  [1697812031.4904] device (wlx502b73a9677b): Activation: (wifi) access point 'BumBleBee25 1' has security, but secrets are required.
Oct 20 16:27:11 RedUbuntu23 NetworkManager[1100]: <info>  [1697812031.4904] device (wlx502b73a9677b): state change: config -> need-auth (reason 'none', sys-iface-state: 'managed')
Oct 20 16:27:11 RedUbuntu23 NetworkManager[1100]: <info>  [1697812031.4905] sup-iface[1cfe17f38eeebb3f,0,wlx502b73a9677b]: wps: type pbc start...
Oct 20 16:27:11 RedUbuntu23 NetworkManager[1100]: <info>  [1697812031.4913] device (wlx502b73a9677b): state change: need-auth -> prepare (reason 'none', sys-iface-state: 'managed')
Oct 20 16:27:11 RedUbuntu23 NetworkManager[1100]: <info>  [1697812031.4915] device (wlx502b73a9677b): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
Oct 20 16:27:11 RedUbuntu23 NetworkManager[1100]: <info>  [1697812031.4918] device (wlx502b73a9677b): Activation: (wifi) connection 'BumBleBee25 1' has security, and secrets exist.  No new secrets needed.
Oct 20 16:27:11 RedUbuntu23 NetworkManager[1100]: <info>  [1697812031.4962] Config: added 'ssid' value 'BumBleBee25'
Oct 20 16:27:11 RedUbuntu23 NetworkManager[1100]: <info>  [1697812031.4962] Config: added 'scan_ssid' value '1'
Oct 20 16:27:11 RedUbuntu23 NetworkManager[1100]: <info>  [1697812031.4962] Config: added 'bgscan' value 'simple:30:-70:86400'
Oct 20 16:27:11 RedUbuntu23 NetworkManager[1100]: <info>  [1697812031.4962] Config: added 'key_mgmt' value 'WPA-PSK WPA-PSK-SHA256 FT-PSK SAE FT-SAE'
Oct 20 16:27:11 RedUbuntu23 NetworkManager[1100]: <info>  [1697812031.4962] Config: added 'auth_alg' value 'OPEN'
Oct 20 16:27:11 RedUbuntu23 NetworkManager[1100]: <info>  [1697812031.4962] Config: added 'psk' value '<hidden>'
Oct 20 16:27:23 RedUbuntu23 NetworkManager[1100]: <info>  [1697812043.1456] agent-manager: agent[aec1fcf77badc551,:1.86/org.gnome.Shell.NetworkAgent/1000]: agent registered
Oct 20 16:27:23 RedUbuntu23 NetworkManager[1100]: <info>  [1697812043.4831] device (wlx502b73a9677b): supplicant interface state: disconnected -> authenticating
Oct 20 16:27:23 RedUbuntu23 NetworkManager[1100]: <info>  [1697812043.4853] device (wlx502b73a9677b): supplicant interface state: authenticating -> associating
Oct 20 16:27:24 RedUbuntu23 NetworkManager[1100]: <info>  [1697812044.0714] device (wlx502b73a9677b): supplicant interface state: associating -> completed
Oct 20 16:27:24 RedUbuntu23 NetworkManager[1100]: <info>  [1697812044.0714] device (wlx502b73a9677b): Activation: (wifi) Stage 2 of 5 (Device Configure) successful. Connected to wireless network "BumBleBee25"
Oct 20 16:27:24 RedUbuntu23 NetworkManager[1100]: <info>  [1697812044.0715] device (wlx502b73a9677b): state change: config -> ip-config (reason 'none', sys-iface-state: 'managed')
Oct 20 16:27:24 RedUbuntu23 NetworkManager[1100]: <info>  [1697812044.0721] dhcp4 (wlx502b73a9677b): activation: beginning transaction (timeout in 45 seconds)
Oct 20 16:27:24 RedUbuntu23 NetworkManager[1100]: <info>  [1697812044.6556] dhcp4 (wlx502b73a9677b): state changed new lease, address=192.168.1.103
Oct 20 16:27:24 RedUbuntu23 NetworkManager[1100]: <info>  [1697812044.6560] policy: set 'BumBleBee25 1' (wlx502b73a9677b) as default for IPv4 routing and DNS
Oct 20 16:27:24 RedUbuntu23 NetworkManager[1100]: <info>  [1697812044.6621] device (wlx502b73a9677b): state change: ip-config -> ip-check (reason 'none', sys-iface-state: 'managed')
Oct 20 16:27:24 RedUbuntu23 NetworkManager[1100]: <info>  [1697812044.7251] device (wlx502b73a9677b): state change: ip-check -> secondaries (reason 'none', sys-iface-state: 'managed')
Oct 20 16:27:24 RedUbuntu23 NetworkManager[1100]: <info>  [1697812044.7252] device (wlx502b73a9677b): state change: secondaries -> activated (reason 'none', sys-iface-state: 'managed')
Oct 20 16:27:24 RedUbuntu23 NetworkManager[1100]: <info>  [1697812044.7255] manager: NetworkManager state is now CONNECTED_SITE
Oct 20 16:27:24 RedUbuntu23 NetworkManager[1100]: <info>  [1697812044.7258] device (wlx502b73a9677b): Activation: successful, device activated.
Oct 20 16:27:25 RedUbuntu23 NetworkManager[1100]: <info>  [1697812045.7057] manager: NetworkManager state is now CONNECTED_GLOBAL
Oct 20 16:27:28 RedUbuntu23 NetworkManager[1100]: <info>  [1697812048.6891] dhcp6 (wlx502b73a9677b): activation: beginning transaction (timeout in 45 seconds)
Oct 20 16:28:03 RedUbuntu23 NetworkManager[1100]: <info>  [1697812083.2414] device (wlx502b73a9677b): supplicant interface state: completed -> disconnected
Oct 20 16:28:14 RedUbuntu23 NetworkManager[1100]: <info>  [1697812094.8997] device (wlx502b73a9677b): supplicant interface state: disconnected -> scanning
Oct 20 16:28:18 RedUbuntu23 NetworkManager[1100]: <warn>  [1697812098.0170] device (wlx502b73a9677b): link timed out.
Oct 20 16:28:18 RedUbuntu23 NetworkManager[1100]: <info>  [1697812098.0173] device (wlx502b73a9677b): state change: activated -> failed (reason 'ssid-not-found', sys-iface-state: 'managed')
Oct 20 16:28:18 RedUbuntu23 NetworkManager[1100]: <info>  [1697812098.0176] manager: NetworkManager state is now DISCONNECTED
Oct 20 16:28:18 RedUbuntu23 NetworkManager[1100]: <warn>  [1697812098.0180] device (wlx502b73a9677b): Activation: failed for connection 'BumBleBee25 1'
Oct 20 16:28:18 RedUbuntu23 NetworkManager[1100]: <info>  [1697812098.0185] device (wlx502b73a9677b): state change: failed -> disconnected (reason 'none', sys-iface-state: 'managed')
Oct 20 16:28:18 RedUbuntu23 NetworkManager[1100]: <info>  [1697812098.0191] dhcp4 (wlx502b73a9677b): canceled DHCP transaction
Oct 20 16:28:18 RedUbuntu23 NetworkManager[1100]: <info>  [1697812098.0191] dhcp4 (wlx502b73a9677b): activation: beginning transaction (timeout in 45 seconds)
Oct 20 16:28:18 RedUbuntu23 NetworkManager[1100]: <info>  [1697812098.0191] dhcp4 (wlx502b73a9677b): state changed no lease
Oct 20 16:28:18 RedUbuntu23 NetworkManager[1100]: <info>  [1697812098.0192] dhcp6 (wlx502b73a9677b): canceled DHCP transaction
Oct 20 16:28:18 RedUbuntu23 NetworkManager[1100]: <info>  [1697812098.0192] dhcp6 (wlx502b73a9677b): activation: beginning transaction (timeout in 45 seconds)
Oct 20 16:28:18 RedUbuntu23 NetworkManager[1100]: <info>  [1697812098.0192] dhcp6 (wlx502b73a9677b): state changed no lease
Oct 20 16:28:25 RedUbuntu23 NetworkManager[1100]: <info>  [1697812105.2901] device (wlx502b73a9677b): supplicant interface state: scanning -> disconnected
Oct 20 16:28:25 RedUbuntu23 NetworkManager[1100]: <info>  [1697812105.2902] policy: auto-activating connection 'BumBleBee25 1' (ead9d6f1-62dc-464f-af93-56505a076904)
Oct 20 16:28:25 RedUbuntu23 NetworkManager[1100]: <info>  [1697812105.2907] device (wlx502b73a9677b): Activation: starting connection 'BumBleBee25 1' (ead9d6f1-62dc-464f-af93-56505a076904)
Oct 20 16:28:25 RedUbuntu23 NetworkManager[1100]: <info>  [1697812105.2908] device (wlx502b73a9677b): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed')
Oct 20 16:28:25 RedUbuntu23 NetworkManager[1100]: <info>  [1697812105.2911] manager: NetworkManager state is now CONNECTING
Oct 20 16:28:25 RedUbuntu23 NetworkManager[1100]: <info>  [1697812105.2913] device (wlx502b73a9677b): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
Oct 20 16:28:25 RedUbuntu23 NetworkManager[1100]: <info>  [1697812105.2916] device (wlx502b73a9677b): Activation: (wifi) access point 'BumBleBee25 1' has security, but secrets are required.
Oct 20 16:28:25 RedUbuntu23 NetworkManager[1100]: <info>  [1697812105.2916] device (wlx502b73a9677b): state change: config -> need-auth (reason 'none', sys-iface-state: 'managed')
Oct 20 16:28:25 RedUbuntu23 NetworkManager[1100]: <info>  [1697812105.2918] sup-iface[1cfe17f38eeebb3f,0,wlx502b73a9677b]: wps: type pbc start...
Oct 20 16:28:25 RedUbuntu23 NetworkManager[1100]: <info>  [1697812105.2927] device (wlx502b73a9677b): state change: need-auth -> prepare (reason 'none', sys-iface-state: 'managed')
Oct 20 16:28:25 RedUbuntu23 NetworkManager[1100]: <info>  [1697812105.2930] device (wlx502b73a9677b): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
Oct 20 16:28:25 RedUbuntu23 NetworkManager[1100]: <info>  [1697812105.2932] device (wlx502b73a9677b): Activation: (wifi) connection 'BumBleBee25 1' has security, and secrets exist.  No new secrets needed.
Oct 20 16:28:25 RedUbuntu23 NetworkManager[1100]: <info>  [1697812105.2933] Config: added 'ssid' value 'BumBleBee25'
Oct 20 16:28:25 RedUbuntu23 NetworkManager[1100]: <info>  [1697812105.2933] Config: added 'scan_ssid' value '1'
Oct 20 16:28:25 RedUbuntu23 NetworkManager[1100]: <info>  [1697812105.2933] Config: added 'bgscan' value 'simple:30:-70:86400'
Oct 20 16:28:25 RedUbuntu23 NetworkManager[1100]: <info>  [1697812105.2934] Config: added 'key_mgmt' value 'WPA-PSK WPA-PSK-SHA256 FT-PSK SAE FT-SAE'
Oct 20 16:28:25 RedUbuntu23 NetworkManager[1100]: <info>  [1697812105.2934] Config: added 'auth_alg' value 'OPEN'
Oct 20 16:28:25 RedUbuntu23 NetworkManager[1100]: <info>  [1697812105.2934] Config: added 'psk' value '<hidden>'
Oct 20 16:28:37 RedUbuntu23 NetworkManager[1100]: <info>  [1697812117.2707] device (wlx502b73a9677b): supplicant interface state: disconnected -> authenticating
Oct 20 16:28:37 RedUbuntu23 NetworkManager[1100]: <info>  [1697812117.8812] device (wlx502b73a9677b): supplicant interface state: authenticating -> associating
Oct 20 16:28:38 RedUbuntu23 NetworkManager[1100]: <info>  [1697812118.2256] device (wlx502b73a9677b): supplicant interface state: associating -> associated
Oct 20 16:28:42 RedUbuntu23 NetworkManager[1100]: <info>  [1697812122.2122] device (wlx502b73a9677b): supplicant interface state: associated -> 4way_handshake
Oct 20 16:28:42 RedUbuntu23 NetworkManager[1100]: <info>  [1697812122.4556] device (wlx502b73a9677b): supplicant interface state: 4way_handshake -> completed
Oct 20 16:28:42 RedUbuntu23 NetworkManager[1100]: <info>  [1697812122.4556] device (wlx502b73a9677b): Activation: (wifi) Stage 2 of 5 (Device Configure) successful. Connected to wireless network "BumBleBee25"
Oct 20 16:28:42 RedUbuntu23 NetworkManager[1100]: <info>  [1697812122.4558] device (wlx502b73a9677b): state change: config -> ip-config (reason 'none', sys-iface-state: 'managed')
Oct 20 16:28:42 RedUbuntu23 NetworkManager[1100]: <info>  [1697812122.4564] dhcp4 (wlx502b73a9677b): activation: beginning transaction (timeout in 45 seconds)
Oct 20 16:28:42 RedUbuntu23 NetworkManager[1100]: <info>  [1697812122.7673] dhcp4 (wlx502b73a9677b): state changed new lease, address=192.168.1.103
Oct 20 16:28:42 RedUbuntu23 NetworkManager[1100]: <info>  [1697812122.7678] policy: set 'BumBleBee25 1' (wlx502b73a9677b) as default for IPv4 routing and DNS
Oct 20 16:28:42 RedUbuntu23 NetworkManager[1100]: <info>  [1697812122.8245] device (wlx502b73a9677b): state change: ip-config -> ip-check (reason 'none', sys-iface-state: 'managed')
Oct 20 16:28:42 RedUbuntu23 NetworkManager[1100]: <info>  [1697812122.8646] device (wlx502b73a9677b): state change: ip-check -> secondaries (reason 'none', sys-iface-state: 'managed')
Oct 20 16:28:42 RedUbuntu23 NetworkManager[1100]: <info>  [1697812122.8648] device (wlx502b73a9677b): state change: secondaries -> activated (reason 'none', sys-iface-state: 'managed')
Oct 20 16:28:42 RedUbuntu23 NetworkManager[1100]: <info>  [1697812122.8652] manager: NetworkManager state is now CONNECTED_SITE
Oct 20 16:28:42 RedUbuntu23 NetworkManager[1100]: <info>  [1697812122.8658] device (wlx502b73a9677b): Activation: successful, device activated.
Oct 20 16:28:43 RedUbuntu23 NetworkManager[1100]: <info>  [1697812123.8034] dhcp6 (wlx502b73a9677b): activation: beginning transaction (timeout in 45 seconds)
Oct 20 16:29:12 RedUbuntu23 NetworkManager[1100]: <info>  [1697812152.2770] manager: NetworkManager state is now CONNECTED_GLOBAL
Oct 20 16:29:41 RedUbuntu23 NetworkManager[1100]: <info>  [1697812181.1584] device (wlx502b73a9677b): supplicant interface state: completed -> disconnected

服务 NetworkManager 状态的输出:

     Loaded: loaded (/lib/systemd/system/NetworkManager.service; enabled; preset: enabled)
     Active: active (running) since Fri 2023-10-20 16:26:48 SAST; 3min 47s ago
       Docs: man:NetworkManager(8)
   Main PID: 1100 (NetworkManager)
      Tasks: 4 (limit: 19032)
     Memory: 18.1M
        CPU: 511ms
     CGroup: /system.slice/NetworkManager.service
             └─1100 /usr/sbin/NetworkManager --no-daemon

Oct 20 16:30:15 RedUbuntu23 NetworkManager[1100]: <info>  [1697812215.6522] dhcp4 (wlx502b73a9677b): activation: beginning transaction (timeout in 45 seconds)
Oct 20 16:30:15 RedUbuntu23 NetworkManager[1100]: <info>  [1697812215.7863] dhcp4 (wlx502b73a9677b): state changed new lease, address=192.168.1.103
Oct 20 16:30:15 RedUbuntu23 NetworkManager[1100]: <info>  [1697812215.7867] policy: set 'BumBleBee25 1' (wlx502b73a9677b) as default for IPv4 routing and DNS
Oct 20 16:30:15 RedUbuntu23 NetworkManager[1100]: <info>  [1697812215.8475] device (wlx502b73a9677b): state change: ip-config -> ip-check (reason 'none', sys-iface-state: 'managed')
Oct 20 16:30:15 RedUbuntu23 NetworkManager[1100]: <info>  [1697812215.8925] device (wlx502b73a9677b): state change: ip-check -> secondaries (reason 'none', sys-iface-state: 'managed')
Oct 20 16:30:15 RedUbuntu23 NetworkManager[1100]: <info>  [1697812215.8927] device (wlx502b73a9677b): state change: secondaries -> activated (reason 'none', sys-iface-state: 'managed')
Oct 20 16:30:15 RedUbuntu23 NetworkManager[1100]: <info>  [1697812215.8931] manager: NetworkManager state is now CONNECTED_SITE
Oct 20 16:30:15 RedUbuntu23 NetworkManager[1100]: <info>  [1697812215.8938] device (wlx502b73a9677b): Activation: successful, device activated.
Oct 20 16:30:16 RedUbuntu23 NetworkManager[1100]: <info>  [1697812216.9896] manager: NetworkManager state is now CONNECTED_GLOBAL
Oct 20 16:30:17 RedUbuntu23 NetworkManager[1100]: <info>  [1697812217.7924] dhcp6 (wlx502b73a9677b): activation: beginning transaction (timeout in 45 seconds)

服务--status-all的输出:

 [ - ]  anacron
 [ + ]  apparmor
 [ + ]  apport
 [ - ]  bluetooth
 [ - ]  console-setup.sh
 [ + ]  cron
 [ + ]  cups
 [ + ]  dbus
 [ + ]  gdm3
 [ - ]  grub-common
 [ - ]  hwclock.sh
 [ + ]  irqbalance
 [ + ]  kerneloops
 [ - ]  keyboard-setup.sh
 [ + ]  kmod
 [ + ]  openvpn
 [ - ]  plymouth
 [ + ]  plymouth-log
 [ + ]  procps
 [ - ]  rsync
 [ - ]  saned
 [ - ]  speech-dispatcher
 [ - ]  spice-vdagent
 [ - ]  sssd
 [ + ]  udev
 [ + ]  ufw
 [ + ]  unattended-upgrades
 [ - ]  uuidd
 [ - ]  whoopsie
 [ - ]  x11-common

尝试修复:

  • 我尝试sudo sed -i 's/3/2/' /etc/NetworkManager/conf.d/*关闭 wifi 的省电模式,但不幸的是,这并没有解决我的问题
  • 我曾经sudo iw reg set ZA设置过监管域。当我尝试运行时, sudo nano /etc/default/crda它创建了一个新文件,而不是找到该文件,所以我没有在那里做任何事情

答案1

您的设置中有这个功能吗?如果有,请关闭它。

在设置中检查连通性

相关内容