Wifi 无法使用

Wifi 无法使用

我对 Ubuntu 还很陌生,我刚刚在一台戴尔 Inspiron N5010 上安装了 Ubuntu 22.04 LTS。wifi 无法使用,显示为已禁用。在网上查找修复方法后,我不知道该怎么做。任何帮助都将不胜感激,

我在终端中运行了该sudo lshw -c network命令,结果如下:

*-network DISABLED        
       description: Wireless interface
       product: Centrino Wireless-N 1000 [Condor Peak]
       vendor: Intel Corporation
       physical id: 0
       bus info: pci@0000:12:00.0
       logical name: wlp18s0
       version: 00
       serial: 8c:a9:82:27:7c:aa
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=iwlwifi driverversion=5.15.0-41-generic firmware=39.31.5.1 build 35138 1000-5.uc latency=0 link=no multicast=yes wireless=IEEE 802.11
       resources: irq:30 memory:fbc00000-fbc01fff

$ rfkill list all
0: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: no 

$ sudo dmesg | grep wlp    
[   20.307389] iwlwifi 0000:12:00.0 wlp18s0: renamed from wlan0

$ cat /etc/netplan/*.yaml
# Let NetworkManager manage all devices on this system
network:
  version: 2
  renderer: NetworkManager

$ sudo dmesg | grep iwl
If I paste this, it pushes the post over the character limit. 

First few lines show this:

[   19.285385] iwlwifi 0000:12:00.0: loaded firmware version 39.31.5.1 build 35138 1000-5.ucode op_mode iwldvm
[   20.237640] iwlwifi 0000:12:00.0: CONFIG_IWLWIFI_DEBUG disabled
[   20.237646] iwlwifi 0000:12:00.0: CONFIG_IWLWIFI_DEBUGFS enabled
[   20.237647] iwlwifi 0000:12:00.0: CONFIG_IWLWIFI_DEVICE_TRACING enabled
[   20.237649] iwlwifi 0000:12:00.0: Detected Intel(R) Centrino(R) Wireless-N 1000 BGN, REV=0x6C
[   20.275004] ieee80211 phy0: Selected rate control algorithm 'iwl-agn-rs'
[   20.307389] iwlwifi 0000:12:00.0 wlp18s0: renamed from wlan0
[   41.572037] iwlwifi 0000:12:00.0: Radio type=0x0-0x0-0x3
[   41.580049] iwlwifi 0000:12:00.0: Microcode SW error detected.  Restarting 0x82000000.
[   41.580065] iwlwifi 0000:12:00.0: Loaded firmware version: 39.31.5.1 build 35138 1000-5.ucode

Last few lines show :

[ 1143.141562] iwlwifi 0000:12:00.0: Start IWL Event Log Dump: display last 3 entries
[ 1143.141582] iwlwifi 0000:12:00.0: EVT_LOGT:0000000000:0x0000028c:0117
[ 1143.141595] iwlwifi 0000:12:00.0: EVT_LOGT:0000000021:0x00000000:1208
[ 1143.141608] iwlwifi 0000:12:00.0: EVT_LOGT:0000000302:0x00000000:0125
[ 1143.153929] iwlwifi 0000:12:00.0: Failed to run INIT ucode: -5
[ 1143.153957] iwlwifi 0000:12:00.0: Unable to initialize device.

$ mdsum /usr/lib/firmware/iwlwifi-1000-5.ucode

9f81a060ed274f76cd605295da77f7a6 /usr/lib/firmware/iwlwifi-1000-5.ucode

答案1

首先,转到“附加驱动程序”。应该会显示您的网卡驱动程序。继续安装它。我也遇到过这个问题,但这个方法对我有用。

答案2

您需要在 NetworkManager.state 文件中将 NetworkingEnabled 设置为 true。请按照以下步骤操作:

sudo service NetworkManager stop

然后,使用 sudo 用户打开 /var/lib/NetworkManager/NetworkManager.state。

将 NetworkingEnabled=false 更改为 NetworkingEnabled=true 并保存文件。

现在重新启动网络管理器服务。

sudo service NetworkManager restart

相关内容