内容纲要
CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
先同步系统时间
shell 输入命令
date
如果显示的时间跟你本地时间不一样,先设置时区
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
更改 apt-get 源
对于开发板来说,千万别乱改官方源,上面问题的根源是不支持https,所以先把源都改成http
原文件备份
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
编辑源地址列表文件
sudo vim /etc/apt/sources.list
都改成http
更新系统
apt-get update
其他后期问题,安装证书
先安装 make
$sudo apt-get update $sudo apt-get install ubuntu-make
wget 无法下载https链接的文件,加上 参数 –no-cookie –no-check-certificate
wget --no-cookie --no-check-certificate https://地址
安装 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 #默认安装路径/usr/local/ssl $make $sudo make install #创建软连接 $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 #查看版本
curl 支持 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 #查看版本
I happen to be writing to make you understand what a wonderful experience our princess went through visiting yuor web blog. She realized too many things, with the inclusion of what it is like to possess an incredible teaching style to make the rest without problems understand various very confusing topics. You undoubtedly surpassed visitors' expected results. Thanks for supplying those warm and helpful, trustworthy, revealing not to mention unique tips on your topic to Tanya.