【注意】apt 关闭 ssl 认证可能会引起软件安装风险,请尽量避免关闭。
执行以下命令可以实现全局关闭 sll 验证。
echo 'Acquire::https::Verify-Peer "false";' >> /etc/apt/apt.conf.d/99disable-signature-verification
echo 'Acquire::https::Verify-Host "false";' >> /etc/apt/apt.conf.d/99disable-signature-verification
参考资料
-
How to make apt-get to ignore ca-certificate issue - cannot install gstreamer dev library [closed]
-
Is it possible to have APT accept an “invalid” certificate?