所以我遇到了和这个问题完全一样的问题这里
我还通过 NetworkManager 安装了 VPN 连接,并获得了完全相同的堆栈跟踪。我查看了 /etc/nsswitch.conf,但没有看到任何 wins 条目。我的如下:
passwd: compat
group: compat
shadow: compat
hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis
我也遇到了:
/sys/devices/virtual/net/ppp0: couldn't determine device driver; ignoring...
但是我有 libgcrypt11=1.5.0-3ubuntu3,所以不确定这是否仍然存在 2.2 中提到的错误或者是否已被修复。
我注意到另一个问题的发帖者能够删除一些配置,这样就可以正常工作,但我不知道要删除哪些配置。想知道是否有人知道或之前是否有人修复过这个问题?
我的连接日志如下:
Mar 8 21:04:27 whoopsie[1046]: last message repeated 2 times
Mar 8 21:04:27 aeries NetworkManager[777]: <info> Starting VPN service 'pptp'...
Mar 8 21:04:27 aeries NetworkManager[777]: <info> VPN service 'pptp' started (org.freedesktop.NetworkManager.pptp), PID 17713
Mar 8 21:04:27 aeries NetworkManager[777]: <info> VPN service 'pptp' appeared; activating connections
Mar 8 21:04:27 aeries NetworkManager[777]: <info> VPN plugin state changed: init (1)
Mar 8 21:04:28 aeries NetworkManager[777]: <info> VPN plugin state changed: starting (3)
Mar 8 21:04:28 aeries NetworkManager[777]: <info> VPN connection 'YesVPN' (Connect) reply received.
Mar 8 21:04:28 aeries pppd[17717]: Plugin /usr/lib/pppd/2.4.5/nm-pptp-pppd-plugin.so loaded.
Mar 8 21:04:28 aeries pppd[17717]: pppd 2.4.5 started by root, uid 0
Mar 8 21:04:28 aeries pppd[17717]: Using interface ppp0
Mar 8 21:04:28 aeries pppd[17717]: Connect: ppp0 <--> /dev/pts/7
Mar 8 21:04:28 aeries pptp[17720]: nm-pptp-service-17713 log[main:pptp.c:314]: The synchronous pptp option is NOT activated
Mar 8 21:04:28 aeries NetworkManager[777]: SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
Mar 8 21:04:28 aeries NetworkManager[777]: SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/ppp0, iface: ppp0): no ifupdown configuration found.
Mar 8 21:04:28 aeries NetworkManager[777]: <warn> /sys/devices/virtual/net/ppp0: couldn't determine device driver; ignoring...
Mar 8 21:04:28 aeries whoopsie[1046]: online
Mar 8 21:04:29 aeries pptp[17733]: nm-pptp-service-17713 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 1 'Start-Control-Connection-Request'
Mar 8 21:04:29 aeries pptp[17733]: nm-pptp-service-17713 log[ctrlp_disp:pptp_ctrl.c:739]: Received Start Control Connection Reply
Mar 8 21:04:29 aeries pptp[17733]: nm-pptp-service-17713 log[ctrlp_disp:pptp_ctrl.c:773]: Client connection established.
Mar 8 21:04:29 aeries whoopsie[1046]: online
Mar 8 21:04:30 aeries pptp[17733]: nm-pptp-service-17713 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 7 'Outgoing-Call-Request'
Mar 8 21:04:30 aeries pptp[17733]: nm-pptp-service-17713 log[ctrlp_disp:pptp_ctrl.c:858]: Received Outgoing Call Reply.
Mar 8 21:04:30 aeries pptp[17733]: nm-pptp-service-17713 log[ctrlp_disp:pptp_ctrl.c:897]: Outgoing call established (call ID 0, peer's call ID 45759).
Mar 8 21:04:59 aeries whoopsie[1046]: online
Mar 8 21:05:00 aeries whoopsie[1046]: online
Mar 8 21:05:08 aeries NetworkManager[777]: <warn> VPN connection 'YesVPN' (IP Config Get) timeout exceeded.
Mar 8 21:05:08 aeries NetworkManager[777]: <info> Policy set 'MERCURY_JJ' (wlan0) as default for IPv4 routing and DNS.
Mar 8 21:05:08 aeries pppd[17717]: Terminating on signal 15
Mar 8 21:05:08 aeries pppd[17717]: Connection terminated.
Mar 8 21:05:08 aeries avahi-daemon[576]: Withdrawing workstation service for ppp0.
Mar 8 21:05:08 aeries NetworkManager[777]: SCPlugin-Ifupdown: devices removed (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
Mar 8 21:05:08 aeries pppd[17717]: Child process /usr/sbin/pptp 174.139.17.123 --nolaunchpppd --loglevel 0 --logstring nm-pptp-service-17713 (pid 17719) terminated with signal 15
Mar 8 21:05:08 aeries pppd[17717]: Exit.
Mar 8 21:05:08 aeries pptp[17720]: nm-pptp-service-17713 warn[decaps_hdlc:pptp_gre.c:204]: short read (-1): Input/output error
Mar 8 21:05:08 aeries pptp[17720]: nm-pptp-service-17713 warn[decaps_hdlc:pptp_gre.c:216]: pppd may have shutdown, see pppd log
Mar 8 21:05:08 aeries pptp[17733]: nm-pptp-service-17713 log[callmgr_main:pptp_callmgr.c:234]: Closing connection (unhandled)
Mar 8 21:05:08 aeries pptp[17733]: nm-pptp-service-17713 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 12 'Call-Clear-Request'
Mar 8 21:05:08 aeries pptp[17733]: nm-pptp-service-17713 log[call_callback:pptp_callmgr.c:79]: Closing connection (call state)
Mar 8 21:05:13 aeries NetworkManager[777]: <info> VPN service 'pptp' disappeared
答案1
在搜索网络后,我找到了一个解决方案,让我的 pptp vpn 连接能够与网络管理器配合使用,具体步骤如下: http://www.jamescoyle.net/how-to/963-set-up-linux-pptp-client-from-the-terminal
手动设置后,GUI 网络管理器就可以正常工作了
确保将机密中的连接配置文件名称更改为 PPTP。
希望这也能帮助其他人
彼得
答案2
所以我可以让它工作。我已经花了几天时间查看与此相关的每篇帖子,特别是与此错误相关的帖子:
NetworkManager[777]: <warn> /sys/devices/virtual/net/ppp0: couldn't determine device driver; ignoring
....
(IP Config Get) timeout exceeded
有一次,我发现了一篇文章,建议进入/etc/ppp/options
并取消注释该silent
条目,我照做了,但不幸的是,它什么也没做。然后我又找到了另一篇文章,建议执行以下操作,在网络管理器 VPN 配置选项(网络管理器 > 配置 VPN > 高级)中取消选中除 MSCHAP、MSCHAPv2 和使用点对点加密 (MPPE) 之外的所有选项,我照做了,但仍然没有变化。我只是回去注释掉静音行,然后它突然连接上了。希望如果您遇到同样的问题,这会有所帮助。