给apt源添加代理

设置代理 sudo vim /etc/apt/apt.conf 加上下面一行代码: Acquire::http::proxy "http://127.0.0.1:8123"; Acquire::https::proxy "https://127.0.0.1:8123"; Acquire::socks::proxy "socks://127.0.0.1:1080";
阅读全文

Ubuntu 18.04 下解决 shadowsocks 服务报错问题

1. 报错内容 启动时报错如下: Traceback (most recent call last): File "/usr/local/bin/sslocal", line 11, in sys.exit(main()) File "/usr/local/lib/python3.6/dist-packages/shadowsocks/local.py", line 39, in main config = shell.get_config(True) File "/usr/local/lib/python3.6/dist-packages/shadowsocks/shell.py", line 262, in get_config check_config(config, is_local) File "/usr/local/lib/python3.6/dist-packages/shadowsocks/shell.py", line 124, in check_config encrypt.try_cipher(config, config) File "/usr/local/lib/python3.6/dist-packages/shadowsocks/encrypt.py", line 44, in try_cipher Encryptor(key, method) File "/usr/local/lib/python3.6/dist-packages/shadowsocks/encrypt.py", line 83, in init random_string(self._method_info)) File "/usr/local/lib/python3.6/dist-packages/shadowsocks/encrypt.py", line 109, in get_cipher return m(method, key, iv, op) File "/usr/local/lib/python3.6/dist-packages/shadowsocks/crypto/openssl.py", line 76, in init load_openssl() File "/usr/local/lib/python3.6/dist-packages/shadowsocks/crypto/openssl.py", line 52, in load_openssl libcrypto.EVP_CIPHER_CTX_cleanup.argtypes = (c_void_p,) File "/usr/lib/python3.6/ctypes/init.py", line 361, in getattr func = self.getitem(name) File "/usr/lib/python3.6/ctypes/init.py", line 366, in getitem func = self._FuncPtr((name_or_ordinal, self))...
阅读全文