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 contribdeb http://ftp.cn.debian.org/debian/ jessie-proposed-updates main non-free contribdeb-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 contribdeb-src http://mirrors.tuna.tsinghua.edu.cn/debian/ jessie main non-free contribdeb-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 |