尝试使用本页中的说明在Linux上安装Calibre,PDF转换器时:
http://calibre-ebook.com/download_linux
我收到此错误:
# python linux-installer.py
Installing to /opt/calibre
Downloading tarball signature securely...
Traceback (most recent call last):
File "linux-installer.py", line 669, in <module>
main()
File "linux-installer.py", line 648, in main
download_and_extract(destdir)
File "linux-installer.py", line 620, in download_and_extract
get_tarball_info()
File "linux-installer.py", line 612, in get_tarball_info
('x86_64' if is64bit else 'i686'))
File "linux-installer.py", line 576, in get_https_resource_securely
c.connect() # This is needed for proxy connections
File "linux-installer.py", line 500, in connect
self.sock = ssl.wrap_socket(sock, cert_reqs=ssl.CERT_REQUIRED, ca_certs=self.cert_file, ssl_version=self.calibre_ssl_version)
File "/export/home/jm43436/build/anaconda/lib/python2.7/ssl.py", line 387, in wrap_socket
ciphers=ciphers)
File "/export/home/jm43436/build/anaconda/lib/python2.7/ssl.py", line 143, in __init__
self.do_handshake()
File "/export/home/jm43436/build/anaconda/lib/python2.7/ssl.py", line 305, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [Errno 1] _ssl.c:507: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
我尝试了--no-check-certificate方法,但没有区别。
答案 0 :(得分:0)
向下滚动该页面,第一个要点:
sudo -v &&
wget --no-check-certificate -nv -O- https://raw.githubusercontent.com/kovidgoyal/calibre/master/setup/linux-installer.py |
sudo python -c "import sys; main=lambda:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main()"