This is my second day of the Gwen Challenge

To upgrade the reason

The Cloudscraper will remind you that some of cloudFare’s technologies cannot be bypassed if they are less than OpenSSL 1.1.1. Follow this tutorial and you’ll tread a lot less, because I already did, 😂😂😂.

1. Machine information

Ubuntu16 Server

2. Upgrade OpenSSL

Download openssl

wget https://www.openssl.org/source/ openssl - 1.1.1 k.t ar. Gz# This is the latest version so far this year
Copy the code

Unpack the installation

The tar - ZXVF openssl - 1.1.1 k.t ar. GzcdOpenssl - 1.1.1 k sudo. / config (-- prefix = / usr /local/ openSSL-1.1.1 k (optional) sudo make sudo make installCopy the code

Delete the old soft link

sudo rm /usr/bin/openssl
Copy the code

Creating a Software Connection

sudo ln -s /usr/local/bin/openssl /usr/bin/openssl
Copy the code

Check the information

Openssl: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory

Solutions:

1.1 /lib/x86_64-linux-gnu cp libcrypto. 1.1 /lib/x86_64-linux-gnuCopy the code

If you can’t see it yet, you need to:

sudo apt-get upgrade
Copy the code

3. Upgrade Python

Using newer python3.8 as the base version, prepare for installation:

sudo apt update
sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev wget
Copy the code

Download python

Wget HTTP: / / https://www.python.org/ftp/python/3.8.9/Python-3.8.9.tgzCopy the code

Unpack the installation

The tar xf Python - 3.8.9 TGZcdPython - 3.8.9. / configure -- with SSL - default - suites = Python prefix = / usr /local/ python3.8 - enable - optimizations -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- sudo make sudo make installCopy the code

Parameters of the tip

Not recognized option ‘–with-ssl’, not recognized option ‘–with-ssl’, not recognized option ‘–with-ssl’ You need to add the ==–enable-optimizations== parameter to compile as “official stable version”.

Department horse thief

Make prompt

Use the make command to begin the build process. Replace # 1 with the number of CPU cores on the system to speed up the build time, assuming my machine only has 1 CPU core, so I can use the make command with the -j 1 option:

make -j 1
Copy the code

Install the prompt

If you don’t want to use a standard installation (which overwrites the binaries of the system’s default Python version), you can do so if you don’t want to

sudo make altinstall
Copy the code

Delete the old soft link

rm -rf /usr/bin/python3
rm -rf /usr/local/ bin/python3 / python3.8Copy the code

Create a new soft connection

sudo ln -s /usr/local/ python3.8 / bin/python3.8 / usr/bin/python3Copy the code

Check the version

View python3 OpenSSL information

And we’re done

Possible problems:

Command ‘(‘lsb_release’, ‘-a’)

# by Laughing pudding
sudo cp  /usr/share/pyshared/lsb_release.py /usr/local/ python3.8 / lib/python3.8 /Copy the code