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