xyuanmu / XX-Mini

:ghost: XX-Net 精简版
443 stars 125 forks source link

安装python-pyopenssl时,出现错误 #99

Open luckyfatpig opened 8 years ago

luckyfatpig commented 8 years ago

错误提示:error:dependency python-crytography of package python-pyopenssl cannot be found,try updating your package lists

我猜是缺少了依赖包,在哪能找到?或者能不能给出软件源地址,我装的那个python-pyopenssl也是自己找的

jzp820927 commented 8 years ago

是按照 wiki 的教程,一步一步操作的吗?

CNMan commented 8 years ago

debian 或 ubuntu

apt-get install python-crytography python-pyopenssl

RHEL 或 Fedora

yum install python-crytography python-pyopenssl
luckyfatpig commented 8 years ago

我要安装在openwrt里

CNMan notifications@github.com 於 2016年9月2日 週五 21:44 寫道:

debian 或 ubuntu

apt-get install python-crytography python-pyopenssl

RHEL 或 Fedora

yum install python-crytography python-pyopenssl

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/xyuanmu/XX-Mini/issues/99#issuecomment-244378533, or mute the thread https://github.com/notifications/unsubscribe-auth/AL1JCKQGLorievG4MAf61GUgGgiB1ws-ks5qmCgdgaJpZM4JzfZ4 .

CNMan commented 8 years ago

看了看openwrt的wiki,你试试

opkg install python-crytography python-pyopenssl
luckyfatpig commented 8 years ago

要安裝的两个软件源都没有,能提供软件源或软件包吗?

luckyfatpig commented 8 years ago

依赖包和python-openssl都找到了也安装成功,现在还缺个pyopenssl

luckyfatpig commented 8 years ago

安装完pyopenssl运行又出现这个错误:

root@Gargoyle:~# python /etc/XX-Mini/proxy.py Traceback (most recent call last): File "/etc/XX-Mini/proxy.py", line 63, in from OpenSSL import version as openssl_version File "/usr/lib/python2.7/site-packages/OpenSSL/init.py", line 8, in from OpenSSL import rand, crypto, SSL File "/usr/lib/python2.7/site-packages/OpenSSL/rand.py", line 12, in from OpenSSL._util import ( File "/usr/lib/python2.7/site-packages/OpenSSL/_util.py", line 6, in from cryptography.hazmat.bindings.openssl.binding import Binding File "/usr/lib/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 14, in from cryptography.hazmat.bindings._openssl import ffi, lib ImportError: File not found

luckyfatpig commented 8 years ago

用xx-net也是这个问题……

jzp820927 commented 8 years ago

https://github.com/xyuanmu/XX-Mini/wiki/OpenWrt-%E4%B8%8B%E9%85%8D%E7%BD%AE-XX-Mini 参考下这个 wiki 和里面的2个 issues,那2个 issues 是别人成功运行的经验,值得一看

luckyfatpig commented 8 years ago

原因知道,是新版openssl的依赖包太多,只能用回旧版的openssl,但又不支持http/2

jzp820927 commented 8 years ago

能用就行了,其实只要 IP 直连好,http/2 影响不大。http/2 只是对高延时的 IP,有优化作用。而且也不是太明显。

luckyfatpig commented 8 years ago

另外想问一下,有些网站pac没有,怎么能添加进去或者用软件解決?

天朝屁民 notifications@github.com 於 2016年9月4日 週日 23:39 寫道:

能用就行了,其实只要 IP 直连好,http/2 影响不大。http/2 只是对高延时的 IP,有优化作用。而且也不是太明显。

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/xyuanmu/XX-Mini/issues/99#issuecomment-244610358, or mute the thread https://github.com/notifications/unsubscribe-auth/AL1JCEUW2KJQPPyy3sSC2JtqSf8HVOeiks5qmuY7gaJpZM4JzfZ4 .

jzp820927 commented 8 years ago

2个方法,1是提交网址到 gfwlist 项目的 issues,2是自己编辑 pac 文件添加网址。

roc1010kmt commented 8 years ago

@luckyfatpig 我安裝python-pyopenssl_16.0.0-1_ar71xx.ipk版,啟動xxnet和你的錯誤提示一樣. 是安裝舊版就可以嗎?在哪裡可以找到?能發我一個嗎?

roc1010kmt commented 8 years ago

@luckyfatpig # python /tmp/xx/proxy.py Traceback (most recent call last): File "/tmp/xx/proxy.py", line 63, in from OpenSSL import version as openssl_version File "/usr/lib/python2.7/site-packages/OpenSSL/init.py", line 8, in from OpenSSL import rand, crypto, SSL File "/usr/lib/python2.7/site-packages/OpenSSL/rand.py", line 12, in from OpenSSL._util import ( File "/usr/lib/python2.7/site-packages/OpenSSL/_util.py", line 6, in from cryptography.hazmat.bindings.openssl.binding import Binding File "/usr/lib/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 14, in from cryptography.hazmat.bindings._openssl import ffi, lib ImportError: File not found

luckyfatpig commented 8 years ago

http://pan.baidu.com/share/link?shareid=3469990355&uk=2486271132

强制安装就行

roc1010kmt notifications@github.com 於 2016年9月7日 週三 03:04 寫道:

@luckyfatpig https://github.com/luckyfatpig # python /tmp/xx/proxy.py Traceback (most recent call last): File "/tmp/xx/proxy.py", line 63, in from OpenSSL import version as openssl_version File "/usr/lib/python2.7/site-packages/OpenSSL/init.py", line 8, in from OpenSSL import rand, crypto, SSL File "/usr/lib/python2.7/site-packages/OpenSSL/rand.py", line 12, in from OpenSSL._util import ( File "/usr/lib/python2.7/site-packages/OpenSSL/_util.py", line 6, in from cryptography.hazmat.bindings.openssl.binding import Binding File "/usr/lib/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 14, in from cryptography.hazmat.bindings._openssl import ffi, lib ImportError: File not found

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/xyuanmu/XX-Mini/issues/99#issuecomment-245055372, or mute the thread https://github.com/notifications/unsubscribe-auth/AL1JCPA8aoY-NJ8Zwt4giQ-7ZEKhMyRzks5qnbkNgaJpZM4JzfZ4 .

roc1010kmt commented 8 years ago

@luckyfatpig pyopenssl_16啟動不了出錯,pyopenssl_10可以啟動. 不知為什麼路由器比電腦慢好多?youtube720p非常卡基本看不了. 電腦上就非常順暢.為什麼?

luckyfatpig commented 8 years ago

要看扫到的ip是否快(刚开始扫ip比较少,等ip多了会有好转),另外路由器的处理器比电脑的慢多了,连接时处理多个ip是有点转不过来,目前使用感觉就是有时1080p都没问题,有时慢得好像打不开一样

roc1010kmt notifications@github.com 於 2016年9月7日 週三 08:20 寫道:

@luckyfatpig https://github.com/luckyfatpig pyopenssl_16啟動不了出錯,pyopenssl_10可以啟動. 不知為什麼路由器比電腦慢好多?youtube720p非常卡基本看不了. 電腦上就非常順暢.為什麼?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/xyuanmu/XX-Mini/issues/99#issuecomment-245136939, or mute the thread https://github.com/notifications/unsubscribe-auth/AL1JCCKIJsr_DroXOQ3gMgyQOjacVIqMks5qngNIgaJpZM4JzfZ4 .

roc1010kmt commented 8 years ago

@luckyfatpig ip是電腦掃的,直接拷過去的.應該一樣.就是速度慢好多. 有時還會自動退出?xxnet你是放在usb還是路由器內存?

luckyfatpig commented 8 years ago

我用的wndr4300直接放路由上的

roc1010kmt notifications@github.com 於 2016年9月7日 週三 08:50 寫道:

@luckyfatpig https://github.com/luckyfatpig ip是電腦掃的,直接拷過去的.應該一樣.就是速度慢好多. 有時還會自動退出?xxnet你是放在usb還是路由器內存?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/xyuanmu/XX-Mini/issues/99#issuecomment-245141952, or mute the thread https://github.com/notifications/unsubscribe-auth/AL1JCNcaHrGKTfpy969YDr0ua35ayQpZks5qngpUgaJpZM4JzfZ4 .

jzp820927 commented 8 years ago

@roc1010kmt 建议更换树莓派,那硬件比电脑还流弊。