apt 不适用于 kali linux 2020.3

apt 不适用于 kali linux 2020.3
kali@kali:~$ sudo apt update
Get:1 http://kali.download/kali kali-rolling InRelease [30.5 kB]
Get:2 http://kali.download/kali kali-rolling/main amd64 Packages [16.6 MB]
Err:2 http://kali.download/kali kali-rolling/main amd64 Packages                                                                                                                                                                          
  Hash Sum mismatch
  Hashes of expected file:
   - Filesize:16634563 [weak]
   - SHA256:fbb326970ca4e9cdb4fef1aa9a8be44356dc8d9fdab37069e9a19e65ee3ae952
   - SHA1:cea7b3e7681b2f1a8070ea788ad7779e5f178fb3 [weak]
   - MD5Sum:e6fc65db75d4b81ea72b4f35e18d3b18 [weak]
  Hashes of received file:
   - SHA256:a2b234d6a45e017ca97ce9d720a0ca4f79fe6b4956692bef2864e75d845291bc
   - SHA1:e7e682ffe978727c54f671b2424df435b48c26ca [weak]
   - MD5Sum:e6fc65db75d4b81ea72b4f35e18d3b18 [weak]
   - Filesize:16634563 [weak]
  Last modification reported: Wed, 14 Oct 2020 12:07:19 +0000
  Release file created at: Wed, 14 Oct 2020 12:08:13 +0000
Get:3 http://kali.download/kali kali-rolling/contrib amd64 Packages [100 kB]                                                                                                                                                              
Get:3 http://kali.download/kali kali-rolling/contrib amd64 Packages [100 kB]                                                                                                                                                              
Fetched 16.8 MB in 14s (1,219 kB/s)                                                                                                                                                                                                       
Reading package lists... Done
E: Failed to fetch http://kali.download/kali/dists/kali-rolling/main/binary-amd64/Packages.gz  Hash Sum mismatch
   Hashes of expected file:
    - Filesize:16634563 [weak]
    - SHA256:fbb326970ca4e9cdb4fef1aa9a8be44356dc8d9fdab37069e9a19e65ee3ae952
    - SHA1:cea7b3e7681b2f1a8070ea788ad7779e5f178fb3 [weak]
    - MD5Sum:e6fc65db75d4b81ea72b4f35e18d3b18 [weak]
   Hashes of received file:
    - SHA256:a2b234d6a45e017ca97ce9d720a0ca4f79fe6b4956692bef2864e75d845291bc
    - SHA1:e7e682ffe978727c54f671b2424df435b48c26ca [weak]
    - MD5Sum:e6fc65db75d4b81ea72b4f35e18d3b18 [weak]
    - Filesize:16634563 [weak]
   Last modification reported: Wed, 14 Oct 2020 12:07:19 +0000
   Release file created at: Wed, 14 Oct 2020 12:08:13 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.

操作系统是kali linux版本2020.3。我刚刚在 virtualbox 上安装了操作系统,但是当我使用 apt 安装任何软件包时,它不起作用,并且显示“无法找到软件包”。所以我尝试使用 apt update 但结果是上面的。你能帮我重新调用 apt 吗?

答案1

这对我有用:sudo service ntp restart

相关内容