• ubuntu20.4执行apt-get update报错404 Not Found [IP: 185.125.190.36 80] 最佳解决方案


    尝试过更新很多源,比如aliyun的源,清华的源都不行,都会报404如:

    1. root@149e8cb9cd56:/usr/local/var/bin# apt-get update
    2. Ign:1 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal InRelease
    3. Ign:2 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-updates InRelease
    4. Ign:3 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-backports InRelease
    5. Err:4 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal Release
    6. Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 101.6.15.130 443]
    7. Err:5 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-updates Release
    8. Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 101.6.15.130 443]
    9. Err:6 https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-backports Release
    10. Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 101.6.15.130 443]
    11. Get:7 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
    12. Ign:8 http://security.ubuntu.com/ubuntu focal-security/restricted arm64 Packages
    13. Ign:9 http://security.ubuntu.com/ubuntu focal-security/multiverse arm64 Packages
    14. Ign:10 http://security.ubuntu.com/ubuntu focal-security/universe arm64 Packages
    15. Ign:11 http://security.ubuntu.com/ubuntu focal-security/main arm64 Packages
    16. Ign:8 http://security.ubuntu.com/ubuntu focal-security/restricted arm64 Packages
    17. Ign:9 http://security.ubuntu.com/ubuntu focal-security/multiverse arm64 Packages
    18. Ign:10 http://security.ubuntu.com/ubuntu focal-security/universe arm64 Packages
    19. Ign:11 http://security.ubuntu.com/ubuntu focal-security/main arm64 Packages
    20. Ign:8 http://security.ubuntu.com/ubuntu focal-security/restricted arm64 Packages
    21. Ign:9 http://security.ubuntu.com/ubuntu focal-security/multiverse arm64 Packages
    22. Ign:10 http://security.ubuntu.com/ubuntu focal-security/universe arm64 Packages
    23. Ign:11 http://security.ubuntu.com/ubuntu focal-security/main arm64 Packages
    24. Ign:8 http://security.ubuntu.com/ubuntu focal-security/restricted arm64 Packages
    25. Ign:9 http://security.ubuntu.com/ubuntu focal-security/multiverse arm64 Packages
    26. Ign:10 http://security.ubuntu.com/ubuntu focal-security/universe arm64 Packages
    27. Ign:11 http://security.ubuntu.com/ubuntu focal-security/main arm64 Packages
    28. Ign:8 http://security.ubuntu.com/ubuntu focal-security/restricted arm64 Packages
    29. Ign:9 http://security.ubuntu.com/ubuntu focal-security/multiverse arm64 Packages
    30. Ign:10 http://security.ubuntu.com/ubuntu focal-security/universe arm64 Packages
    31. Ign:11 http://security.ubuntu.com/ubuntu focal-security/main arm64 Packages
    32. Err:8 http://security.ubuntu.com/ubuntu focal-security/restricted arm64 Packages
    33. 404 Not Found [IP: 91.189.91.83 80]
    34. Ign:9 http://security.ubuntu.com/ubuntu focal-security/multiverse arm64 Packages

    解决方案

    运行下面命令

    mv /etc/apt/sources.list /etc/apt/sources.list.back

    echo deb http://old-releases.ubuntu.com/ubuntu/ groovy main restricted > /etc/apt/sources.list
    echo deb http://old-releases.ubuntu.com/ubuntu/ groovy multiverse universe >> /etc/apt/sources.list
    echo deb http://old-releases.ubuntu.com/ubuntu/ groovy-updates main restricted >> /etc/apt/sources.list
    echo deb http://old-releases.ubuntu.com/ubuntu/ groovy-updates multiverse universe >> /etc/apt/sources.list
    echo deb http://old-releases.ubuntu.com/ubuntu/ groovy-backports main restricted >> /etc/apt/sources.list
    echo deb http://old-releases.ubuntu.com/ubuntu/ groovy-backports multiverse universe >> /etc/apt/sources.list
    echo deb http://old-releases.ubuntu.com/ubuntu/ groovy-security main restricted >> /etc/apt/sources.list
    echo deb http://old-releases.ubuntu.com/ubuntu/ groovy-security multiverse universe >> /etc/apt/sources.list

    再执行

    apt-get update

    apt-get upgrade

    就可以了

  • 相关阅读:
    Lim接口测试平台开展自动化的优势
    三维模型文件以及obj、ply格式文件生成pcd点云文件
    【小海实习日记】金融-现货以及合约理解
    猿创征文|DEM分析分层重分类
    我用python分析买房数据
    代码随想录算法训练营Day55|动态规划13
    【JavaScript面试】map()方法
    numpy教程:Universal Functions 通用函数 伪随机数
    PHP 如何设计一个高安全的电商平台:淘宝/京东商品类API封装接口
    第二十六章CSS3基础
  • 原文地址:https://blog.csdn.net/kingch_ban/article/details/133254458