ubuntu update 失败

创建日期: 2024-09-06 18:25 | 作者: 风波 | 浏览次数: 10 | 分类: OS

来源:https://blog.csdn.net/double_happy111/article/details/130508146

解决方法:

从报错来看是镜像仓库没有认证,不是安全的,可以通过 --allow-insecure-repositories 参数解决

以下为一般镜像仓库出问题的解决办法

  1. 检查源是否正确,检查源的地址是否正确,检查源的类型是否正确;

  2. 尝试更换源,更换源的方法可以参考Ubuntu官方文档;

  3. 尝试更换源的类型,比如从http更换为https;

  4. 尝试更换源的地址,比如从国内源更换为国外源;

  5. 尝试更换源的更新方式,比如从apt-get更换为aptitude

  6. 尝试更换源的更新模式,比如从自动更新模式更换为手动更新模式;

  7. 尝试使用apt-get clean命令清理缓存;

  8. 尝试使用apt-get update --allow-insecure-repositories命令允许更新不安全的源;

  9. 尝试使用apt-get update --allow-unauthenticated命令允许更新不受信任的源;

  10. 尝试使用apt-get update --allow-unauthenticated --allow-insecure-repositories命令允许更新不受信任和不安全的源;

  11. 尝试使用apt-get update --allow-unauthenticated --allow-insecure-repositories --allow-releaseinfo-change命令允许更新不受信任、不安全和发行信息变更的源;

  12. 尝试使用apt-get update --allow-unauthenticated --allow-insecure-repositories --allow-releaseinfo-change --allow-downgrades命令允许更新不受信任、不安全、发行信息变更和降级的源;

  13. 尝试使用apt-get update --allow-unauthenticated --allow-insecure-repositories --allow-releaseinfo-change --allow-downgrades --allow-change-held-packages命令允许更新不受信任、不安全、发行信息变更、降级和更改已安装软件包的源。

10 浏览
0 评论