Arch Linux 不再连接到 Wifi

Arch Linux 不再连接到 Wifi

我已经使用 Arch Linux 一个多月了。我曾经wifi-menu连接到我的 Wifi 网络。我每次启动笔记本电脑时都会运行该命令。

wifi-menu当我尝试连接时总是出现此错误:

Job for [email protected] failed. See 'systemctl status [email protected]' and 'journalctl -xn' for details.

问题是每次启动时我的界面都会启动。所以我用这个放下了界面:

ip link set down wlp2s0

wlp2s0是我的接口名称,也是HelloWorld我的 Wifi 网络的 SSID。


这次,无论关闭接口,它都无法连接到网络。它给了我与上面描述的相同的错误。

这是以下的输出:systemctl status [email protected]

[email protected] - Networking for netctl profile HelloWorld
   Loaded: loaded (/usr/lib/systemd/system/[email protected]; static)
   Active: failed (Result: exit-code) since Mon 2014-03-24 02:32:35 IST; 2min 56s ago
     Docs: man:netctl.profile(5)
  Process: 8601 ExecStart=/usr/lib/network/network start %I (code=exited, status=1/FAILURE)
  Main PID: 8601 (code=exited, status=1/FAILURE)

Mar 24 02:32:34 lenovo network[8601]: Starting network profile 'HelloWorld'...
Mar 24 02:32:35 lenovo network[8601]: chmod: cannot access ‘/run/dhcpcd-wlp2s0.pid’: No such file or directory
Mar 24 02:32:35 lenovo network[8601]: Failed to bring the network up for profile 'HelloWorld'
Mar 24 02:32:35 lenovo systemd[1]: [email protected]: main process exited, code=exited, status=1/FAILURE
Mar 24 02:32:35 lenovo systemd[1]: Failed to start Networking for netctl profile HelloWorld.
Mar 24 02:32:35 lenovo systemd[1]: Unit [email protected] entered failed state.

journalctl -xn给我这个输出:

Mar 24 02:38:05 lenovo kernel: brcmsmac bcma0:0: brcms_ops_bss_info_changed: qos enabled: false (implement)
Mar 24 02:38:05 lenovo kernel: cfg80211: Calling CRDA to update world regulatory domain
Mar 24 02:38:05 lenovo dhcpcd[256]: wlp2s0: carrier lost
Mar 24 02:38:05 lenovo dhcpcd[256]: wlp2s0: carrier acquired
Mar 24 02:38:05 lenovo dhcpcd[256]: wlp2s0: carrier lost
Mar 24 02:38:05 lenovo dhcpcd[256]: wlp2s0: waiting for carrier
Mar 24 02:38:05 lenovo network[8993]: Failed to bring the network up for profile 'HelloWorld'
Mar 24 02:38:05 lenovo systemd[1]: [email protected]: main process exited, code=exited, status=1/FAILURE
Mar 24 02:38:05 lenovo systemd[1]: Failed to start Networking for netctl profile HelloWorld.
-- Subject: Unit [email protected] has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit [email protected] has failed.
-- 
-- The result is failed.
Mar 24 02:38:05 lenovo systemd[1]: Unit [email protected] entered failed state.

/run/dhcpcd-wlp2s0.pidsystemctl给出了不存在的错误,而且它不存在。尽管名为的文件/run/dhcpcd.pid确实存在。


这是网络控制器的输出lspci -k

02:00.0 Network controller: Broadcom Corporation BCM4313 802.11bgn Wireless Network Adapter (rev 01)
    Subsystem: Broadcom Corporation Device 051b
    Kernel driver in use: bcma-pci-bridge
    Kernel modules: bcma

我已经尝试了互联网上的一些方法,但还没有找到解决方案。

有办法解决这个问题吗?或者我可以在 Arch Linux 中重置与网络相关的所有内容,以便我可以wifi-menu再次连接到网络吗?

谢谢!

答案1

我有完全相同的问题。你杀了那个吗dhcpd

我彻底杀死了dhcpd:

$ sudo killall dhcpcd

在我禁用无线接口后($ ip link set down $也应该可以工作):

$ sudo ifconfig wlp3s0 down

我的 wifi 菜单又可以使用了。

答案2

为什么每次启动时都要运行 wifi 菜单?除非您不断连接到新的无线网络,否则您应该简单地使用 wifi-menu 一次来创建配置文件,然后使用网络控制开机时自动连接。

答案3

可能是一个很晚的答案,但您可以在设备关闭的情况下重新启动 dhcpcd。它应该有效。

$ ip link set dev wlp9s0b1 down

$ wifi-menu

如果 wifi 菜单不起作用,请尝试安装网络管理器。并启用它。

\# pacman -S networkmanager

\# systemctl enable NetworkManager.service

并重新启动。

答案4

这对我有用,我曾经netctl enable [PROFILE]启用我的 wifi 配置文件。

相关内容