来源:https://blog.csdn.net/double_happy111/article/details/130508146
解决方法:
从报错来看是镜像仓库没有认证,不是安全的,可以通过 --allow-insecure-repositories
参数解决
以下为一般镜像仓库出问题的解决办法
-
检查源是否正确,检查源的地址是否正确,检查源的类型是否正确;
-
尝试更换源,更换源的方法可以参考Ubuntu官方文档;
-
尝试更换源的类型,比如从http更换为https;
-
尝试更换源的地址,比如从国内源更换为国外源;
-
尝试更换源的更新方式,比如从apt-get更换为
aptitude
; -
尝试更换源的更新模式,比如从自动更新模式更换为手动更新模式;
-
尝试使用apt-get clean命令清理缓存;
-
尝试使用
apt-get update --allow-insecure-repositories
命令允许更新不安全的源; -
尝试使用
apt-get update --allow-unauthenticated
命令允许更新不受信任的源; -
尝试使用
apt-get update --allow-unauthenticated --allow-insecure-repositories
命令允许更新不受信任和不安全的源; -
尝试使用
apt-get update --allow-unauthenticated --allow-insecure-repositories --allow-releaseinfo-change
命令允许更新不受信任、不安全和发行信息变更的源; -
尝试使用
apt-get update --allow-unauthenticated --allow-insecure-repositories --allow-releaseinfo-change --allow-downgrades
命令允许更新不受信任、不安全、发行信息变更和降级的源; -
尝试使用
apt-get update --allow-unauthenticated --allow-insecure-repositories --allow-releaseinfo-change --allow-downgrades --allow-change-held-packages
命令允许更新不受信任、不安全、发行信息变更、降级和更改已安装软件包的源。