Orangepi 修改 Debian國內源


1.導出sources.list

1
 
cat /etc/apt/sources.list >  sources.list 

2.修改sources.list內容為如下:

1
2
3
4
 

deb http://ftp.cn.debian.org/debian/ jessie main non-free contrib
deb-src http://ftp.cn.debian.org/debian/ jessie main non-free contrib
deb http://ftp.cn.debian.org/debian/ jessie-proposed-updates main non-free contrib
deb-src http://ftp.cn.debian.org/debian/ jessie-proposed-updates main non-free contrib

或者

1
2
3
4
 

deb http://mirrors.tuna.tsinghua.edu.cn/debian/ jessie main non-free contrib
deb http://mirrors.tuna.tsinghua.edu.cn/debian/ jessie-proposed-updates main non-free contrib
deb-src http://mirrors.tuna.tsinghua.edu.cn/debian/ jessie main non-free contrib
deb-src http://mirrors.tuna.tsinghua.edu.cn/debian/ jessie-proposed-updates main non-free contrib

3.重新寫回sources.list

1
2
 
sudo su
cat sources.list >  /etc/apt/sources.list

 4. 更新本地源倉庫緩存

1
 
sudo apt update


免責聲明!

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



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