[英]Error by trying installing docker repository on linux ubuntu 18.04 LTS
抱歉语言是德语。
所以我添加了docker的存储库:
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
但是当我更新源时出现错误:
sudo apt-get update
Ign:3 https://download.docker.com/linux/ubuntu仿生 InRelease
Fehl:4 https://download.docker.com/linux/ubuntu仿生发布
证书验证失败:证书不受信任。 证书颁发者未知。 无法握手:证书验证出错。 [IP:54.230.93.95 443]Holen:5 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74,6 kB]
OK:6 http://archive.ubuntu.com/ubuntu bionic-security InRelease
Paketlisten werden gelesen... Fertig E: Das Depot » https://download.docker.com/linux/ubuntu仿生发布« enthält keine Release-Datei。
N: Eine Aktualisierung von solch einem Depot kann nicht auf eine sichere Art durchgeführt werden, daher ist es standardmäßig deaktiviert。
N: Weitere Details zur Erzeugung von Paketdepots sowie zu deren Benutzerkonfiguration finden Sie in der Handbuchseite apt-secure(8)。
对于那些仍然有这个问题的人,这是我从Ubuntu 联机帮助页中收集的一个解决方案。
OP 的帖子表明证书验证错误:
Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 54.230.93.95 443]
我在位于公司代理后面的 VM 上遇到了类似的问题。 代理充当中间人,在流量流经代理时对其进行解密和重新加密。 即使我在 VM 上为代理安装了受信任的证书,但由于 OCSP 响应无效,此错误仍在发生。 为了修复它,我运行了这个命令:
touch /etc/apt/apt.conf.d/99verify-peer.conf \
&& echo >>/etc/apt/apt.conf.d/99verify-peer.conf "Acquire { https::Verify-Peer false }"
这会禁用 apt 的 OCSP 验证,不推荐使用。
我选择了不同的解决方案,其他人可能无法使用该解决方案。 我们公司为这样的用例维护了一个非解密代理,所以我改用它了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.