首页 > 解决方案 > 安装arch linux后网络连接问题

问题描述

在 acer c720 上安装 Arch 后,我重新启动并无法使用 wifi-menu 连接到互联网,而是得到了这些结果。

ping: www.google.com: Temporary failure in name resolution
lspci -k|tail -4
01:00.0 Network controller: Qualcomm Atheros AR9462 Wireless Network Adapter (rev 01)
    Subsystem: Foxconn International, Inc. AR9462 Wireless Network Adapter
    Kernel driver in use: ath9k
    Kernel modules: ath9k
ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: wlp1s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default qlen 1000
    link/ether c0:38:96:7b:4b:13 brd ff:ff:ff:ff:ff:ff
dmesg|grep firmware
[    5.276751] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
ip link set wlp1s0 up
ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: wlp1s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default qlen 1000
    link/ether c0:38:96:7b:4b:13 brd ff:ff:ff:ff:ff:ff
dmesg|grep firmware
[    5.276751] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
dmesg|grep firmware
[    5.623139] ath9k 0000:01:00.0 wlp1s0: renamed from wlan0
dmesg|grep wlp1s0
[  241.764977] wlp1s0: authenticate with ac:a3:1e:e4:a1:92
[  241.775194] wlp1s0: send auth to ac:a3:1e:e4:a1:92 (try 1/3)
[  241.776256] wlp1s0: authenticated
[  241.777644] wlp1s0: associate with ac:a3:1e:e4:a1:92 (try 1/3)
[  241.778999] wlp1s0: RX AssocResp from ac:a3:1e:e4:a1:92 (capab=0x1 status=0 aid=4)
[  241.779160] wlp1s0: associated
[  241.779745] IPv6: ADDRCONF(NETDEV_CHANGE): wlp1s0: link becomes ready
[  241.813454] audit: type=1130 audit(1576018783.420:29): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=netctl@wlp1s0\x2dCity\x20of\x20Eugene\x2dFree\x20Public\x20WiFi comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[  241.818154] wlp1s0: deauthenticating from ac:a3:1e:e4:a1:92 by local choice (Reason: 3=DEAUTH_LEAVING)
[  242.032750] audit: type=1131 audit(1576018783.640:30): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=netctl@wlp1s0\x2dCity\x20of\x20Eugene\x2dFree\x20Public\x20WiFi comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'

如果我正确解释了这些结果和“无线配置”wiki,我现在需要做的是从 pacstrap 安装 linux-firmware 时存储在我系统上的任何位置手动安装 ath9k 驱动程序固件。

find / -iname '*ath9k*.xz'
/proc/irq/16/ath9k
/sys/kernel/debug/ieee80211/phy0/ath9k
/sys/class/leds/ath9k-phy0
/sys/devices/pci0000:00/0000:00:1c.0/0000:01:00.0/leds/ath9k-phy0
/sys/bus/platform/drivers/ath9k
/sys/bus/pci/drivers/ath9k
/sys/module/ath9k_common
/sys/module/ath9k_common/holders/ath9k
/sys/module/ath9k
/sys/module/ath9k/drivers/platform:ath9k
/sys/module/ath9k/drivers/pci:ath9k
/sys/module/ath/holders/ath9k_common
/sys/module/ath/holders/ath9k
/sys/module/ath/holders/ath9k_hw
/sys/module/mac80211/holders/ath9k
/sys/module/mac80211/holders/ath9k_hw
/sys/module/ath9k_hw
/sys/module/ath9k_hw/holders/ath9k_common
/sys/module/ath9k_hw/holders/ath9k
/sys/module/cfg80211/holders/ath9k_common
/sys/module/cfg80211/holders/ath9k
/usr/lib/modules/5.4.2-arch1-1/kernel/drivers/net/wireless/ath/ath9k
/usr/lib/modules/5.4.2-arch1-1/kernel/drivers/net/wireless/ath/ath9k/ath9k.ko.xz
/usr/lib/modules/5.4.2-arch1-1/kernel/drivers/net/wireless/ath/ath9k/ath9k_common.ko.xz
/usr/lib/modules/5.4.2-arch1-1/kernel/drivers/net/wireless/ath/ath9k/ath9k_pci_owl_loader.ko.xz
/usr/lib/modules/5.4.2-arch1-1/kernel/drivers/net/wireless/ath/ath9k/ath9k_htc.ko.xz
/usr/lib/modules/5.4.2-arch1-1/kernel/drivers/net/wireless/ath/ath9k/ath9k_hw.ko.xz
/usr/lib/firmware/ath9k_htc
/usr/share/licenses/linux-firmware/LICENCE.open-ath9k-htc-firmware
/run/udev/tags/seat/+leds:ath9k-phy0
/run/udev/data/+leds:ath9k-phy0
find: paths must precede expression: `2'

wiki 有一个标题为“安装固件”的早期部分,但没有明确说明应该如何完成,而且 pacman 似乎只关心 .tar.xz。

pacman -U /usr/lib/modules/5.4.2-arch1-1/kernel/drivers/net/wireless/ath/ath9k/ath9k.ko.xz
loading packages...
error: could not open file /usr/lib/modules/5.4.2-arch1-1/kernel/drivers/net/wireless/ath/ath9k/ath9k.ko.xz: Unrecognized archive format
error: '/usr/lib/modules/5.4.2-arch1-1/kernel/drivers/net/wireless/ath/ath9k/ath9k.ko.xz': cannot open package file

我应该从这里去哪里?

标签: wifiarchlinux

解决方案


我也有类似的??使用 netgear wifi dongle 安装时出现问题:(lsusb) NetGear, Inc. WNA1100 Wireless-N 150 [Atheros AR9271]

在安装过程中,Wifi 在 iso 上运行良好,这要归功于: https ://linuxcommand.blogspot.com/2013/10的文章让 wi-fi 正常工作。

但在已安装的系统上启动时不存在。

在已安装的系统上,dmesg | grep:

[11.960144]usb 1-3:ath9k_htc:固件ath9k_htc/htc_9271-1.4.0.fw请求

[11.966726]usbcore:注册了新的接口驱动程序ath9k_htc

[12.308917]usb 1-3:ath9k_htc:转移固件:ath9k_htc/htc_9271-1.4.0.fw,大小:51008[12.559791]ath9k_htc 1-3:1.0:ath9k_htc:HTC初始化33个积分

[12.790286]ath9k_htc 1-3:1.0:ath9k_htc:固件版本:1.4

[12.790290]ath9k_htc 1-3:1.0:固件 RMW 支持:开启

[12.790292] ath:EEPROM 注册域:0x60

[12.790294] ath:EEPROM 表明我们应该期待一个直接的 regpair 映射

[12.790297] ath:正在使用的国家 alpha2:00

[12.790298] ath:使用的注册配对:0x60

[12.835277]ath9k_htc 1-3:1.0 wlp0s2f1u3:从 wlan0 重命名

尝试使用 wlp0s2f1u3 无济于事:(iw dev)显示 wlp0s2f1u3 但“未找到设备”等其他命令用于使用 wlp0s2f1u3 设置链接时

花了几天时间四处寻找防止 wlan0 重命名为 wlp0s2f1u3 的方法,最终发现安装 iso 有一个额外的文件:

/lib/systemd/network/80-iwd.link

[Match] Type=wlan

[Link] NamePolicy=keep kernel

该文件阻止了 wlp0s2f1u3 从 wlan0 重命名,并且我能够使用 wlan0 而不是 wlp0s2f1u3 使网络运行。

感谢所有帮助我找到解决方案的人。


推荐阅读