Kali 更换国内源

┌──(root㉿kali)-[~]
└─# cat /etc/apt/sources.list
# See https://www.kali.org/docs/general-use/kali-linux-sources-list-repositories/      #注释
#deb http://http.kali.org/kali kali-rolling main contrib non-free non-free-firmware     #注释

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     #新加

# Additional line for source packages
# deb-src http://http.kali.org/kali kali-rolling main contrib non-free non-free-firmware
中科大Kali镜像源
 
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

阿里云Kali镜像源
 
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

清华大学Kali镜像源
 
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
命令1:
apt-get upgrade
 
命令2:
apt-get dist-upgrade
 
上面两条命令均是用来更新所有软件的,不同的是:
它能识别新版本的依赖关系,
将不要的依赖进行卸载,
将需要升级的依赖进行升级。

安装或更新完成后,会遗留一些软件的安装包,会占用部分硬盘空间,可使用下面的命令来对其进行清理。

apt-get clean

 

posted @ 2024-01-24 13:22  星火撩原  阅读(634)  评论(0编辑  收藏  举报