ss的bug
今天更新了一波后,再搭SS就报错了,
报错信息:1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26INFO: loading config from ss.json
2016-12-14 22:47:50 INFO loading libcrypto from libcrypto.so.1.1
Traceback (most recent call last):
File “/usr/local/bin/sslocal”, line 11, in
sys.exit(main())
File “/usr/local/lib/python2.7/dist-packages/shadowsocks/local.py”, line 39, in main
config = shell.get_config(True)
File “/usr/local/lib/python2.7/dist-packages/shadowsocks/shell.py”, line 262, in get_config
check_config(config, is_local)
File “/usr/local/lib/python2.7/dist-packages/shadowsocks/shell.py”, line 124, in check_config
encrypt.try_cipher(config[‘password’], config[‘method’])
File “/usr/local/lib/python2.7/dist-packages/shadowsocks/encrypt.py”, line 44, in try_cipher
Encryptor(key, method)
File “/usr/local/lib/python2.7/dist-packages/shadowsocks/encrypt.py”, line 83, in init
random_string(self._method_info[1]))
File “/usr/local/lib/python2.7/dist-packages/shadowsocks/encrypt.py”, line 109, in get_cipher
return m[2](method, key, iv, op)
File “/usr/local/lib/python2.7/dist-packages/shadowsocks/crypto/openssl.py”, line 76, in init
load_openssl()
File “/usr/local/lib/python2.7/dist-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 375, in getattr
func = self.getitem(name)
File “/usr/lib/python2.7/ctypes/init.py”, line 380, 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
这个问题是由于在openssl1.1.0版本中,废弃了EVP_CIPHER_CTX_cleanup函数
解决方法:1
2
3
4
5
6
7
8vi /usr/local/lib/python2.7/dist-packages/shadowsocks/crypto/openssl.py
将libcrypto.EVP_CIPHER_CTX_cleanup.argtypes = (c_void_p,)
改为libcrypto.EVP_CIPHER_CTX_reset.argtypes = (c_void_p,)
将libcrypto.EVP_CIPHER_CTX_cleanup(self._ctx)
改为libcrypto.EVP_CIPHER_CTX_reset(self._ctx)
保存并退出
service shadowsocks start
即可解决
kali源更新bug
kali源:1
2
3
4
5
6
7
8
9#中科大kali源
deb http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
#deb http://mirrors.ustc.edu.cn/kali-security/ kali-rolling/updates main contrib non-free
#deb-src http://mirrors.ustc.edu.cn/kali-security/ kali-rolling/updates main contrib non-free
#阿里云kali源
deb http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
#deb http://mirrors.aliyun.com/kali-security/ kali-rolling/updates main contrib non-free
#deb-src http://mirrors.aliyun.com/kali-security/ kali-rolling/updates main contrib non-free
如果出现报错或者”忽略”问题,可以lsb_release -a
看一下
是sana还是kali-rolling
如果是kali-rolling,就要把源里的sana都替换成kali-rolling即可1
2
3
4apt-getupdate & apt-get upgrade
apt-get dist-upgrade
apt-get clean
reboot
再重启即可更新完毕