赛尔校园公共服务平台 Logo
平台使用
阿里云
百度云
移动云
智算服务
教育生态
登录 →
赛尔校园公共服务平台 Logo
平台使用 阿里云 百度云 移动云 智算服务 教育生态
登录
  1. 首页
  2. 阿里云
  3. 云服务器 ECS
  4. 操作指南
  5. 镜像
  6. 操作系统维护周期和EOL应对方案
  7. Debian 910 EOL如何切换源?

Debian 910 EOL如何切换源?

  • 操作系统维护周期和EOL应对方案
  • 发布于 2025-04-01
  • 0 次阅读
文档编辑
文档编辑

Debian 9/10操作系统版本结束生命周期(EOL)后,Linux社区不再维护该操作系统版本。建议您升级操作系统至Debian 11及以上,如果您的业务过渡期仍需要使用Debian 9/10系统中的一些安装包,请先根据本文操作切换源地址。

背景信息

您可以通过下文的操作步骤,在Debian 9/10操作系统的ECS实例中将源配置按照网络环境不同进行切换。

  • 专有网络VPC类型实例需切换为http://mirrors.cloud.aliyuncs.com/debian-archive/debian源。

  • 经典网络类型实例需切换为http://mirrors.aliyuncs.com/debian-archive/debian源。

重要

本文主要说明ECS实例中的相关操作与配置,如果您的服务器不是ECS实例,需保证服务器具有公网访问能力,请将源地址http://mirrors.cloud.aliyuncs.com替换为http://mirrors.aliyun.com。

操作步骤

  1. 登录Debian 9/10系统的ECS实例。

    具体操作,请参见使用Workbench工具以SSH协议登录Linux实例。

  2. 运行以下命令编辑sources.list文件。

    sudo vim /etc/apt/sources.list
  3. 按i键进入编辑模式,修改以下内容切换源。

    请根据实例不同的网络类型进行修改,具体内容如下:

    专有网络VPC类型实例

    • Debian 9

      deb http://mirrors.cloud.aliyuncs.com/debian-archive/debian stretch main contrib non-free
      deb http://mirrors.cloud.aliyuncs.com/debian-archive/debian-security stretch/updates main contrib non-free
      deb-src http://mirrors.cloud.aliyuncs.com/debian-archive/debian stretch main contrib non-free
      deb-src http://mirrors.cloud.aliyuncs.com/debian-archive/debian-security stretch/updates main contrib non-free
    • Debian 10

      deb http://mirrors.cloud.aliyuncs.com/debian-archive/debian/ buster main non-free contrib
      deb http://mirrors.cloud.aliyuncs.com/debian-security buster/updates main
      deb http://mirrors.cloud.aliyuncs.com/debian-archive/debian/ buster-updates main non-free contrib
      deb-src http://mirrors.cloud.aliyuncs.com/debian-archive/debian/ buster main non-free contrib
      deb-src http://mirrors.cloud.aliyuncs.com/debian-security buster/updates main
      deb-src http://mirrors.cloud.aliyuncs.com/debian-archive/debian/ buster-updates main non-free contrib

    经典网络类型实例

    • Debian 9

      deb http://mirrors.aliyuncs.com/debian-archive/debian stretch main contrib non-free
      deb http://mirrors.aliyuncs.com/debian-archive/debian-security stretch/updates main contrib non-free
      deb-src http://mirrors.aliyuncs.com/debian-archive/debian stretch main contrib non-free
      deb-src http://mirrors.aliyuncs.com/debian-archive/debian-security stretch/updates main contrib non-free
    • Debian 10

      deb http://mirrors.aliyuncs.com/debian-archive/debian/ buster main non-free contrib
      deb http://mirrors.aliyuncs.com/debian-security buster/updates main
      deb http://mirrors.aliyuncs.com/debian-archive/debian/ buster-updates main non-free contrib
      deb-src http://mirrors.aliyuncs.com/debian-archive/debian/ buster main non-free contrib
      deb-src http://mirrors.aliyuncs.com/debian-security buster/updates main
      deb-src http://mirrors.aliyuncs.com/debian-archive/debian/ buster-updates main non-free contrib
  4. 编辑完成后,按Esc键,并输入:wq保存退出文件。

  5. 运行以下命令更新源缓存。

    sudo apt update

源切换完成后,即可使用sudo apt install命令在实例上安装您所需要的软件包。

相关操作

使用自定义镜像创建新的ECS实例,在启动实例时cloud-init会自动初始化系统的源配置。如果您后续需要通过已切换源的ECS实例创建自定义镜像,并且需要保留已切换的源配置,需要您在创建自定义镜像前,按照以下操作在已切换源的ECS实例中修改cloud-init的配置文件/etc/cloud/cloud.cfg。

  1. 运行以下命令编辑/etc/cloud/cloud.cfg文件。

    sudo vim /etc/cloud/cloud.cfg
  2. 按i进入编辑模式,使用#注释掉cloud_init_modules:下的- source-address模块。

    注释后,文件内的配置信息如下所示:cloudinit

  3. 编辑完成后,按Esc键,并输入:wq保存退出文件。

相关文档

Debian操作系统生命周期信息,请参见操作系统维护周期。

相关文章

CentOS 6 EOL如何切换源? 2025-04-01 12:00

CentOS 6操作系统版本结束了生命周期(EOL),Linux社区已不再维护该操作系统版本。建议您升级操作系统至CentOS 7及以上,如果您的业务过渡期仍需要使用CentOS 6系统中的一些安装包,请根据下文切换CentOS 6的源。 背景信息

CentOS 7安全更新订阅 2025-04-01 12:00

CentOS 7已于2024年6月30日停止维护(EOL),阿里云也已同步停止了对CentOS 7的支持。继续使用EOL镜像将无法及时修复安全漏洞和错误,增加业务安全风险,阿里云建议您尽快替换到其他操作系统。如果您短期内确实无法完成替换,请订阅阿里云的CentOS 7安全更新,以保障您的系统安全。

CentOS 8 EOL如何切换源? 2025-04-01 12:00

CentOS 8操作系统版本结束了生命周期(EOL),Linux社区已不再维护该操作系统版本。建议您切换到Anolis或Alinux。如果您的业务过渡期仍需要使用CentOS 8系统中的一些安装包,请根据下文切换CentOS 8的源。 背景信息

Debian 910 EOL如何切换源? 2025-04-01 12:00

Debian 9/10操作系统版本结束生命周期(EOL)后,Linux社区不再维护该操作系统版本。建议您升级操作系统至Debian 11及以上,如果您的业务过渡期仍需要使用Debian 9/10系统中的一些安装包,请先根据本文操作切换源地址。 背景信息

Red Hat Enterprise Linux升级 2025-04-01 12:00

本文介绍如何在ECS实例上将Red Hat Enterprise Linux(RHEL)7升级为RHEL 8或将RHEL 8升级为RHEL 9。 RHEL 7升级为RHEL 8 2024年06月30日后,RHEL 7从维护支持(Maintenance Support)阶段过渡到延长生命周期(Exte

Alibaba Cloud Linux操作系统 2025-04-01 12:00

本文将详细介绍Alibaba Cloud Linux的生命周期阶段,以及可以采取哪些方案来应对Alibaba Cloud Linux 2进入延长支持阶段的风险。 Alibaba Cloud Linux生命周期概述 Alibaba Cloud Linux是阿里云研发的稳定、安全、高性能的服务器操作系统

目录
Copyright © 2025 your company All Rights Reserved. Powered by 赛尔网络.
京ICP备14022346号-15
gongan beian 京公网安备11010802041014号