![Gnome 网络管理器无法连接](https://linux22.com/image/1065022/Gnome%20%E7%BD%91%E7%BB%9C%E7%AE%A1%E7%90%86%E5%99%A8%E6%97%A0%E6%B3%95%E8%BF%9E%E6%8E%A5.png)
我设置了网络管理器,并能够设置 VPN,但当我点击开/关滑块时,它会闪烁并保持关闭状态。我在系统日志中收到此错误:
<info> [1537687904.4383] audit: op="connection-activate" uuid="9bf2cf6b-c8d5-4fed-b12a-467ed7fd7ea5" name="dev" pid=6615 uid=1000 result="success"
gnome-shell[1619]: JS ERROR: TypeError: item is undefined#012setActiveConnections/<@resource:///org/gnome/shell/ui/status/network.js:1518:17#012setActiveConnections@resource:///org/gnome/shell/ui/status/network.js:1515:9#012wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22#012_syncVpnConnections@resource:///org/gnome/shell/ui/status/network.js:1853:9#012wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
NetworkManager[1068]: <info> [1537687904.4453] vpn-connection[0x559af12262d0,9bf2cf6b-c8d5-4fed-b12a-467ed7fd7ea5,"dev",0]: Started the VPN service, PID 7191
NetworkManager[1068]: <info> [1537687904.4526] vpn-connection[0x559af12262d0,9bf2cf6b-c8d5-4fed-b12a-467ed7fd7ea5,"dev",0]: Saw the service appear; activating connection
gnome-shell[2726]: Invalid VPN service type (cannot find authentication binary)
gnome-shell[2726]: Invalid VPN service type (cannot find authentication binary)
NetworkManager[1068]: <error> [1537687904.4788] vpn-connection[0x559af12262d0,9bf2cf6b-c8d5-4fed-b12a-467ed7fd7ea5,"dev",0]: Failed to request VPN secrets #3: No agents were available for this request.
NetworkManager[1068]: <info> [1537687904.4799] vpn-connection[0x559af12262d0,9bf2cf6b-c8d5-4fed-b12a-467ed7fd7ea5,"dev",0]: VPN service disappeared
Google 列出了几年前的一些错误,但没有列出最近的错误。有什么想法吗?
哦,命令行工作正常。
答案1
就我而言,它有助于安装
sudo apt install network-manager-openvpn-gnome
因为系统日志包含以下提示:
/usr/lib/NetworkManager/nm-openvpn-auth-dialog
找不到。
答案2
你没有提到你是否有可见的nm-小程序。
对我有用的是关注这个页面:https://help.ubuntu.com/stable/ubuntu-help/startup-applications.html
基本上,你按下 Alt-F2 键并在 /usr/bin 中搜索nm-小程序,选择它并允许它在每次启动时运行。
然后我使用了这个页面:https://help.ubuntu.com/community/NetworkManager#NM-applet_Overview
就我而言,我从 VPN 服务下载的配置文件中导入了数据,但您的情况可能有所不同。
ETA:就我而言,我还需要运行sudo apt-get 安装 openvpn 网络管理器-openvpn.然后它就正常工作了。