kali更新

2019-12-05  本文已影响0人  IT胖

一、编辑源列表

gedit /etc/apt/sources.list
#或者直接vim编辑
vim /etc/apt/sources.list

以下源取自2019.12月

#阿里云源
deb https://mirrors.aliyun.com/kali kali-rolling main non-free contrib
deb-src https://mirrors.aliyun.com/kali 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.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
#浙大
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
#官方源
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

二、执行以下命令完成更新

apt-get update    #更新索引文件
apt-get upgrade -y  #更新已安装的软件包文件
apt-get dist-upgrade -y    #根据依赖关系更新
apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y    #自动更新&安装
apt-get clean    #清除缓存索引
apt-get install linux-headers-$(uname -r)    #Linux内核更新

上一篇 下一篇

猜你喜欢

热点阅读