输入命令:
vi /etc/apt/sources.list进入vi编辑器编辑源镜像站点。
按o可以新建一行进行编辑操作,输入以下内容。
deb http://ftp.cn.debian.org/debian jessie main non-free contrib
deb http://ftp.cn.debian.org/debian jessie-proposed-updates main contrib non-free
deb http://ftp.cn.debian.org/debian-security jessie/updates main contrib non-free
deb-src http://ftp.cn.debian.org/debian/ jessie main contrib non-free阿里云镜像:
deb http://mirrors.aliyun.com/debian/ stretch main non-free contrib deb-src http://mirrors.aliyun.com/debian/ stretch main non-free contrib deb http://mirrors.aliyun.com/debian-security stretch/updates main deb-src http://mirrors.aliyun.com/debian-security stretch/updates main deb http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib deb-src http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib deb http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib deb-src http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib
华为云镜像:
deb https://mirrors.huaweicloud.com/debian/ stretch main contrib non-free deb-src https://mirrors.huaweicloud.com/debian/ stretch main contrib non-free deb https://mirrors.huaweicloud.com/debian/ stretch-updates main contrib non-free deb-src https://mirrors.huaweicloud.com/debian/ stretch-updates main contrib non-free deb https://mirrors.huaweicloud.com/debian/ stretch-backports main contrib non-free deb-src https://mirrors.huaweicloud.com/debian/ stretch-backports main contrib non-free
更换源为网易163
网易163源一直是国内许多人选择的对象,不过不知为何,在我这里使用时产生了错误,大家如果也有问题,可以使用下文的中科大源。
以Jessie为例, 编辑/etc/apt/sources.list文件, 在文件最前面添加以下条目(操作前请做好相应备份)
deb http://mirrors.163.com/debian/ jessie main non-free contrib
deb http://mirrors.163.com/debian/ jessie-updates main non-free contrib
deb http://mirrors.163.com/debian/ jessie-backports main non-free contrib
deb-src http://mirrors.163.com/debian/ jessie main non-free contrib
deb-src http://mirrors.163.com/debian/ jessie-updates main non-free contrib
deb-src http://mirrors.163.com/debian/ jessie-backports main non-free contrib
deb http://mirrors.163.com/debian-security/ jessie/updates main non-free contrib
deb-src http://mirrors.163.com/debian-security/ jessie/updates main non-free contrib更换源为中科大
以Jessie为例, 编辑/etc/apt/sources.list文件, 在文件最前面添加以下条目(操作前请做好相应备份)
deb http://mirrors.ustc.edu.cn/debian stable main contrib non-free
deb-src http://mirrors.ustc.edu.cn/debian stable main contrib non-free
deb http://mirrors.ustc.edu.cn/debian stable-proposed-updates main contrib non-free
deb-src http://mirrors.ustc.edu.cn/debian stable-proposed-updates main contrib non-free
或者直接
sudo sed -i 's/httpredir.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list
版权说明:若无特殊注明,转载请保留文章出处
文章分类: 技术教程
字数统计:本文共有 2477 个
本文链接:http://blog.442442.xyz/jishujiaocheng/249.html
文章分类: 技术教程
字数统计:本文共有 2477 个
本文链接:http://blog.442442.xyz/jishujiaocheng/249.html
发表评论: