New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

怎么能更新到2.9.0呢? #622

Closed
leeaung opened this Issue Sep 16, 2016 · 11 comments

Comments

Projects
None yet
7 participants
@leeaung

leeaung commented Sep 16, 2016

求具体命令 非专业人员 只会粘贴命令 抱歉
apt-get install python-pip
pip install shadowsocks
这个是我的安装命令 现在是2.8.2
不知道怎么不重装升级到2.9.0 不然就只有重装用teddysun的一键脚本了
或者能在现有基础上直接用teddysun的一键脚本吗? 不敢乱操作 怕弄坏了
需要具体的命令 感谢

@smounives

This comment has been minimized.

smounives commented Sep 17, 2016

pip install https://github.com/shadowsocks/shadowsocks/archive/master.zip

@leeaung

This comment has been minimized.

leeaung commented Sep 17, 2016

非常感谢

@tianlichunhong

This comment has been minimized.

tianlichunhong commented Sep 19, 2016

按照上面方法安装,安装好后运行,出现下面错误,请高手告知什么原因?原来用pip install shadowsocks安装的,是可以正常运行的。
root@www:/# ./usr/local/bin/ssserver -c /etc/shadowsocks.json -d start
INFO: loading config from /etc/shadowsocks.json
2016-09-19 09:34:17 INFO loading libsodium from libsodium.so.13
Traceback (most recent call last):
File "./usr/local/bin/ssserver", line 9, in
load_entry_point('shadowsocks==2.9.0', 'console_scripts', 'ssserver')()
File "/usr/local/lib/python2.7/dist-packages/shadowsocks/server.py", line 34, in main
config = shell.get_config(False)
File "/usr/local/lib/python2.7/dist-packages/shadowsocks/shell.py", line 270, in get_config
check_config(config, is_local)
File "/usr/local/lib/python2.7/dist-packages/shadowsocks/shell.py", line 125, 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 84, in init
random_string(self._method_info[1]))
File "/usr/local/lib/python2.7/dist-packages/shadowsocks/encrypt.py", line 110, in get_cipher
return m[2](method, key, iv, op)
File "/usr/local/lib/python2.7/dist-packages/shadowsocks/crypto/sodium.py", line 69, in init
load_libsodium()
File "/usr/local/lib/python2.7/dist-packages/shadowsocks/crypto/sodium.py", line 54, in load_libsodium
libsodium.crypto_stream_chacha20_ietf_xor_ic.restype = c_int
File "/usr/lib/python2.7/ctypes/init.py", line 378, in getattr
func = self.getitem(name)
File "/usr/lib/python2.7/ctypes/init.py", line 383, in getitem
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: /usr/local/lib/libsodium.so.13: undefined symbol: crypto_stream_chacha20_ietf_xor_ic

@tianlichunhong

This comment has been minimized.

tianlichunhong commented Sep 19, 2016

原来是不支持chacha20的加盟方式,换了AES-256-CFB,可以运行了。

@nicholascw

This comment has been minimized.

nicholascw commented Sep 19, 2016

chacha20需要libsodium,安裝方法見wiki

@tianlichunhong

This comment has been minimized.

tianlichunhong commented Sep 19, 2016

我之前的版本可以用chacha20的,之前安装过libsodium。恢复原来的2.8.2版本也可以继续使用chacha20。后来我重新安装一下libsodium到libsodium-1.0.10,发现2.9.0也可以用chacha20了。原因不明。

@nicholascw

This comment has been minimized.

nicholascw commented Sep 19, 2016

原因很明確啊。。需要libsodium依賴而已。不過新版本為什麼不更新到pip,也沒更新wiki了。。略蛋疼啊

@v3aqb

This comment has been minimized.

v3aqb commented Sep 19, 2016

新版 libsodium 才有 chacha20-ietf

Nicholas Wang notifications@github.com于2016年9月19日周一 11:43写道:

原因很明確啊。。需要libsodium依賴而已。不過新版本為什麼不更新到pip,也沒更新wiki了。。略蛋疼啊


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#622 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADJX95w5XaR-Voei2rEPd3mNDT8qxIFEks5qrgT2gaJpZM4J-msY
.

@desmax

This comment has been minimized.

desmax commented Nov 23, 2016

Would be a great help, if you respect others and use english. Thank you.

@baijifeilong

This comment has been minimized.

baijifeilong commented Aug 5, 2018

pip3 show shadowsocks to check the shadowsocks version
pip3 install https://github.com/shadowsocks/shadowsocks/archive/2.9.1.zip
pip3 show shadowsocks to check the shadowsocks version again

If you are using pip2, please replace the pip3 to pip or pip2 depends on your operating system.

@baijifeilong

This comment has been minimized.

baijifeilong commented Aug 5, 2018

If you are using arch linux, just type sudo pacman -S shadowsocks, this command will install shadowsocks 2.9.1 to your python's site-packages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment