Debian 10(buster) 更換可用的國內軟件源

由於Debian 10(buster)還比較新,有很多源都使用不了,有的還連接不上,以下是親自試過可以使用的源,需要的小夥伴可以試試。

 

163源

 

# deb cdrom:[Debian GNU/Linux 10.2.0 _Buster_ - Official i386 NETINST 20191116-11:32]/ buster main

 

#deb cdrom:[Debian GNU/Linux 10.2.0 _Buster_ - Official i386 NETINST 20191116-11:32]/ buster main

 

deb http://mirrors.163.com/debian/ buster main

deb-src http://mirrors.163.com/debian/ buster main

 

deb http://security.debian.org/debian-security buster/updates main

deb-src http://security.debian.org/debian-security buster/updates main

 

# buster-updates, previously known as 'volatile'

deb http://mirrors.163.com/debian/ buster-updates main

deb-src http://mirrors.163.com/debian/ buster-updates main

 

# This system was installed using small removable media

# (e.g. netinst, live or single CD). The matching "deb cdrom"

# entries were disabled at the end of the installation process.

# For information about how to configure apt package sources,

# see the sources.list(5) manual.

 

 

 

 

阿里源

deb http://mirrors.aliyun.com/debian/ buster main non-free contrib

deb-src http://mirrors.aliyun.com/debian/ buster main non-free contrib

deb http://mirrors.aliyun.com/debian-security buster/updates main

deb-src http://mirrors.aliyun.com/debian-security buster/updates main

deb http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib

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

deb http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib

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

步驟:

  1. 備份/etc/apt/sources.list備份命令

cp /etc/apt/sources.list /etc/apt/sources.list.bak
2.在/etc/apt/sources.list文件刪除原文件所有內容,添加上面的條目。

注:/etc/apt/sources.list 是包管理工具 apt 所用的記錄軟件包倉庫位置的配置文件
其中,deb:檔案類型爲二進制預編譯軟件包,一般我們所用的檔案類型。
deb-src:檔案類型爲用於編譯二進制軟件包的源代碼

歡迎志趣相投的朋友一起學習交流! 
本人qq:906570770 
技術資料分享羣:272811256

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章