Kali Linux 更新源
1 Kali Linux更新源
更换更新源,命令行中执行一下命令
vim /etc/apt/sources.list
2 替换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
# Additional line for source packages
# deb-src http://http.kali.org/kali kali-rolling main contrib non-free non-free-firmware
#aliyun 阿里云
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
# ustc 中科大
deb https://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
deb-src https://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
#清华大学源
deb https://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 https://download.docker.com/linux/debian stretch stable
deb http://mirrors.163.com/debian/ buster main non-free contrib
deb http://mirrors.163.com/debian/ buster-updates main non-free contrib
deb http://mirrors.163.com/debian/ buster-backports main non-free contrib
deb http://mirrors.163.com/debian-security/ buster/updates main non-free contrib
deb https://mirrors.huaweicloud.com/debian/ buster main contrib non-free
deb https://mirrors.huaweicloud.com/debian/ buster-updates main contrib non-free
deb https://mirrors.huaweicloud.com/debian/ buster-backports main contrib non-free
deb https://mirrors.huaweicloud.com/debian-security/ buster/updates main contrib non-free
deb http://mirrors.cloud.tencent.com/debian/ buster main non-free contrib
deb http://mirrors.cloud.tencent.com/debian-security buster/updates main
deb http://mirrors.cloud.tencent.com/debian/ buster-updates main non-free contrib
deb http://mirrors.cloud.tencent.com/debian/ buster-backports main non-free contrib
deb http://mirrors.aliyun.com/debian/ buster main non-free contrib
deb http://mirrors.aliyun.com/debian-security buster/updates main
deb http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
deb http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib
3更新一下源
apt-get update
apt-get update 出现:错误:https://download.docker.com/linux/debian stretch InRelease
由于没有公钥,无法验证下列签名: not available: NO_PUBKEY 7EA0A9C3F273FCD8
解决方法: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 7EA0A9C3F273FCD8
kali执行apt-get update指令,提示:下列签名无效: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository
这种情况一般都是key过期了,执行一下命令即可:
wget -q -O - https://archive.kali.org/archive-key.asc | apt-key add
再次更新,一般就成功了
apt update
更新软件
apt-get upgrade
更新系统
apt-get dist-upgrade
清理安装包
apt-get clean
apt-get autoclean