View Single Post
Old 08-04-2021, 08:46 PM   #1
Dan__
Zealot
Dan__ began at the beginning.
 
Posts: 109
Karma: 10
Join Date: Feb 2011
Device: Nook - Simple Touch
Linux install not working

I apologize in advance for lacking sufficient linux experience.
I've been unable to resolve this error:

Python 3.9.6 (default, Aug 4 2021, 16:40:08)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import _ssl
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named '_ssl'

and when I try the install it says:

essin:~/Downloads/Python-3.9.6$ sudo -v && wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sudo sh /dev/stdin
Using python executable: /usr/local/bin/python3
2021-08-04 17:33:38 URL:https://download.calibre-ebook.com/linux-installer.sh [31922/31922] -> "-" [1]
Installing to /opt/calibre
Downloading tarball signature securely...
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "<string>", line 800, in script_launch
File "<string>", line 756, in main
File "<string>", line 699, in run_installer
File "<string>", line 669, in download_and_extract
File "<string>", line 657, in get_tarball_info
File "<string>", line 609, in get_https_resource_securely
File "<string>", line 511, in __init__
File "/usr/local/lib/python3.9/ssl.py", line 737, in create_default_context
context = SSLContext(PROTOCOL_TLS)
File "/usr/local/lib/python3.9/ssl.py", line 483, in __new__
self = _SSLContext.__new__(cls, protocol)
ssl.SSLError: ('No cipher can be selected.',)

I have installed openssl and python was built with this option:
--with-ssl-default-suites

I have exhausted the possibilities that I am aware of.

I would appreciate your help.
Thank you,
Dan

Background environment:
essin:~/Downloads/Python-3.9.6$ python -V
Python 3.9.6

essin:~/$ uname -a
Linux 5.4.0-80-generic (xubuntu)

essin:~/Downloads/Python-3.9.6$ openssl ciphers
TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA25 6:TLS_AES_128_GCM_SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384HE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305HE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256HE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384HE-RSA-AES256-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256HE-RSA-AES128-SHA256:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHAHE-RSA-AES256-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES128-SHAHE-RSA-AES128-SHA:RSA-PSK-AES256-GCM-SHA384HE-PSK-AES256-GCM-SHA384:RSA-PSK-CHACHA20-POLY1305HE-PSK-CHACHA20-POLY1305:ECDHE-PSK-CHACHA20-POLY1305:AES256-GCM-SHA384:PSK-AES256-GCM-SHA384:PSK-CHACHA20-POLY1305:RSA-PSK-AES128-GCM-SHA256HE-PSK-AES128-GCM-SHA256:AES128-GCM-SHA256:PSK-AES128-GCM-SHA256:AES256-SHA256:AES128-SHA256:ECDHE-PSK-AES256-CBC-SHA384:ECDHE-PSK-AES256-CBC-SHA:SRP-RSA-AES-256-CBC-SHA:SRP-AES-256-CBC-SHA:RSA-PSK-AES256-CBC-SHA384HE-PSK-AES256-CBC-SHA384:RSA-PSK-AES256-CBC-SHAHE-PSK-AES256-CBC-SHA:AES256-SHA:PSK-AES256-CBC-SHA384:PSK-AES256-CBC-SHA:ECDHE-PSK-AES128-CBC-SHA256:ECDHE-PSK-AES128-CBC-SHA:SRP-RSA-AES-128-CBC-SHA:SRP-AES-128-CBC-SHA:RSA-PSK-AES128-CBC-SHA256HE-PSK-AES128-CBC-SHA256:RSA-PSK-AES128-CBC-SHAHE-PSK-AES128-CBC-SHA:AES128-SHA:PSK-AES128-CBC-SHA256:PSK-AES128-CBC-SHA
Dan__ is offline   Reply With Quote