Results 1 to 2 of 2

Thread: Primairy VM - sudo apt-get update not working anymore

  1. #1

    Primairy VM - sudo apt-get update not working anymore

    Dear offsec or co-forum users,

    Since couple of days I have a problem with apt-get update.

    Error:
    Err:8 https://ftp2.nluug.nl/os/Linux/distr/kali kali-rolling/non-free amd64 Contents (deb)
    File has unexpected size (1008267 != 1008111). Mirror sync in progress? [IP: 145.220.21.40 443]
    Hashes of expected file:
    - Filesize:1008111 [weak]
    - SHA256:93f6503d4e530ba16e185df7b004cea76ddc4eeb543 6dca6af8fafd85c00f4f1
    - SHA1:1da9f3bc1e5d25a424796715ddd4b30a7f60a862 [weak]
    - MD5Sum:5a808d26952db518e5f316c69cd15fe2 [weak]
    Release file created at: Tue, 07 Jun 2022 00:04:53 +0000
    Ign:9 https://http.kali.org/kali kali-rolling/non-free i386 Contents (deb)
    Ign:4 https://http.kali.org/kali kali-rolling/main i386 Contents (deb)
    Ign:5 https://http.kali.org/kali kali-rolling/main amd64 Contents (deb)
    Fetched 37.4 MB in 8s (4,695 kB/s)
    Reading package lists... Done
    E: Failed to fetch https://ftp2.nluug.nl/os/Linux/distr...tents-amd64.gz File has unexpected size (1008267 != 1008111). Mirror sync in progress? [IP: 145.220.21.40 443]
    Hashes of expected file:
    - Filesize:1008111 [weak]
    - SHA256:93f6503d4e530ba16e185df7b004cea76ddc4eeb543 6dca6af8fafd85c00f4f1
    - SHA1:1da9f3bc1e5d25a424796715ddd4b30a7f60a862 [weak]
    - MD5Sum:5a808d26952db518e5f316c69cd15fe2 [weak]
    Release file created at: Tue, 07 Jun 2022 00:04:53 +0000
    E: Failed to fetch https://http.kali.org/kali/dists/kal.../Contents-i386 File has unexpected size (956807 != 956667). Mirror sync in progress? [IP: 145.220.21.40 443]
    E: Some index files failed to download. They have been ignored, or old ones used instead.


    My OS:
    PRETTY_NAME="Kali GNU/Linux Rolling"
    NAME="Kali GNU/Linux"
    ID=kali
    VERSION="2022.1"
    VERSION_ID="2022.1"
    VERSION_CODENAME="kali-rolling"
    ID_LIKE=debian
    ANSI_COLOR="1;31"
    HOME_URL="https://www.kali.org/"
    SUPPORT_URL="https://forums.kali.org/"
    BUG_REPORT_URL="https://bugs.kali.org/"

    /etc/apt/sources.list:
    # See https://www.kali.org/docs/general-us...t-repositories
    # deb http://http.kali.org/kali kali-rolling main contrib non-free
    deb https://http.kali.org/kali kali-rolling main non-free contrib

    # Additional line for source packages
    # deb-src https://http.kali.org/kali kali-rolling main non-free contrib
    # deb-src http://http.kali.org/kali kali-rolling main contrib non-free

    Installed apt-transport-https:
    sudo apt install apt-transport-https

    Tested with the following repo's config's:
    Config 1#:
    # See https://www.kali.org/docs/general-us...t-repositories
    deb http://http.kali.org/kali kali-rolling main contrib non-free

    # Additional line for source packages
    # deb-src https://http.kali.org/kali kali-rolling main non-free contrib


    Config 2#:
    # See https://www.kali.org/docs/general-us...t-repositories
    deb https://http.kali.org/kali kali-rolling main contrib non-free

    # Additional line for source packages
    deb-src https://http.kali.org/kali kali-rolling main non-free contrib

    Config 3#:
    # See https://www.kali.org/docs/general-us...t-repositories
    # deb https://http.kali.org/kali kali-rolling main contrib non-free

    # Additional line for source packages
    deb-src https://http.kali.org/kali kali-rolling main non-free contrib

    None of these config works, get the same error.
    Also clean the cache directory:
    sudo apt clean
    sudo apt autoclean.

    No result.

    How can I resolve this to get updates?

  2. #2
    Topic can be closed.

    The issue has been resolved by changing the repo list.

Similar Threads

  1. Replies: 0
    Last Post: 2022-02-25, 21:49
  2. sudo apt-get update not working
    By hellohi in forum TroubleShooting Archive
    Replies: 7
    Last Post: 2021-02-26, 06:55
  3. Replies: 0
    Last Post: 2021-01-29, 22:35

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •