Softethervpn: v4.10-9505-beta 无法在 Ubuntu 14.04 上运行

创建于 2014-10-16  ·  12评论  ·  资料来源: SoftEtherVPN/SoftEtherVPN

我下载了 v4.10-9505-beta src 并在我的 Ubuntu 14.04 上编译它,安装显示正常。
但是启动'vpnclient start'命令或''vpncmd',它失败了...

-- 警报:SoftEther VPN 内核 --
致命错误:文件“hamcore.se2”丢失或损坏。
请检查 hamcore.se2。

(首先重启电脑,如果再次出现此问题,请重新安装VPN软件文件。)

然后我重新启动计算机,它再次发生。

我在我的电脑上搜索了 hamecore.se2 文件,它喜欢..
~$ sudo find / -name 'hamcore.se2' -print
/usr/vpnbridge/hamcore.se2
/usr/vpncmd/hamcore.se2
/usr/vpnclient/hamcore.se2
/usr/vpnserver/hamcore.se2
/home/chance/github/SoftEtherVPN/src/bin/BuiltHamcoreFiles/unix/hamcore.se2
/home/chance/github/SoftEtherVPN/bin/vpnserver/hamcore.se2
/home/chance/github/SoftEtherVPN/bin/vpnclient/hamcore.se2
/home/chance/github/SoftEtherVPN/bin/vpnbridge/hamcore.se2
/home/chance/github/SoftEtherVPN/bin/vpncmd/hamcore.se2

我从softether.org查看了安装Linux的文档,它说VPN软件正在安装到/usr/local/。 这是为什么?

谢谢

Close candidate Pull Request available

最有用的评论

我遇到了同样的问题。 只需通过root运行它,一切都会好起来的。
$ sudo vpnserver 启动

所有12条评论

这无济于事,但我在 ubuntu 14.04 上运行 SoftEther 没有任何问题。

我有 linux mint 17.1(基于 Ubuntu 14.04),到目前为止工作没有问题(服务器 + 客户端)。
我使用可用的最新 LTS 内核:

$ sudo apt-get install linux-image-generic-lts-utopic linux-headers-generic-lts-utopic
$重启

亲切的问候,
假人

我遇到了同样的问题。 只需通过root运行它,一切都会好起来的。
$ sudo vpnserver 启动

当我将可执行文件移出构建目录时遇到了这个问题。 将它们移回并从此处运行vpnserver解决了该问题。

$ ls -al vpnserver/
-rwxrwxrwx 1 root root 1.9K Jul 26 02:27 Authors.txt*
drwx------ 2 root root 4.0K Aug  3 07:58 chain_certs/
drwxrwxrwx 2 root root 4.0K Aug  3 07:58 code/
-rwxrwxrwx 1 root root 1.3M Jul 26 02:27 hamcore.se2*
-rw------- 1 root root  867 Aug  3 07:58 lang.config
drwxrwxrwx 2 root root 4.0K Aug  3 07:58 lib/
-rwxrwxrwx 1 root root 2.1K Jul 26 02:27 Makefile*
-rwxrwxrwx 1 root root  31K Jul 26 02:27 ReadMeFirst_Important_Notices_cn.txt*
-rwxrwxrwx 1 root root  36K Jul 26 02:27 ReadMeFirst_Important_Notices_en.txt*
-rwxrwxrwx 1 root root  50K Jul 26 02:27 ReadMeFirst_Important_Notices_ja.txt*
-rwxrwxrwx 1 root root  58K Jul 26 02:27 ReadMeFirst_License.txt*
-rwx------ 1 root root 4.4M Aug  3 07:58 vpncmd*
-rwx------ 1 root root 4.4M Aug  3 07:58 vpnserver*

$ ./vpnserver -v
SoftEther VPN Server service program
Copyright (c) SoftEther VPN Project. All Rights Reserved.

vpnserver command usage:
 vpnserver start  - Start the SoftEther VPN Server service.
 vpnserver stop   - Stop the SoftEther VPN Server service if the service has been already started.

有同样的问题,即使以管理员身份运行,窗口和问题仍然存在。 目录中存在同名文件,但大小为 0KB。 尝试卸载会出现同样的问题,这使我无法重新安装

问题是由于/bin/vpnbridge/bin/vpnclient/bin/vpncmd/bin/vpnserver下的 hamcore.se2 仅具有 root 访问权限。

$ ls -al /usr/vpnserver/hamcore.se2
-rw------- 1 root root 1296234 Mar  6 07:05 /usr/vpnserver/hamcore.se2

所以只需运行命令sudo vpnserver start

这个问题已经有几年了,这里有很多很好的答案,在 /opt 下安装并给予正确的权限时,我个人无法重现它。
vpnserver 应该使用 sudo 运行。

如果现在一切正常,我想在接下来的几天内关闭这个问题

PR #339 为 vpncmd 解决了这个问题。 vpnserver 应该以 root 身份启动。 对于 vpnclient,我不确定

@moatazel​​masry2你想修复 _vpnclient_ 吗? 我会研究。 我个人有这个约定:

  • vpnservervpnclient作为 _root_ 开始,因为它们是服务。
  • 以普通用户身份启动vpncmd ,因为它是一次性运行的,并且已经有管理员密码来保护系统配置。

@hongquan是的。 所以这个问题已经得到了正确的回答。 关闭这个问题

我知道这已经关闭,但是当我在 Ubuntu 18.04 上偶然发现这个问题时,这是我发现的。 如果我在我的主目录中:

~$ sudo vpncmd
-- Alert: SoftEther VPN Kernel --
Fatal Error: The file "hamcore.se2" is missing or broken.
Please check hamcore.se2.

(First, reboot the computer. If this problem occurs again, please reinstall VPN software files.)

但是文件存在:

~$ ls -la /usr/local/vpnserver | grep se2
-rw-------  1 root root 1296250 Jan 15  2018 hamcore.se2

cd到该目录不起作用:

~$ (cd /usr/local/vpnserver && sudo vpncmd)
-- Alert: SoftEther VPN Kernel --
Fatal Error: The file "hamcore.se2" is missing or broken.
Please check hamcore.se2.

(First, reboot the computer. If this problem occurs again, please reinstall VPN software files.)

...然而,显式调用该目录中的vpncmd确实:

~$ (cd /usr/local/vpnserver && sudo ./vpncmd)
vpncmd command - SoftEther VPN Command Line Management Utility
SoftEther VPN Command Line Management Utility (vpncmd command)
Version 4.25 Build 9656   (English)
Compiled 2018/01/15 10:17:04 by yagi at pc33
Copyright (c) SoftEther VPN Project. All Rights Reserved.

By using vpncmd program, the following can be achieved. 

1. Management of VPN Server or VPN Bridge 
2. Management of VPN Client
3. Use of VPN Tools (certificate creation and Network Traffic Speed Test Tool)

Select 1, 2 or 3: ^C

请注意,如果您使用softether.sh进行安装,则 vpncmd 是一个符号链接:

~$ ls -la `which vpncmd` 
lrwxrwxrwx 1 root root 27 Feb 23 19:43 /usr/local/bin/vpncmd -> /usr/local/vpnserver/vpncmd

我的猜测是, vpncmd尝试获取自身的路径,然后在同一目录中查找hamcore.se2 ; 但是,它可能无法解析符号链接,因此最终以/usr/local/bin/作为自身路径而不是正确的/usr/local/vpnserver/ ,在那里查找hamcore.se2 ,没有找到它,并失败。

为什么不开新刊?

此页面是否有帮助?
0 / 5 - 0 等级

相关问题

renatosc picture renatosc  ·  3评论

TheNomad11 picture TheNomad11  ·  5评论

dimzon picture dimzon  ·  3评论

yurivict picture yurivict  ·  7评论

GlennMatthys picture GlennMatthys  ·  6评论