armbian stretch更換國內源


FX的N1中刷入armbian

uname -a

linux aml 5.0.2-aml-s905 #5.77 SMP PREEMPT Mon Apr 1 17:41:33 MSK 2019 aarch64 GNU/Linux

更換國內源,與debian不同,發現清華源有不少缺失,沒有找到適合的阿里源,中科大源能夠比較好的進行更新,不同源的維護不一樣啊,源服務器不是簡單的鏡像。

nano /etc/apt/sources.list

點擊查看代碼
deb http://mirrors.ustc.edu.cn/debian stretch-updates main contrib non-free
deb http://mirrors.ustc.edu.cn/debian stretch-backports main contrib non-free
deb http://mirrors.ustc.edu.cn/debian-security/ stretch/updates main contrib non-free

不需要查看和編譯就不需要填寫deb-src源,可注釋掉,然后就更新吧

apt-get update
apt-get upgrade

PS:
update和upgrade的區別——
update 是更新 /etc/apt/sources.list 和 /etc/apt/sources.list.d 中列出的源的地址,這樣才能獲取到最新的軟件包

upgrade 是升級已安裝的所有軟件包,升級之后的版本就是本地地址里的,因此,在執行 upgrade 之前一定要執行 update, 這樣才能更新到最新的


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM