【Raspberry Pi - Raspbian】系统换更新源
a. 編輯/etc/apt/source.list
? ? 命令: sudo nano /etc/apt/source.list?
????????or???sudo vim /etc/apt/source.list
????? ? or ? sudo gedit /etc/apt/source.list
? ? 用哪個命令取決于你安裝了哪個,并且熟悉哪個
? ? 我這里用的nano命令看到raspbian自帶的源如下:
? ? 然后把他們都delete或者全部注釋掉,continue...
b. 添加新源
????deb <源地址> wheezy main contrib non-free
????deb-src <源地址> wheezy main contrib non-free
????舉個栗子:
????源地址為清華鏡像:http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/
????deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ wheezy main contrib non-free
????deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ wheezy main contrib non-free
????順手給出官方給出的鏡像鏈接:http://www.raspbian.org/RaspbianMirrors
? ? 咱們中國鏡像:
c. 換源成功
? ? 老套路,完事了你首先得
????? ? sudo apt update
? ? 然后
????? ? sudo apt upgrade
參考:https://www.ncnynl.com/archives/201607/255.html
總結
以上是生活随笔為你收集整理的【Raspberry Pi - Raspbian】系统换更新源的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 贷款通则还有效吗 贷款通则废止了吗
- 下一篇: 长信金利分红次数