Wicd 在启动时突然要求输入密码,
“Wicd 需要访问您计算机的网卡”
有时会出现以下错误消息:
“无法连接到 wicd 的 D-Bus 接口。检查 wicd 日志中的错误消息”
以前从未这样做过,我所做的是:
- 安装xampp
- 安装了chkconfig
- 在启动时禁用 Apache2 # chkconfig apache2 off
- 使用本指南在启动时启用 xampp:启动时启动xampp
有什么提示吗?我的发行版是 Debian 8。
编辑
即使我在提示时选中记住密码的选项,每次启动时都会询问密码。
日志内容/var/log/wicd/wicd.log:
2016/07/28 09:23:21 :: ---------------------------
2016/07/28 09:23:21 :: wicd initializing...
2016/07/28 09:23:21 :: ---------------------------
2016/07/28 09:23:21 :: wicd is version 1.7.2.4 768
2016/07/28 09:23:21 :: setting backend to external
2016/07/28 09:23:21 :: trying to load backend external
2016/07/28 09:23:21 :: successfully loaded backend external
2016/07/28 09:23:21 :: trying to load backend external
2016/07/28 09:23:21 :: successfully loaded backend external
2016/07/28 09:23:21 :: Automatically detected wireless interface wlan0
2016/07/28 09:23:21 :: setting wireless interface wlan0
2016/07/28 09:23:21 :: automatically detected wired interface eth0
2016/07/28 09:23:21 :: setting wired interface eth0
2016/07/28 09:23:21 :: setting wpa driver wext
2016/07/28 09:23:21 :: setting use global dns to False
2016/07/28 09:23:21 :: setting global dns
2016/07/28 09:23:21 :: global dns servers are None None None
2016/07/28 09:23:21 :: domain is None
2016/07/28 09:23:21 :: search domain is None
2016/07/28 09:23:21 :: setting automatically reconnect when connection drops True
2016/07/28 09:23:21 :: Setting dhcp client to 0
2016/07/28 09:23:21 :: Wireless configuration file found...
2016/07/28 09:23:21 :: Wired configuration file found...
2016/07/28 09:23:21 :: chmoding configuration files 0600...
2016/07/28 09:23:21 :: chowning configuration files root:root...
2016/07/28 09:23:21 :: Using wireless interface...wlan0
2016/07/28 09:23:21 :: Using wired interface...eth0
2016/07/28 09:23:26 :: Autoconnecting...
2016/07/28 09:23:26 :: No wired connection present, attempting to autoconnect to wireless network
2016/07/28 09:23:27 :: trying to automatically connect to...glab
2016/07/28 09:23:27 :: Connecting to wireless network glab
2016/07/28 09:23:27 :: attempting to set hostname with dhclient
2016/07/28 09:23:27 :: using dhcpcd or another supported client may work better
2016/07/28 09:23:28 :: attempting to set hostname with dhclient
2016/07/28 09:23:28 :: using dhcpcd or another supported client may work better
2016/07/28 09:23:28 :: Putting interface down
2016/07/28 09:23:28 :: Releasing DHCP leases...
2016/07/28 09:23:28 :: attempting to set hostname with dhclient
2016/07/28 09:23:28 :: using dhcpcd or another supported client may work better
2016/07/28 09:23:28 :: Setting false IP...
2016/07/28 09:23:28 :: Stopping wpa_supplicant
2016/07/28 09:23:28 :: Flushing the routing table...
2016/07/28 09:23:28 :: Putting interface up...
2016/07/28 09:23:30 :: Generating psk...
2016/07/28 09:23:30 :: Attempting to authenticate...
2016/07/28 09:23:32 :: Running DHCP with hostname camera50
2016/07/28 09:23:32 :: attempting to set hostname with dhclient
2016/07/28 09:23:32 :: using dhcpcd or another supported client may work better
2016/07/28 09:23:32 :: Internet Systems Consortium DHCP Client 4.3.1
2016/07/28 09:23:32 :: Copyright 2004-2014 Internet Systems Consortium.
2016/07/28 09:23:32 :: All rights reserved.
2016/07/28 09:23:32 :: For info, please visit https://www.isc.org/software/dhcp/
2016/07/28 09:23:32 ::
2016/07/28 09:23:32 :: Listening on LPF/wlan0/b8:86:87:ad:78:41
2016/07/28 09:23:32 :: Sending on LPF/wlan0/b8:86:87:ad:78:41
2016/07/28 09:23:32 :: Sending on Socket/fallback
2016/07/28 09:23:32 :: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 5
2016/07/28 09:23:32 :: DHCPREQUEST on wlan0 to 255.255.255.255 port 67
2016/07/28 09:23:32 :: DHCPOFFER from 192.168.0.1
2016/07/28 09:23:32 :: DHCPACK from 192.168.0.1
2016/07/28 09:23:32 :: bound to 192.168.0.114 -- renewal in 35290 seconds.
2016/07/28 09:23:32 :: DHCP connection successful
2016/07/28 09:23:32 :: not verifying
2016/07/28 09:23:33 :: Connecting thread exiting.
2016/07/28 09:23:34 :: Sending connection attempt result success
编辑2
在我看来,上面的日志没有显示任何相关信息,可能是因为它在守护进程启动后记录信息,但我的问题发生在它之前!我认为这与计时问题有关,因为当系统提示我输入密码时,我选择什么并不重要,即使我单击“取消”,我也会收到第二个错误,但托盘图标可以工作并且 Wi-Fi 连接可以工作。我已经检查了 /etc/wicd 中的配置文件,但没有什么奇怪的,没有空括号,正如有人建议解决这个问题一样。已经尝试在 sudo_app=1 中编辑 manager-settings.conf 但没有成功。为了回顾一下这个问题,我们开始禁用 Apache2 并安装 Xampp,在启动时启用它。我的想法是 wicd-client 不会等待 wicd 守护进程,这就是为什么系统提示我输入密码来启动守护进程!但守护进程无论如何都会按预期启动(甚至选择取消!)。任何帮助将不胜感激。
答案1
我发现了类似的问题ubuntuforums.org。
在那里,解决方案显然是:
sudo apt-get install sysv-rc-conf
sudo sysv-rc-conf
将显示一个窗口。靠近末尾处向下箭头指向“wicd”。使用空格键在 2、3、4 和 5 中输入 X。输入 q 退出。重启。
编辑:
尝试这个:
从终端控制台编辑配置文件:
gedit /etc/wicd/manager-settings.conf
搜索:
sudo_app = 0
改成:
sudo_app = 1
来源:关联