关于kali源的问题
apt-get update && apt-get upgrade && apt-get dist-upgrade
获取:1 http://mirrors.ustc.edu.cn/kali kali-rolling InRelease [30.5 kB]
获取:3 http://mirrors.ustc.edu.cn/kali kali-rolling/non-free Sources [136 kB]
获取:4 http://mirrors.ustc.edu.cn/kali kali-rolling/contrib Sources [64.3 kB]
获取:5 http://mirrors.ustc.edu.cn/kali kali-rolling/main Sources [12.8 MB]
获取:5 http://mirrors.ustc.edu.cn/kali kali-rolling/main Sources [12.8 MB]
获取:5 http://101.246.187.114/files/20090000067F65F8/mirrors.aliyun.com/kali kali-rolling/main Sources [12.8 MB]
错误:5 http://101.246.187.114/files/20090000067F65F8/mirrors.aliyun.com/kali kali-rolling/main Sources
文件尺寸不符(12773568 != 12769794)。您使用的镜像正在同步中? [IP: 101.246.187.114 80]
Hashes of expected file:
Filesize:12769794 [weak]
SHA256:03f5bd1d220dd5b6f549d0f299dd3e1f2e5bfc023bb44bc9472438c5ef2c7b90
SHA1:62ea700e06ed7601e7d0e08b43b6467d2e6e2f56 [weak]
MD5Sum:fe467376e30c45cbc351130d10d472d6 [weak]
Release file created at: Sun, 24 Mar 2019 12:05:11 +0000
获取:8 http://101.246.187.119/files/51160000067F6768/mirrors.aliyun.com/kali kali-rolling/main amd64 Packages [17.1 MB]
错误:8 http://101.246.187.119/files/51160000067F6768/mirrors.aliyun.com/kali kali-rolling/main amd64 Packages
命中:2 http://mirrors.neusoft.edu.cn/kali kali-rolling InRelease
已下载 30.5 kB,耗时 3秒 (8,871 B/s)
正在读取软件包列表… 完成
E: 无法下载 http://101.246.187.114/files/20090000067F65F8/mirrors.aliyun.com/kali/dists/kali-rolling/main/source/Sources.gz 文件尺寸不符(12773568 != 12769794)。您使用的镜像正在同步中? [IP: 101.246.187.114 80]
Hashes of expected file:
- Filesize:12769794 [weak]
- SHA256:03f5bd1d220dd5b6f549d0f299dd3e1f2e5bfc023bb44bc9472438c5ef2c7b90
- SHA1:62ea700e06ed7601e7d0e08b43b6467d2e6e2f56 [weak]
- MD5Sum:fe467376e30c45cbc351130d10d472d6 [weak]
Release file created at: Sun, 24 Mar 2019 12:05:11 +0000
E: 无法下载 http://101.246.187.119/files/51160000067F6768/mirrors.aliyun.com/kali/dists/kali-rolling/main/binary-amd64/Packages.gz
E: 部分索引文件下载失败。如果忽略它们,那将转而使用旧的索引文件。
遇到了大概这么个情况
首先看看是不是没联网
在桥接模式是不行的
https://blog.csdn.net/m0_46230316/article/details/106173281
看到了大佬的博客知道是签名的问题
wget -q -O - https://archive.kali.org/archive-key.asc | apt-key add
apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys 7D8D0BF6
用了这两条命令更新了签名问题就解决了
如果没解决可是试试换源再更新签名
1.更改源文件
vim /etc/apt/sources.list
点 I 左下角会显示插入
2.把找好的源加上
把之前源注释掉或者删了
点Esc 然后:wq保存退出
3.更新
sudo apt update
sudo apt upgrade
sudo apt dist-pugrade
!!!!!