為您提供行業(yè)資訊、活動(dòng)公告、產(chǎn)品發(fā)布,匯聚最前沿流行的云計算技術(shù)
debian系統更換軟件源鏡像提高國內下載速度呢?使用國內小眾云主機經(jīng)常會(huì )遇到的問(wèn)題,下載更新軟件速度慢。如果預裝系統沒(méi)有根據位置選擇合適軟件源鏡像,建議手動(dòng)修改 debian 軟件源鏡像以加快速度。所以,Debian使用國外鏡像源,在國內使用會(huì )造成更新軟件慢或者找不到等問(wèn)題,裝完系統,應對軟件源進(jìn)行設置,改為國內源,下載速度就變快。本文將指導新手用戶(hù)更換軟件源,希望對用戶(hù)有所幫助。
國內debian軟件源鏡像
列出幾個(gè)常用國內 Debian軟件源鏡像。點(diǎn)此可查看完整鏡像節點(diǎn)。
鏡像節點(diǎn) | 鏡像地址 |
---|---|
Debian | http://ftp.cn.debian.org/debian/ |
阿里云 | http://mirrors.aliyun.com/debian/ |
華為云 | http://mirrors.aliyun.com/debian/ |
網(wǎng)易 | http://mirrors.163.com/debian/ |
清華大學(xué) | http://mirrors.tuna.tsinghua.edu.cn/debian/ |
中國科大 | http://mirrors.ustc.edu.cn/debian/ |
蘭州大學(xué) | http://mirror.lzu.edu.cn/debian/ |
更換Debian軟件源鏡像
在操作前,先重命名備份軟件源配置文件,以便在需要時(shí)可以還原。
mv /etc/apt/sources.list /etc/apt/sources.list.bak
創(chuàng )建新的配置文件。
vi /etc/apt/sources.list
內容如下(通常只需按需修改其中發(fā)行版代號和鏡像地址,詳細查看后面備注介紹)。
deb http://ftp.cn.debian.org/debian/ buster main contrib non-free
deb-src http://ftp.cn.debian.org/debian/ buster main contrib non-free
deb http://ftp.cn.debian.org/debian-security/ buster/updates main contrib non-free
deb-src http://ftp.cn.debian.org/debian-security/ buster/updates main contrib non-free
deb http://ftp.cn.debian.org/debian/ buster-updates main contrib non-free
deb-src http://ftp.cn.debian.org/debian/ buster-updates main contrib non-free
deb http://ftp.cn.debian.org/debian/ buster-backports main contrib non-free
deb-src http://ftp.cn.debian.org/debian/ buster-backports main contrib non-free
逐個(gè)介紹配置內容里的參數含義:
deb:二進(jìn)制軟件包;
deb-src:源代碼軟件包;
網(wǎng)址:軟件包鏡像地址;
發(fā)行版代號:適用對應發(fā)行版的軟件包,可用 lsb_release -c 命令查詢(xún)代號名稱(chēng);
發(fā)行版代號跟隨參數:軟件包類(lèi)型(xxxxx/updates 安全錯誤更新,xxxxx-updates 普通維護更新,xxxxx-backports 向后移植軟件包,將較新軟件補丁移植到舊版軟件上);
main:遵循 DFSG 標準的自由軟件;
contrib:遵循 DFSG 標準的自由軟件,但存在 non-free 依賴(lài);
non-free:不符合 DFSG 標準的軟件;
更新配置文件后重建軟件包索引生效。
apt-get update
如果你用的是 https 軟件源鏡像地址,那么需要確保已安裝下面兩個(gè)軟件。
apt-get install apt-transport-https ca-certificates
更多資訊:更多資訊
本站發(fā)布的【debian系統更換軟件源鏡像優(yōu)化國內下載速度】?jì)热荩▓D片、視頻和文字)以原創(chuàng )、轉載和分享為主,文章觀(guān)點(diǎn)不代表本網(wǎng)站立場(chǎng)
如果涉及侵權請盡快告知,我們將會(huì )在第一時(shí)間立刻刪除涉嫌侵權內容,本站原創(chuàng )內容未經(jīng)允許不得轉載,或轉載時(shí)需注明出處。
Copyright ? 2009-2024 56dr.com. All Rights Reserved. 特網(wǎng)科技 版權所有 珠海市特網(wǎng)科技有限公司 粵ICP備16109289號
域名注冊服務(wù)機構:阿里云計算有限公司(萬(wàn)網(wǎng)) 域名服務(wù)機構:煙臺帝思普網(wǎng)絡(luò )科技有限公司(DNSPod) CDN服務(wù):阿里云計算有限公司 百度云 中國互聯(lián)網(wǎng)舉報中心 增值電信業(yè)務(wù)經(jīng)營(yíng)許可證B2
建議您使用Chrome、Firefox、Edge、IE10及以上版本和360等主流瀏覽器瀏覽本網(wǎng)站