Debian 9 Stretch国内常用镜像源

本文提供了Debian系统中更换软件源的方法及多个国内镜像站点的详细列表,帮助用户提高软件包下载速度。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1.使用说明

一般情况下,修改/etc/apt/sources.list文件,将Debian的默认源地址改成新的地址即可,比如将http://deb.debian.org改成https://mirrors.xxx.com,可使用以下命令:

sed -i “s@http://deb.debian.org@https://mirrors.xxx.com@g” /etc/apt/sources.list
若要使用https源,则需要执行apt-get install apt-transport-https,再执行apt-get update更新索引。

2.常用站点列表
163镜像站

deb http://mirrors.163.com/debian/ stretch main non-free contrib
deb http://mirrors.163.com/debian/ stretch-updates main non-free contrib
deb http://mirrors.163.com/debian/ stretch-backports main non-free contrib
deb-src http://mirrors.163.com/debian/ stretch main non-free contrib
deb-src http://mirrors.163.com/debian/ stretch-updates main non-free contrib
deb-src http://mirrors.163.com/debian/ stretch-backports main non-free contrib
deb http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib
deb-src http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib

中科大镜像站

deb https://mirrors.ustc.edu.cn/debian/ stretch main contrib non-free
deb-src https://mirrors.ustc.edu.cn/debian/ stretch main contrib non-free

deb https://mirrors.ustc.edu.cn/debian/ stretch-updates main contrib non-free
deb-src https://mirrors.ustc.edu.cn/debian/ stretch-updates main contrib non-free

deb https://mirrors.ustc.edu.cn/debian/ stretch-backports main contrib non-free
deb-src https://mirrors.ustc.edu.cn/debian/ stretch-backports main contrib non-free

deb https://mirrors.ustc.edu.cn/debian-security/ stretch/updates main contrib non-free
deb-src https://mirrors.ustc.edu.cn/debian-security/ stretch/updates main contrib non-free

阿里云镜像站

deb http://mirrors.aliyun.com/debian/ stretch main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ stretch main non-free contrib
deb http://mirrors.aliyun.com/debian-security stretch/updates main
deb-src http://mirrors.aliyun.com/debian-security stretch/updates main
deb http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib
deb http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib

华为镜像站

deb https://mirrors.huaweicloud.com/debian/ stretch main contrib non-free
deb-src https://mirrors.huaweicloud.com/debian/ stretch main contrib non-free
deb https://mirrors.huaweicloud.com/debian/ stretch-updates main contrib non-free
deb-src https://mirrors.huaweicloud.com/debian/ stretch-updates main contrib non-free
deb https://mirrors.huaweicloud.com/debian/ stretch-backports main contrib non-free
deb-src https://mirrors.huaweicloud.com/debian/ stretch-backports main contrib non-free 

清华大学镜像站

deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-updates main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-updates main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-backports main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-backports main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security/ stretch/updates main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security/ stretch/updates main contrib non-free

兰州大学镜像站

deb http://mirror.lzu.edu.cn/debian stable main contrib non-free
deb-src http://mirror.lzu.edu.cn/debian stable main contrib non-free
deb http://mirror.lzu.edu.cn/debian stable-updates main contrib non-free
deb-src http://mirror.lzu.edu.cn/debian stable-updates main contrib non-free
deb http://mirror.lzu.edu.cn/debian/ stretch-backports main contrib non-free
deb-src http://mirror.lzu.edu.cn/debian/ stretch-backports main contrib non-free
deb http://mirror.lzu.edu.cn/debian-security/ stretch/updates main contrib non-free
deb-src http://mirror.lzu.edu.cn/debian-security/ stretch/updates main contrib non-free

上海交大镜像站

deb https://mirror.sjtu.edu.cn/debian/ stretch main contrib non-free
deb-src https://mirror.sjtu.edu.cn/debian/ stretch main contrib non-free
deb https://mirror.sjtu.edu.cn/debian/ stretch-updates main contrib non-free
deb-src https://mirror.sjtu.edu.cn/debian/ stretch-updates main contrib non-free
deb https://mirror.sjtu.edu.cn/debian/ stretch-backports main contrib non-free
deb-src https://mirror.sjtu.edu.cn/debian/ stretch-backports main contrib non-free
deb https://mirror.sjtu.edu.cn/debian-security/ stretch/updates main contrib non-free
deb-src https://mirror.sjtu.edu.cn/debian-security/ stretch/updates main contrib non-free
### 在 VMware 中安装 Debian 9 操作系统 #### 准备工作 为了顺利在 VMware 中安装 Debian 9 操作系统,需要完成以下准备工作: - **获取 VMware 软件**:确保已经安装并配置好 VMware Workstation 或 Player 版本。如果尚未安装,请参照相关文档进行设置[^2]。 - **下载 Debian 9 镜像文件**: 访问 Debian 官方网站或可信镜像站点下载适用于 Debian 9 的 ISO 文件。推荐访问官方资源页面以获得最稳定可靠的发行版。对于特定版本的需求,可以前往历史存档部分查找 Debian 9 (Stretch) 的映像链接[^4]。 #### 创建新的虚拟机 启动 VMware 后按照提示创建一个新的虚拟机实例: 1. **选择自定义安装选项** 当被询问关于操作系统类型时,指定 Linux 类型下的 Debian GNU/Linux 版本号接近于目标版本的选择项(尽管可能没有精确匹配的 Debian 9)。这有助于 VMware 正确识别所需硬件兼容性和驱动程序支持[^3]。 2. **分配磁盘空间与内存大小** 根据实际需求合理规划硬盘容量以及 RAM 大小。建议至少提供 8 GB 的存储空间和 2 GB 的物理内存给该虚拟环境来保障流畅运行[^1]。 #### 开始安装过程 加载已准备好的 Debian 9 ISO 映像作为光驱介质,并重启虚拟机进入安装界面: - **初始化引导菜单** 选择语言、地区等基本信息后继续前进至分区环节。可以选择手动调整分区布局或者采用默认全自动模式简化操作流程[^5]。 - **网络配置** 设置主机名、域名解析服务器地址以及其他联网参数以便后续能够正常上网更新软件包库。 - **账户设定** 建立 root 密码及普通用户的个人信息记录下来用于登录验证用途。 #### 完成后的初步设置 成功完成上述步骤之后将会自动重启进入到全新的 Debian 9 系统环境中: - **更新源列表** 编辑 `/etc/apt/sources.list` 文件引入国内高校或其他快速稳定的 APT 源提高下载速度效率。例如中科大提供的 mirror 可供选用: ```bash deb http://mirrors.ustc.edu.cn/debian stretch main contrib non-free ``` - **升级现有组件** 使用 `apt-get update && apt-get upgrade -y` 命令同步最新的安全补丁和其他改进内容保持系统的健壮性。 - **安装常用工具集** 如有需要可以通过命令行批量部署开发环境所需的依赖关系或是图形化桌面管理器增强用户体验感。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值