ubuntu update报错 No system certificates available. Try installing ca-certificates.

1.先用原本的仓库安装 ca-certificates (若先换了源, 就会找不到安装包):

apt-get update
apt-get -y install ca-certificates

2.然后再换源和更新:

sed -i "s@http://.*archive.ubuntu.com@https://mirrors.tuna.tsinghua.edu.cn@g" /etc/apt/sources.list
sed -i "s@http://.*security.ubuntu.com@https://mirrors.tuna.tsinghua.edu.cn@g" /etc/apt/sources.list
apt-get update

你可能感兴趣的:(ubuntu,linux,运维)