安装arch linux后的网络连接问题

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了安装arch linux后的网络连接问题相关的知识,希望对你有一定的参考价值。

在acer c720上安装Arch之后,我重新启动并无法通过wifi菜单连接到Internet,而是获得了这些结果。

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@wlp1s0x2dCityx20ofx20Eugenex2dFreex20Publicx20WiFi 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@wlp1s0x2dCityx20ofx20Eugenex2dFreex20Publicx20WiFi comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'

如果我正确解释了这些结果和'Wireless configuration'维基,我现在需要做的是,在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的早期部分标题为'installing firmware',但没有地方明确说明应如何执行,而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

我应该从这里去哪里?

答案
None

以上是关于安装arch linux后的网络连接问题的主要内容,如果未能解决你的问题,请参考以下文章

刚安装的arch linux怎么连接有密码的wifi

Arch Linux安装后的问题

arch Linux安装

Arch Linux实体机安装记录

arch Linux 安装完,无法通过 SSH 远程连接问题

Vmware Station安装Arch Linux