页次: 1
本新手已成功安装Arch,且成功安装了gnome环境及几个常用软件,但每次开机后,必须使用wifi-menu命令来联网,想设置为开机自动联网的模式,在朋友的帮助下安装了以下软件:
pacman -S iw wpa_supplicant dialog wireless_tools networkmanager network-manager-applet
然后设置了:
sudo systemctl enable NetworkManager.service
sudo systemctl enable wpa_supplicant.service
sudo Networkmanager
之后重启笔记本,变成了完全无法联网,执行wifi-menu报错及详细步骤如下:
----------------------------------------------------------------------------------------
$ sudo wifi-menu
Scanning for networks... nl80211: Could not set interface 'p2p-dev-wlo1' UP
p2p-dev-wlo1: Failed to initialize driver interface
----------------------------------------------------------------------------------------
选择具体网络后:
Job for netctl@wlo1\x2dOCEEQ_TEST1.service failed because the control process exited with error code.
See "systemctl status "netctl@wlo1\\x2dOCEEQ_TEST1.service"" and "journalctl -xe" for details.
ps.正常情况下不会有上边的提示,是直接联网成功的
----------------------------------------------------------------------------------------
执行journalctl -xe显示如下:
Hint: You are currently not seeing messages from other users and the system.
Users in groups 'adm', 'systemd-journal', 'wheel' can see all messages.
Pass -q to turn off this notice.
-- UNIT 单元已开始启动。
-- UNIT 单元已开始启动。
7月 03 15:35:39 ArchGeass dbus-daemon[892]: [session uid=1000 pid=892] Successfully activated service 'org.gtk.vfs.Metadata'
7月 03 15:35:39 ArchGeass systemd[877]: Started Virtual filesystem metadata service.
-- Subject: UNIT 单元已结束启动
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/l … temd-devel
--
-- UNIT 单元已结束启动。
--
-- 启动结果为“done”。
7月 03 15:35:40 ArchGeass systemd[877]: run-user-120.mount: Succeeded.
-- Subject: Unit succeeded
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/l … temd-devel
--
-- The unit UNIT has successfully entered the 'dead' state.
7月 03 15:35:47 ArchGeass fcitx-autostart.desktop[1212]: sogou-qimpanel: error while loading shared libraries: libfcitx-qt.so.0: cannot open shared object fi>
7月 03 15:35:47 ArchGeass fcitx-autostart.desktop[1212]: sogou-qimpanel: 未找到进程
7月 03 15:35:50 ArchGeass systemd[877]: tracker-extract.service: Succeeded.
-- Subject: Unit succeeded
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/l … temd-devel
--
-- The unit UNIT has successfully entered the 'dead' state.
7月 03 15:35:50 ArchGeass fcitx-autostart.desktop[1212]: sogou-qimpanel: error while loading shared libraries: libfcitx-qt.so.0: cannot open shared object fi>
7月 03 15:35:50 ArchGeass fcitx-autostart.desktop[1212]: sogou-qimpanel: 未找到进程
7月 03 15:35:53 ArchGeass fcitx-autostart.desktop[1212]: sogou-qimpanel: error while loading shared libraries: libfcitx-qt.so.0: cannot open shared object fi>
7月 03 15:35:53 ArchGeass fcitx-autostart.desktop[1212]: sogou-qimpanel: 未找到进程
7月 03 15:35:56 ArchGeass fcitx-autostart.desktop[1212]: sogou-qimpanel: error while loading shared libraries: libfcitx-qt.so.0: cannot open shared object fi>
7月 03 15:35:56 ArchGeass fcitx-autostart.desktop[1212]: sogou-qimpanel: 未找到进程
7月 03 15:36:09 ArchGeass tracker-store[1221]: OK
7月 03 15:36:09 ArchGeass systemd[877]: tracker-store.service: Succeeded.
-- Subject: Unit succeeded
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/l … temd-devel
--
-- The unit UNIT has successfully entered the 'dead' state.
7月 03 15:37:18 ArchGeass su[1633]: (to root) arch on pts/0
7月 03 15:37:18 ArchGeass su[1633]: pam_unix(su:session): session opened for user root by (uid=1000)
7月 03 15:38:27 ArchGeass su[1633]: pam_unix(su:session): session closed for user root
7月 03 15:39:46 ArchGeass dbus-daemon[892]: [session uid=1000 pid=892] Activating service name='org.gnome.gedit' requested by ':1.12' (uid=1000 pid=925 comm=>
7月 03 15:39:46 ArchGeass dbus-daemon[892]: [session uid=1000 pid=892] Successfully activated service 'org.gnome.gedit'
7月 03 15:39:46 ArchGeass gnome-shell[925]: meta_window_set_stack_position_no_sync: assertion 'window->stack_position >= 0' failed
----------------------------------------------------------------------------------------
之后尝试了卸载wireless_tools networkmanager network-manager-applet这些软件,
以及其他一些网络设置:
sudo systemctl disable dhcpcd.service
sudo systemctl disable wpa_supplicant.service
sudo systemctl disable NetworkManager.service
但都无法改变wifi-menu联网失败的问题
----------------------------------------------------------------------------------------
网上查找了相关的类似问题,但都没有解决,我现在对于linux的网络理解还很浅,求大神赐教
lspci -k的信息过多,也看不懂,就不罗列出来了
如果需要再贴出来哪些信息,我之后再补充~
再贴一个我也不知道干嘛用的东西:
[arch@ArchGeass ~]$ journalctl -b -u NetworkManager
Hint: You are currently not seeing messages from other users and the system.
Users in groups 'adm', 'systemd-journal', 'wheel' can see all messages.
Pass -q to turn off this notice.
-- Logs begin at Tue 2019-07-02 18:47:19 CST, end at Wed 2019-07-03 17:25:15 CST. --
-- No entries --
离线
Hint: You are currently not seeing messages from other users and the system.
Users in groups 'adm', 'systemd-journal', 'wheel' can see all messages.
Pass -q to turn off this notice.
See "systemctl status "netctl@wlo1\\x2dOCEEQ_TEST1.service"" and "journalctl -xe" for details.
离线
既然装了 networkmanager 为何不用它来设置网络,终端下可用 nmtui 命令设置
离线
Hint: You are currently not seeing messages from other users and the system. Users in groups 'adm', 'systemd-journal', 'wheel' can see all messages. Pass -q to turn off this notice.
See "systemctl status "netctl@wlo1\\x2dOCEEQ_TEST1.service"" and "journalctl -xe" for details.
[arch@ArchGeass ~]$ systemctl status "netctl@wlo1\\x2dOCEEQ_TEST1.service"
● netctl@wlo1\x2dOCEEQ_TEST1.service - Networking for netctl profile wlo1-OCEEQ_TEST1
Loaded: loaded (/usr/lib/systemd/system/netctl@.service; static; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2019-07-04 14:35:36 CST; 33s ago
Docs: man:netctl.profile(5)
Process: 1537 ExecStart=/usr/lib/netctl/network start wlo1-OCEEQ_TEST1 (code=exited, status=1/FAILURE)
Main PID: 1537 (code=exited, status=1/FAILURE)
离线
我引用的前边那段话你没看到么?如果你不在那几个管理组里,那就用 sudo 吧。不然看不到日志。
离线
我引用的前边那段话你没看到么?如果你不在那几个管理组里,那就用 sudo 吧。不然看不到日志。
抱歉,没理解信息的含义,日志如下
------------------------------------------------------------------------------------------------
[arch@ArchGeass ~]$ sudo systemctl status "netctl@wlo1\\x2dOCEEQ_TEST1.service"
● netctl@wlo1\x2dOCEEQ_TEST1.service - Networking for netctl profile wlo1-OCEEQ_TEST1
Loaded: loaded (/usr/lib/systemd/system/netctl@.service; static; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2019-07-04 22:02:01 CST; 41s ago
Docs: man:netctl.profile(5)
Process: 1536 ExecStart=/usr/lib/netctl/network start wlo1-OCEEQ_TEST1 (code=exited, status=1/FAILURE)
Main PID: 1536 (code=exited, status=1/FAILURE)
7月 04 22:02:01 ArchGeass systemd[1]: Starting Networking for netctl profile wlo1-OCEEQ_TEST1...
7月 04 22:02:01 ArchGeass network[1536]: Starting network profile 'wlo1-OCEEQ_TEST1'...
7月 04 22:02:01 ArchGeass network[1536]: The interface of network profile 'wlo1-OCEEQ_TEST1' is already up
7月 04 22:02:01 ArchGeass systemd[1]: netctl@wlo1\x2dOCEEQ_TEST1.service: Main process exited, code=exited, status=1/FAILURE
7月 04 22:02:01 ArchGeass systemd[1]: netctl@wlo1\x2dOCEEQ_TEST1.service: Failed with result 'exit-code'.
7月 04 22:02:01 ArchGeass systemd[1]: Failed to start Networking for netctl profile wlo1-OCEEQ_TEST1.
------------------------------------------------------------------------------------------------
另外/etc/netctl/wlo1-OCEEQ_TEST1这个网络信息文件我检查过了,貌似没问题,也贴一下
[arch@ArchGeass netctl]$ sudo cat wlo1-OCEEQ_TEST1
Description='Automatically generated profile by wifi-menu'
Interface=wlo1
Connection=wireless
Security=wpa
ESSID=OCEEQ_TEST1
IP=dhcp
Key=12345678
离线
7月 04 22:02:01 ArchGeass network[1536]: The interface of network profile 'wlo1-OCEEQ_TEST1' is already up
大概是冲突了。有多个网络管理器在打架,或者你在和它打架之类的。
离线
wifi-menu 和 networkmanager 两个会冲突,我以前遇到过这个情况,现在直接用netctl了,简单方便
离线
我跟你遇到类似的问题,看到你留言,然后用
sudo systemctl disable dhcpcd.service
搞定了qwq
感谢
离线
7月 04 22:02:01 ArchGeass network[1536]: The interface of network profile 'wlo1-OCEEQ_TEST1' is already up
大概是冲突了。有多个网络管理器在打架,或者你在和它打架之类的。
尝试使用 netctl 连接 WiFi 网络,遇到一样的问题,
最后参考了这句话,关闭了 NetworkManager.service 才解决问题。
离线
页次: 1