kali Linux的更新源是在国外的,访问比较慢,怎样更换国内镜像源
1、备份原先镜像源
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
2、输入“sudo vim /etc/apt/sources.list”命令进入源地址文件
3、按“i”进入插入模式
4、选择一下任何一个源,复制
#aliyun 阿里云
deb http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
deb-src http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
# ustc 中科大
deb http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
deb-src http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
# tsinghua 清华
deb http://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free
deb-src http://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free
#浙大源
deb http://mirrors.zju.edu.cn/kali kali-rolling main contrib non-free
deb-src http://mirrors.zju.edu.cn/kali kali-rolling main contrib non-free
更新前把系统自带的更新源注释或者删除掉
5、Esc退出插入模式
6、输入“:wq”保存退出