出自https://www.isfirst.net/yunwei/debian10-buster-sources
今天安装了个debian10,发现网上包括各大镜像网站提供的源地址都有点问题,经测试,Debian 10(buster)可用的国内软件源如下:
Debian10阿里云源(官方文档并没有更新,这里帮官方更新了一下):
deb http://mirrors.aliyun.com/debian/ buster main non-free contribdeb-src http://mirrors.aliyun.com/debian/ buster main non-free contribdeb http://mirrors.aliyun.com/debian-security buster/updates maindeb-src http://mirrors.aliyun.com/debian-security buster/updates maindeb http://mirrors.aliyun.com/debian/ buster-updates main non-free contribdeb-src http://mirrors.aliyun.com/debian/ buster-updates main non-free contribdeb http://mirrors.aliyun.com/debian/ buster-backports main non-free contribdeb-src http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib
Debian10网易163源:
deb http://mirrors.163.com/debian/ buster main non-free contribdeb http://mirrors.163.com/debian/ buster-updates main non-free contribdeb http://mirrors.163.com/debian/ buster-backports main non-free contribdeb-src http://mirrors.163.com/debian/ buster main non-free contribdeb-src http://mirrors.163.com/debian/ buster-updates main non-free contribdeb-src http://mirrors.163.com/debian/ buster-backports main non-free contribdeb http://mirrors.163.com/debian-security/ buster/updates main non-free contribdeb-src http://mirrors.163.com/debian-security/ buster/updates main non-free contrib
备份/etc/apt/sources.list
#备份
cp /etc/apt/sources.list /etc/apt/sources.list.bak
在/etc/apt/sources.list文件,注释原文件所有内容,前面添加上面的条目。
/etc/apt/sources.list 是包管理工具 apt 所用的记录软件包仓库位置的配置文件
其中,deb:档案类型为二进制预编译软件包,一般我们所用的档案类型。
deb-src:档案类型为用于编译二进制软件包的源代码