• Debian 9 Stretch APT问题


    Debian 9 Stretch APT问题

    flyfish

    操作系统

    Debian 9 Stretch

    错误提示

    使用sudo apt update错误提示

    Ign:1 http://mirrors.aliyun.com/debian stretch InRelease
    Ign:2 http://mirrors.aliyun.com/debian-security stretch/updates InRelease
    Ign:3 http://mirrors.aliyun.com/debian stretch-updates InRelease
    Ign:4 http://mirrors.aliyun.com/debian stretch-backports InRelease
    Err:5 http://mirrors.aliyun.com/debian stretch Release
      404  Not Found [IP: 211.93.250.32 80]
    Err:6 http://mirrors.aliyun.com/debian-security stretch/updates Release
      404  Not Found [IP: 211.93.250.32 80]
    Err:7 http://mirrors.aliyun.com/debian stretch-updates Release
      404  Not Found [IP: 211.93.250.32 80]
    Err:8 http://mirrors.aliyun.com/debian stretch-backports Release
      404  Not Found [IP: 211.93.250.32 80]
    Reading package lists... Done
    E: The repository 'http://mirrors.aliyun.com/debian stretch Release' does not have a Release file.
    N: Updating from such a repository can't be done securely, and is therefore disabled by default.
    N: See apt-secure(8) manpage for repository creation and user configuration details.
    E: The repository 'http://mirrors.aliyun.com/debian-security stretch/updates Release' does not have a Release file.
    N: Updating from such a repository can't be done securely, and is therefore disabled by default.
    N: See apt-secure(8) manpage for repository creation and user configuration details.
    E: The repository 'http://mirrors.aliyun.com/debian stretch-updates Release' does not have a Release file.
    N: Updating from such a repository can't be done securely, and is therefore disabled by default.
    N: See apt-secure(8) manpage for repository creation and user configuration details.
    E: The repository 'http://mirrors.aliyun.com/debian stretch-backports Release' does not have a Release file.
    N: Updating from such a repository can't be done securely, and is therefore disabled by default.
    N: See apt-secure(8) manpage for repository creation and user configuration details.
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25

    错误原因

    Debian 9 Stretch 生命周期结束

    解决方法

    如果您需要访问 Debian 的一个旧发行版,您可以在 Debian 归档中找到它们

    如果您正在使用 APT,则相关的 sources.list 条目如下所示

    deb http://archive.debian.org/debian/ hamm contrib main non-free
    或者
    deb http://archive.debian.org/debian/ bo bo-unstable contrib main non-free
    
    • 1
    • 2
    • 3

    所以/etc/apt/sources.list正确的写法如下

    deb http://archive.debian.org/debian/ stretch main contrib non-free
    deb-src http://archive.debian.org/debian/ stretch main contrib non-free
    deb http://archive.debian.org/debian-security/ stretch/updates main contrib non-free
    deb-src http://archive.debian.org/debian-security/ stretch/updates main contrib non-free
    deb http://archive.debian.org/debian/ stretch-backports main contrib non-free
    
    • 1
    • 2
    • 3
    • 4
    • 5

    参考地址

    https://www.debian.org/distrib/archive.en.html

  • 相关阅读:
    C# String转DateTime
    安装与卸载MySQL的详细步骤
    Hexagon_V65_Programmers_Reference_Manual(14)
    Unity ToLua热更框架使用教程(1)
    java计算机毕业设计疫情下发热门诊管理系统源码+系统+mysql数据库+lw文档+部署
    什么是原型链(prototype chain)?如何实现继承?
    javascript_forEach踩坑
    【Linux】 ubuntu内存清理
    HUAWEI路由器DHCP+H3C路由器DHCP+锐捷路由器DHCP综合配置
    java开发的正常开发步骤和进度总结
  • 原文地址:https://blog.csdn.net/flyfish1986/article/details/134305023