Kali Linuxでは、「sudo apt update && sudo apt full-upgrade -y」が失敗します。

Kali Linuxでは、「sudo apt update && sudo apt full-upgrade -y」が失敗します。

更新してアップグレードしようとしています。カリLinuxしかし、sudo apt update && sudo apt full-upgrade -y次のような質問があります。この問題をどのように解決できますか?誰でも私を助けてください。

┌──(kali㉿`enter code here`)-[~]
└─$ sudo apt update && sudo apt full-upgrade -y
Get:1 http://ftp.harukasan.org/kali kali-rolling InRelease [30.6 kB]
Get:2 http://ftp.harukasan.org/kali kali-rolling/non-free Sources [123 kB]
Get:3 http://ftp.harukasan.org/kali kali-rolling/contrib Sources [66.3 kB]
Get:4 http://ftp.harukasan.org/kali kali-rolling/main Sources [14.4 MB]
Get:5 http://ftp.harukasan.org/kali kali-rolling/main amd64 Packages [18.0 MB]
Get:6 http://ftp.harukasan.org/kali kali-rolling/main amd64 Contents (deb) [40.9 MB]
Get:6 http://ftp.harukasan.org/kali kali-rolling/main amd64 Contents (deb) [40.9 MB]
Get:6 http://ftp.harukasan.org/kali kali-rolling/main amd64 Contents (deb) [40.9 MB]
Ign:6 http://ftp.harukasan.org/kali kali-rolling/main amd64 Contents (deb)
Err:6 http://http.kali.org/kali kali-rolling/main amd64 Contents (deb)      
  File has unexpected size (40914837 != 40904768). Mirror sync in progress? [IP: 118.38.178.199 80]
Get:9 http://ftp.harukasan.org/kali kali-rolling/contrib amd64 Contents (deb) [129 kB]
Ign:9 http://ftp.harukasan.org/kali kali-rolling/contrib amd64 Contents (deb)   
Err:6 http://http.kali.org/kali kali-rolling/main amd64 Contents (deb)                                 
  File has unexpected size (40914837 != 40904768). Mirror sync in progress? [IP: 118.38.178.199 80]
Get:10 http://ftp.harukasan.org/kali kali-rolling/non-free amd64 Contents (deb) [949 kB]               
Ign:10 http://ftp.harukasan.org/kali kali-rolling/non-free amd64 Contents (deb)
Ign:9 http://http.kali.org/kali kali-rolling/contrib amd64 Contents (deb)
Reading package lists... Done                       
E: Failed to fetch http://http.kali.org/kali/dists/kali-rolling/main/Contents-amd64  File has unexpected size (40914837 != 40904768). Mirror sync in progress? [IP: 118.38.178.199 80]
E: Failed to fetch http://http.kali.org/kali/dists/kali-rolling/contrib/Contents-amd64  File has unexpected size (154305 != 128561). Mirror sync in progress? [IP: 118.38.178.199 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
                                                                                            

カーリーバージョン:

No LSB modules are available.
Distributor ID: Kali
Description:    Kali GNU/Linux Rolling
Release:        2022.1
Codename:       kali-rolling

私が今まで試したこと:

  • 次のコマンドはアクベント:

     sudo cp /etc/apt/sources.list ~/ 
     sudo wget "http://pastebin.com/raw.php?i=uzhrtg5M" -O /etc/apt/sources.list 
     sudo apt-get update
     sudo rm /etc/apt/sources.list.d/ubuntu-extras.list
     sudo apt-get update
    
  • sudo apt-get upgradeそしてsudo apt-get upgrade -fからアクベント

     apt-get clean
    

私は多くの記事を読んだが、言及された解決策のどれも私には役に立たなかった。どんな助けでも大変感謝します。

ベストアンサー1

エラーメッセージは明確に見えます。

File has unexpected size (40914837 != 40904768). Mirror sync in progress? [IP: 118.38.178.199 80]

アップデートのダウンロードに使用するミラーは、アップストリームソースで同期されています。後でもう一度やり直すか、一時的に別の画像を使用してください。

おすすめ記事