可以直接打开这个目录 /etc/apt/ 并找到 sources.list 文件,直接打开。
或者用控制台命令:
vim /etc/apt/sources.list
打开,用控制台要复杂一些,得用 i 按键进入插入模式才可以编辑,编辑完成后,退出插入模式,并输入 wq! 保存并退出。
那么要编辑什么呢:
先用 # 把原本的注释掉:
之后,在下面添加上新的源:
# 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 #deb http://mirrors.ustc.edu.cn/kali-security kali-current/updates main contrib non-free #deb-src http://mirrors.ustc.edu.cn/kali-security kali-current/updates main contrib non-free
# 清华大学
deb http://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free # kali 官方源 deb http://http.kali.org/kali kali-rolling main non-free contrib deb-src http://http.kali.org/kali kali-rolling main non-free contrib # 默认的直接注释掉 #deb http://security.kali.org/kali-security kali-rolling/updates main contrib non-free #deb-src http://security.kali.org/kali-security kali-rolling/updates main contrib non-free
上面为大家准备了阿里云、中科大、官方源。
更换国内源肯定是快得多的,之后需要更新系统或更新软件可以使用以下指令:
更新更新源:
apt-get update
更新系统:
apt-get dist-upgrade
更新软件:
apt-get upgrade
清理安装包:
apt-get clean
apt-get autoclean
安装KDE界面:
apt-get install kde-full
标签:non,源地址,http,Kali,free,kali,contrib,镜像,main From: https://www.cnblogs.com/n5you/p/17467654.html