【注意】apt 关闭 ssl 认证可能会引起软件安装风险,请尽量避免关闭。
执行以下命令可以实现全局关闭 sll 验证。
sh
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