• 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

    就可以了

  • 相关阅读:
    Linux期末复习总结
    Count( ? ) 效率的比较
    SAE-J1939-21 (超8字节)多包数据----CAN传输协议
    docker快速搭建部署mqtt
    虚拟存储器
    WebAssembly上手:基础指南
    express中间件next函数在作用
    GBase8s jdbc开启oracle兼容模式说明
    一、CSS定位布局[相对定位、绝对定位、固定定位]
    【Redis】通用命令
  • 原文地址:https://blog.csdn.net/kingch_ban/article/details/133254458