Issues Encountered in Updating the System, Installing Software, and Downloading Resources on Embedded Development Boards with Linux

2019年12月15日 4275点热度 0人点赞 1条评论
内容目录
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

 

痴者工良

高级程序员劝退师

文章评论