首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Arch Linux不再与Wifi连接

Arch Linux不再与Wifi连接
EN

Unix & Linux用户
提问于 2014-03-23 21:14:35
回答 2查看 101.1K关注 0票数 19

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

当我试图连接时,wifi-menu总是给出这个错误:

代码语言:javascript
复制
Job for netctl@HelloWorld.service failed. See 'systemctl status netctl@HelloWorld.service' and 'journalctl -xn' for details.

问题是,每次启动时,我的接口都会出现问题。因此,我使用以下方法将这个接口放下:

代码语言:javascript
复制
ip link set down wlp2s0

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

这一次,它没有连接到网络,不管是否放下接口。这给了我上面描述的同样的错误。

这是systemctl status netctl@HelloWorld.service的输出:

代码语言:javascript
复制
netctl@HelloWorld.service - Networking for netctl profile HelloWorld
   Loaded: loaded (/usr/lib/systemd/system/netctl@.service; 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]: netctl@HelloWorld.service: 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 netctl@HelloWorld.service entered failed state.

journalctl -xn为我提供了以下输出:

代码语言:javascript
复制
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]: netctl@HelloWorld.service: 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 netctl@HelloWorld.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit netctl@HelloWorld.service has failed.
-- 
-- The result is failed.
Mar 24 02:38:05 lenovo systemd[1]: Unit netctl@HelloWorld.service entered failed state.

systemctl给出了一个错误,即/run/dhcpcd-wlp2s0.pid不存在,也不存在。尽管一个名为/run/dhcpcd.pid的文件确实存在。

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

代码语言:javascript
复制
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中重置与网络相关的所有内容,这样我就可以使用wifi-menu再次连接到网络了吗?

谢谢!

EN

回答 2

Unix & Linux用户

发布于 2014-04-05 16:24:28

为什么每次启动时你都在运行无线菜单?除非您不断地连接到新的无线网络,您应该简单地使用wifi菜单一次来创建一个配置文件,然后使用尼特自动连接时,您启动。

票数 5
EN

Unix & Linux用户

发布于 2015-10-17 16:31:59

这对我有效,我使用netctl enable [PROFILE]来启用我的wifi配置文件。

票数 0
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/121060

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档