Kali 更新问题

    在国内,使用kali官网更新源,通常比较慢甚至无法更新的问题。

此时需要更改更新源,修改/etc/apt/sources.list 配置文件,将以下任一平台更新源加入配置文件即可。

常见的更新源如下:

#中科大

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 kali-rolling main non-free contrib

deb-src http://mirrors.aliyun.com/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://mirrors.neusoft.edu.cn/kali kali-rolling/main non-free contrib

deb-src http://mirrors.neusoft.edu.cn/kali kali-rolling/main non-free contrib

#官方源

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://http.kali.org/kali kali-rolling main non-free contrib

deb-src http://http.kali.org/kali kali-rolling main non-free contrib


    密钥失效导致kali更新失败:

使用 apt-key list  查看密钥信息,输出结果的最后一行即为密钥到期时间。

若密钥到期,可采用以下四种任一方案解决:

1、 apt-key adv --keyserver keys.gnupg.net --recv-keys ED444FF07D8D0BF6

2、wget -q -O- archive.kali.org/archive-key.asc | apt-key add

3、gpg --keyserver hkp://pgpkeys.mit.edu --recv-key ED444FF07D8D0BF6

gpg -a --export ED444FF07D8D0BF6 | sudo apt-key add -

4、wget https://http.kali.org/kali/pool/main/k/kali-archive-keyring/kali-archive-keyring_2018.1_all.deb

apt install ./kali-archive-keyring_2018.1_all.deb

更新完成之后,再次使用apt-key list 查看密钥。

后续使用apt update / apt upgrade 更新了。

你可能感兴趣的:(Kali 更新问题)