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
原文地址:https://www.cnblogs.com/mym1994/p/11028696.html