我可以连接到不需要密码的 wifi 网络。但是当我尝试连接到需要密码的网络时,系统不会询问密码,网络管理器只会尝试连接,当然会失败。
这是来自 /var/log/syslog 的日志:
NetworkManager[936]: <info> [1495625898.1943] device (wlp2s0): Activation: starting connection 'true_home2G_b68' (ea2f25dd-98bd-4e72-b660-5ac56c683519)
NetworkManager[936]: <info> [1495625898.1944] audit: op="connection-activate" uuid="ea2f25dd-98bd-4e72-b660-5ac56c683519" name="true_home2G_b68" pid=2168 uid=1000 result="success"
NetworkManager[936]: <info> [1495625898.1945] device (wlp2s0): state change: disconnected -> prepare (reason 'none') [30 40 0]
NetworkManager[936]: <info> [1495625898.1946] manager: NetworkManager state is now CONNECTING
NetworkManager[936]: <info> [1495625898.1951] device (wlp2s0): state change: prepare -> config (reason 'none') [40 50 0]
NetworkManager[936]: <info> [1495625898.1953] device (wlp2s0): Activation: (wifi) access point 'true_home2G_b68' has security, but secrets are required.
NetworkManager[936]: <info> [1495625898.1953] device (wlp2s0): state change: config -> need-auth (reason 'none') [50 60 0]
NetworkManager[936]: <warn> [1495625923.2170] device (wlp2s0): No agents were available for this request.
NetworkManager[936]: <info> [1495625923.2171] device (wlp2s0): state change: need-auth -> failed (reason 'no-secrets') [60 120 7]
gnome-session[1940]: (nm-applet:2168): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
NetworkManager[936]: <info> [1495625923.2174] manager: NetworkManager state is now DISCONNECTED
NetworkManager[936]: <warn> [1495625923.2184] device (wlp2s0): Activation: failed for connection 'true_home2G_b68'
NetworkManager[936]: <info> [1495625923.2199] device (wlp2s0): state change: failed -> disconnected (reason 'none') [120 30 0]
kernel: [32456.473864] IPv6: ADDRCONF(NETDEV_UP): wlp2s0: link is not ready
我不知道这是否重要,我认为这个问题是在安装后开始的安博之后,在 ifconfig 结果中,wlp2s0 被另一个条目替换(如果我没记错的话是 anboxlo)。现在我删除了 anbox 并尝试恢复旧设置,在输出中搜索错误...但没有成功。
请帮助我。我会根据需要提供更多信息。
编辑 1 以添加@George 在评论中所需的信息:
的结果$ less /var/log/syslog | grep -i wpa
:
May 28 15:11:25 dv-XPS-15-9550 dbus[888]: [system] Activating via systemd: service name='fi.w1.wpa_supplicant1' unit='wpa_supplicant.service'
May 28 15:11:25 dv-XPS-15-9550 systemd[1]: Starting WPA supplicant...
May 28 15:11:25 dv-XPS-15-9550 dbus[888]: [system] Successfully activated service 'fi.w1.wpa_supplicant1'
May 28 15:11:25 dv-XPS-15-9550 systemd[1]: Started WPA supplicant.
May 28 15:11:25 dv-XPS-15-9550 wpa_supplicant[2633]: Successfully initialized wpa_supplicant
May 28 15:11:25 dv-XPS-15-9550 NetworkManager[2619]: <info> [1495977085.7349] supplicant: wpa_supplicant running
May 28 15:11:25 dv-XPS-15-9550 wpa_supplicant[2633]: dbus: wpa_dbus_get_object_properties: failed to get object properties: (none) none
May 28 15:11:25 dv-XPS-15-9550 wpa_supplicant[2633]: dbus: Failed to construct signal
May 28 15:11:25 dv-XPS-15-9550 wpa_supplicant[2633]: Could not read interface p2p-dev-wlp2s0 flags: No such device
May 28 15:11:33 dv-XPS-15-9550 wpa_supplicant[2633]: p2p-dev-wlp2s0: CTRL-EVENT-REGDOM-CHANGE init=BEACON_HINT type=UNKNOWN
May 28 15:13:07 dv-XPS-15-9550 wpa_supplicant[2633]: nl80211: deinit ifname=p2p-dev-wlp2s0 disabled_11b_rates=0
May 28 15:13:07 dv-XPS-15-9550 wpa_supplicant[2633]: nl80211: deinit ifname=wlp2s0 disabled_11b_rates=0
May 28 15:13:24 dv-XPS-15-9550 NetworkManager[2755]: <info> [1495977204.9381] supplicant: wpa_supplicant running
May 28 15:13:24 dv-XPS-15-9550 wpa_supplicant[2633]: dbus: wpa_dbus_get_object_properties: failed to get object properties: (none) none
May 28 15:13:24 dv-XPS-15-9550 wpa_supplicant[2633]: dbus: Failed to construct signal
May 28 15:13:24 dv-XPS-15-9550 wpa_supplicant[2633]: Failed to create interface p2p-dev-wlp2s0: -16 (Device or resource busy)
May 28 15:13:24 dv-XPS-15-9550 wpa_supplicant[2633]: nl80211: Failed to create a P2P Device interface p2p-dev-wlp2s0
May 28 15:13:24 dv-XPS-15-9550 wpa_supplicant[2633]: P2P: Failed to enable P2P Device interface
(网络管理器似乎在系统启动后没有运行。我运行了这些命令:$ sudo service network-manager restart
在 15:11:25、$ sudo service network-manager stop
在 15:13:07 和$ sudo service network-manager start
在 15:13:24)
编辑2以获取更多所需信息:
$ sudo systemctl list-unit-files --type=service | grep enabled
accounts-daemon.service enabled
anacron-resume.service enabled
anacron.service enabled
[email protected] enabled
avahi-daemon.service enabled
bluetooth.service enabled
brltty.service enabled
cron.service enabled
cups-browsed.service enabled
cups.service enabled
dbus-org.bluez.service enabled
dbus-org.freedesktop.Avahi.service enabled
dbus-org.freedesktop.ModemManager1.service enabled
dbus-org.freedesktop.thermald.service enabled
display-manager.service enabled
dns-clean.service enabled
friendly-recovery.service enabled
[email protected] enabled
gpu-manager.service enabled
lightdm.service enabled
mariadb.service enabled
ModemManager.service enabled
mysql.service enabled
mysqld.service enabled
networking.service enabled
NetworkManager-wait-online.service enabled
pppd-dns.service enabled
resolvconf.service enabled
rsyslog.service enabled
snapd.autoimport.service enabled
snapd.service enabled
snapd.system-shutdown.service enabled
syslog.service enabled
systemd-timesyncd.service enabled
thermald.service enabled
ufw.service enabled
unattended-upgrades.service enabled
ureadahead.service enabled
whoopsie.service enabled
$ iw list | grep -i p2p
* P2P-client
* P2P-GO
* P2P-device
* start_p2p_device
* P2P-client: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* P2P-GO: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* P2P-device: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
* P2P-client: 0x40 0xd0
* P2P-GO: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
* P2P-device: 0x40 0xd0
* #{ managed } <= 1, #{ P2P-device } <= 1, #{ P2P-client, P2P-GO } <= 1,
* #{ managed } <= 1, #{ AP } <= 1, #{ P2P-client } <= 1, #{ P2P-device } <= 1,
启用网络管理器服务后编辑3:
$ sudo systemctl list-unit-files --type=service | grep enabled
accounts-daemon.service enabled
anacron-resume.service enabled
anacron.service enabled
[email protected] enabled
avahi-daemon.service enabled
bluetooth.service enabled
brltty.service enabled
cron.service enabled
cups-browsed.service enabled
cups.service enabled
dbus-org.bluez.service enabled
dbus-org.freedesktop.Avahi.service enabled
dbus-org.freedesktop.ModemManager1.service enabled
dbus-org.freedesktop.nm-dispatcher.service enabled
dbus-org.freedesktop.thermald.service enabled
display-manager.service enabled
dns-clean.service enabled
friendly-recovery.service enabled
[email protected] enabled
gpu-manager.service enabled
lightdm.service enabled
mariadb.service enabled
ModemManager.service enabled
mysql.service enabled
mysqld.service enabled
network-manager.service enabled
networking.service enabled
NetworkManager-dispatcher.service enabled
NetworkManager-wait-online.service enabled
NetworkManager.service enabled
pppd-dns.service enabled
resolvconf.service enabled
rsyslog.service enabled
snapd.autoimport.service enabled
snapd.service enabled
snapd.system-shutdown.service enabled
syslog.service enabled
systemd-timesyncd.service enabled
thermald.service enabled
ufw.service enabled
unattended-upgrades.service enabled
ureadahead.service enabled
whoopsie.service enabled
$ iw 列表 | grep -i p2p (相同)
另外让我补充一点,现在当我尝试使用密码连接到 wifi 时,我会在弹出窗口中收到此错误消息:
连接失败
连接激活失败
(2)活动连接在初始化之前被移除
答案1
密钥环守护程序可能没有运行。您可以检查它是否在自动启动应用程序中启用,查找“Gnome keyring”
另外,我认为consolekit
应该作为服务运行