解决shadowsocks2.8.2报错问题
来源:互联网 发布:手机解锁密码软件 编辑:程序博客网 时间:2024/06/07 00:18
最近lantern无法使用了,朋友给了个shadowsocks先用这,在公司的时候使用正常,但是到了家里的电脑上就不行了,执行
sslocal -c shadowsocks.json
时报了下面的错误
INFO: loading config from /home/shooke/.shadowsocks.json2017-10-28 21:40:48 INFO loading libcrypto from libcrypto.so.1.1Traceback (most recent call last): File "/usr/local/bin/sslocal", line 11, in <module> sys.exit(main()) File "/home/shooke/.local/lib/python2.7/site-packages/shadowsocks/local.py", line 39, in main config = shell.get_config(True) File "/home/shooke/.local/lib/python2.7/site-packages/shadowsocks/shell.py", line 262, in get_config check_config(config, is_local) File "/home/shooke/.local/lib/python2.7/site-packages/shadowsocks/shell.py", line 124, in check_config encrypt.try_cipher(config['password'], config['method']) File "/home/shooke/.local/lib/python2.7/site-packages/shadowsocks/encrypt.py", line 44, in try_cipher Encryptor(key, method) File "/home/shooke/.local/lib/python2.7/site-packages/shadowsocks/encrypt.py", line 83, in __init__ random_string(self._method_info[1])) File "/home/shooke/.local/lib/python2.7/site-packages/shadowsocks/encrypt.py", line 109, in get_cipher return m[2](method, key, iv, op) File "/home/shooke/.local/lib/python2.7/site-packages/shadowsocks/crypto/rc4_md5.py", line 33, in create_cipher return openssl.OpenSSLCrypto(b'rc4', rc4_key, b'', op) File "/home/shooke/.local/lib/python2.7/site-packages/shadowsocks/crypto/openssl.py", line 76, in __init__ load_openssl() File "/home/shooke/.local/lib/python2.7/site-packages/shadowsocks/crypto/openssl.py", line 52, in load_openssl libcrypto.EVP_CIPHER_CTX_cleanup.argtypes = (c_void_p,) File "/usr/lib/python2.7/ctypes/__init__.py", line 379, in __getattr__ func = self.__getitem__(name) File "/usr/lib/python2.7/ctypes/__init__.py", line 384, in __getitem__ func = self._FuncPtr((name_or_ordinal, self))AttributeError: /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1: undefined symbol: EVP_CIPHER_CTX_cleanup
在网上找了下原因,发现是openssl版本导致的。看来是因为我本地和公司电脑上openssl版本不一样。
解决方法是修改/home/shooke/.local/lib/python2.7/site-packages/shadowsocks/crypto/openssl.py文件,这个路径在不同电脑上可能不一样,看报错信息根据报错内容找到对应的openssl.py文件。
修改两个地方
将第52行libcrypto.EVP_CIPHER_CTX_cleanup.argtypes = (c_void_p,)
改为libcrypto.EVP_CIPHER_CTX_reset.argtypes = (c_void_p,)
再次搜索cleanup(全文件共2处,此处位于111行),将libcrypto.EVP_CIPHER_CTX_cleanup(self._ctx)
改为libcrypto.EVP_CIPHER_CTX_reset(self._ctx)
然后保存退出就可以正常启动了
参考资料https://blog.lyz810.com/article/2016/09/shadowsocks-with-openssl-greater-than-110/
阅读全文
0 0
- 解决shadowsocks2.8.2报错问题
- 解决报错问题方法
- FireFox nsSessionStore.js 问题报错解决
- 解决phpMyAdmin登陆报错问题
- 解决acmFormatSuggest函数报错的问题
- 解决Windows 7报错问题
- 解决Struts2+XDK10+xmlparserv2报错问题
- 解决vim配置.vimrc报错问题
- 解决Struts2+XDK10+xmlparserv2报错问题
- WCF RIA 解决超时报错问题
- 解决SipDroid导入Eclipse报错问题
- 解决删除Volume报错的问题
- 解决打开应用评分报错问题
- 解决删除Volume报错的问题
- 解决python2.7中文报错问题
- 解决SecureCRT报错的问题
- 解决SecureCRT报错的问题
- OpenStack_Horizon登录报错问题的解决
- 云主机Linux系统部署Apache Web服务
- Leetcode [8. String to Integer (atoi)]
- codevs3143二叉树的序遍历
- Layout POJ
- 史上最优秀的,最快的编辑器VIM(上古神器)
- 解决shadowsocks2.8.2报错问题
- Eclipse中设置作者日期等信息
- 用c语言实现的猜数字小游戏
- 4888. 【NOIP2016提高A组集训第14场11.12】最近公共祖先 (2017.10B组)
- CNN卷积神经网络中的AlexNet、VGG、GoogLeNet、ResNet对比
- OSG+QGIS在QT Creator下环境配置
- 多领域应用,展望平衡车更广阔的细分市场
- Hive几种数据导入方式
- 【NOI2008】假面舞会(图论,搜索)