笔记本电脑、台式机、可启动 USB 和 Raspberry Pi 4B 8gb 上的 Kali 镜像同步错误

笔记本电脑、台式机、可启动 USB 和 Raspberry Pi 4B 8gb 上的 Kali 镜像同步错误

我在使用 Kali Linux 时遇到了问题。我目前在笔记本电脑、台式机、Raspberry Pi 4B 8gb 和具有 256gb 存储空间的可启动 USB 上运行 Kali。我最近尝试更新,但所有独立设备都出现镜像同步错误。根据运行“sudo apt update”或“sudo apt-get update”,我似乎会遇到不同镜像的错误。我甚至带着我的可启动 USB 去工作并在那里尝试过,但问题是一样的。

有人能帮我解释一下这个问题的根源吗?提前感谢你的帮助。

┌──(kali㉿kali-raspberry-pi)-[~]
└─$ sudo apt update
Get:1 http://ftp1.nluug.nl/os/Linux/distr/kali kali-rolling InRelease [30.6 kB]
Hit:2 http://http.re4son-kernel.com/re4son kali-pi InRelease
Get:3 http://ftp1.nluug.nl/os/Linux/distr/kali kali-rolling/main arm64 Packages [18.0 MB]
Get:4 http://ftp1.nluug.nl/os/Linux/distr/kali kali-rolling/main arm64 Contents (deb) [41.1 MB]
Get:4 http://ftp1.nluug.nl/os/Linux/distr/kali kali-rolling/main arm64 Contents (deb) [41.1 MB]
Get:4 http://ftp1.nluug.nl/os/Linux/distr/kali kali-rolling/main arm64 Contents (deb) [41.1 MB]
Get:4 http://ftp1.nluug.nl/os/Linux/distr/kali kali-rolling/main arm64 Contents (deb) [41.1 MB]
Get:4 http://ftp1.nluug.nl/os/Linux/distr/kali kali-rolling/main arm64 Contents (deb) [41.1 MB]
Ign:4 http://ftp1.nluug.nl/os/Linux/distr/kali kali-rolling/main arm64 Contents (deb)
Err:4 http://http.kali.org/kali kali-rolling/main arm64 Contents (deb)
  File has unexpected size (41176142 != 41123139). Mirror sync in progress? [IP: 145.220.21.40 80]
Err:4 http://http.kali.org/kali kali-rolling/main arm64 Contents (deb)
  File has unexpected size (41176142 != 41123139). Mirror sync in progress? [IP: 145.220.21.40 80]
Fetched 30.6 kB in 4s (7,471 B/s)
Reading package lists... Done
E: Failed to fetch http://http.kali.org/kali/dists/kali-rolling/main/Contents-arm64  File has unexpected size (41176142 != 41123139). Mirror sync in progress? [IP: 145.220.21.40 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
                                                                                                             
┌──(kali㉿kali-raspberry-pi)-[~]
└─$


┌──(kali㉿kali-raspberry-pi)-[~]
└─$ sudo apt-get update                
Get:1 http://ftp1.nluug.nl/os/Linux/distr/kali kali-rolling InRelease [30.6 kB]
Hit:2 http://http.re4son-kernel.com/re4son kali-pi InRelease
Get:3 http://ftp1.nluug.nl/os/Linux/distr/kali kali-rolling/main arm64 Packages [18.0 MB]
Get:4 http://ftp1.nluug.nl/os/Linux/distr/kali kali-rolling/main arm64 Contents (deb) [41.1 MB]
Get:4 http://ftp1.nluug.nl/os/Linux/distr/kali kali-rolling/main arm64 Contents (deb) [41.1 MB]
Get:4 http://ftp1.nluug.nl/os/Linux/distr/kali kali-rolling/main arm64 Contents (deb) [41.1 MB]
Get:4 http://ftp1.nluug.nl/os/Linux/distr/kali kali-rolling/main arm64 Contents (deb) [41.1 MB]
Get:4 http://ftp1.nluug.nl/os/Linux/distr/kali kali-rolling/main arm64 Contents (deb) [41.1 MB]
Ign:4 http://ftp1.nluug.nl/os/Linux/distr/kali kali-rolling/main arm64 Contents (deb)
Get:4 http://ftp2.nluug.nl/os/Linux/distr/kali kali-rolling/main arm64 Contents (deb) [41.1 MB]
Err:4 http://ftp2.nluug.nl/os/Linux/distr/kali kali-rolling/main arm64 Contents (deb)
  File has unexpected size (41176142 != 41123139). Mirror sync in progress? [IP: 145.220.21.40 80]
  Hashes of expected file:
   - Filesize:41123139 [weak]
   - SHA256:041d12ee243d886a7c9b4a8332c19c52b34fe5cfbe9d6a8ef10a4d7def2a9878
   - SHA1:e000dcf1bd183adc30d8399ada2c809d1016f72f [weak]
   - MD5Sum:8f2ff447fbae65a1c5b08b260ec03f04 [weak]
  Release file created at: Thu, 07 Apr 2022 18:04:49 +0000
Fetched 30.6 kB in 4s (6,876 B/s)                              
Reading package lists... Done
E: Failed to fetch http://ftp2.nluug.nl/os/Linux/distr/kali/dists/kali-rolling/main/Contents-arm64.gz  File has unexpected size (41176142 != 41123139). Mirror sync in progress? [IP: 145.220.21.40 80]
   Hashes of expected file:
    - Filesize:41123139 [weak]
    - SHA256:041d12ee243d886a7c9b4a8332c19c52b34fe5cfbe9d6a8ef10a4d7def2a9878
    - SHA1:e000dcf1bd183adc30d8399ada2c809d1016f72f [weak]
    - MD5Sum:8f2ff447fbae65a1c5b08b260ec03f04 [weak]
   Release file created at: Thu, 07 Apr 2022 18:04:49 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.
                                                                                                             
┌──(kali㉿kali-raspberry-pi)-[~]
└─$

答案1

在 apt/sources.list 中使用/设置不同的镜像(检查 kali.org 上的镜像列表)。不幸的是,我经常遇到这些不匹配的情况... nluug.nl... Kali 镜像

相关内容