z 更新源是Linux必不可少的软件获取仓库,安装软件时,程序从源获取软件包,才能下载到本地。
首先,打开终端,输入 leafpad /etc/apt/sources.list,打开源列表,替换成下面的源。
# kali官方源
deb http://http.kali.org/ kali-rolling main non-free contrib
deb-src http://http.kali.org/ kali-rolling main non-free contrib
#中科大源
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.aliyun.com/kali sana main non-free contrib
deb http://mirrors.aliyun.com/kali-security/ sana/updates main contrib non-free
deb-src http://mirrors.aliyun.com/kali-security/ sana/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 Linux更新源,其实设置一个源即可,但是因为有些KALI源是国外的缘故容易被墙,导致无法连接找不到软件包等问题,不妨多设一两个。
保存后之后回到终端下执行命令更新Kali:
apt-get update && apt-get upgrade && apt-get dist-upgrade
本文仅供参考,如有错误欢迎各位大牛指出!
原文地址:https://www.cnblogs.com/ivansatan/p/10381424.html