美文网首页
kali更新

kali更新

作者: IT胖 | 来源:发表于2019-12-05 15:16 被阅读0次

一、编辑源列表

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内核更新

相关文章

网友评论

      本文标题:kali更新

      本文链接:https://www.haomeiwen.com/subject/zkkjlctx.html