CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
First Sync the System Time
Input the command in shell
date
If the displayed time is different from your local time, set the time zone first
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
Change the apt-get Source
For development boards, do not randomly change the official source. The root cause of the problem above is that HTTPS is not supported, so first change all sources to HTTP
Backup the original file
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
Edit the source address list file
sudo vim /etc/apt/sources.list
Change all to HTTP
Update the System
apt-get update
------------------------
Other later issues, install certificates
First, install make
$sudo apt-get update $sudo apt-get install ubuntu-make
wget cannot download files from HTTPS links, add parameters --no-cookie --no-check-certificate
wget --no-cookie --no-check-certificate https://address
Install openssl
$wget --no-cookie --no-check-certificate https://www.openssl.org/source/openssl-1.1.0g.tar.gz $tar -xzvg openssl-1.1.0g.tar.gz $cd openssl-1.1.0g $./config #Default installation path /usr/local/ssl $make $sudo make install #Create soft link $sudo ln -s /usr/local/lib/libssl.so.1.1 /usr/lib/libssl.so.1.1 $sudo ln -s /usr/local/lib/libcrypto.so.1.1 /usr/lib/libcrypto.so.1.1$openssl version #Check version
curl supports HTTPS
$wget wget --no-cookie --no-check-certificate https://curl.haxx.se/download/curl-7.55.1.tar.gz $tar -xzvf curl-7.55.1.tar.gz $cd curl-7.55.1 $./configure -with-ssh=/usr/local/ssl $make $sudo make install $curl -V #Check version
文章评论