Results 1 to 7 of 7

Thread: Updating repository

  1. #1
    Join Date
    2016-Sep
    Posts
    22

    Updating repository

    Hello there,
    Code:
    uname -a
    Linux abhi 4.12.0-kali2-amd64 #1 SMP Debian 4.12.12-2kali1 (2017-09-13) x86_64 GNU/Linux
    I was updating my repository and got the error. Till yesterday it was running fine. I don't know what is the reason.

    i have following repositories in sources.list:
    Code:
    deb https://http.kali.org/kali kali-rolling main non-free contrib
    deb-src https://http.kali.org/kali kali-rolling main non-free contrib
    My error was:
    Code:
    apt-get update
    
    Get:3 https://kali.mirror.garr.it/mirrors/kali kali-rolling InRelease [30.5 kB]  
    Get:5 https://kali.mirror.garr.it/mirrors/kali kali-rolling/contrib Sources [67.2 kB]
    Get:6 https://kali.mirror.garr.it/mirrors/kali kali-rolling/non-free Sources [122 kB]
    Get:7 https://kali.mirror.garr.it/mirrors/kali kali-rolling/main Sources [11.5 MB]
    Get:8 https://kali.mirror.garr.it/mirrors/kali kali-rolling/main amd64 Packages [15.4 MB]
    Get:9 https://kali.mirror.garr.it/mirrors/kali kali-rolling/main i386 Packages [15.4 MB]
    Get:10 https://kali.mirror.garr.it/mirrors/kali kali-rolling/main i386 Contents (deb) [32.0 MB]
    Get:10 https://kali.mirror.garr.it/mirrors/kali kali-rolling/main i386 Contents (deb) [32.0 MB]
    Get:10 https://kali.mirror.garr.it/mirrors/kali kali-rolling/main i386 Contents (deb) [32.0 MB]
    Get:10 https://kali.mirror.garr.it/mirrors/kali kali-rolling/main i386 Contents (deb) [32.0 MB]
    Get:10 https://kali.mirror.garr.it/mirrors/kali kali-rolling/main i386 Contents (deb) [32.0 MB]
    Get:10 https://kali.mirror.garr.it/mirrors/kali kali-rolling/main i386 Contents (deb) [32.0 MB]
    Get:10 https://kali.mirror.garr.it/mirrors/kali kali-rolling/main i386 Contents (deb) [32.0 MB]
    Get:10 https://kali.mirror.garr.it/mirrors/kali kali-rolling/main i386 Contents (deb) [32.0 MB]
    Get:10 https://kali.mirror.garr.it/mirrors/kali kali-rolling/main i386 Contents (deb) [32.0 MB]
    Err:10 https://kali.mirror.garr.it/mirrors/kali kali-rolling/main i386 Contents (deb)
      File has unexpected size (31951658 != 31951611). Mirror sync in progress? [IP: 90.147.164.69 443]
      Hashes of expected file:
       - Filesize:31951611 [weak]
       - SHA256:f175f81fc83b623db0671e37f2615f60490f0d2f95f59c2df295451a5d0c9364
       - SHA1:955783b1344915d556a3c103e0c73c209d87c66a [weak]
       - MD5Sum:98b70c8d93103c3a9d2847110ccaad05 [weak]
      Release file created at: Sat, 21 Oct 2017 12:12:36 +0000
    Get:19 https://kali.mirror.garr.it/mirrors/kali kali-rolling/main amd64 Contents (deb) [32.1 MB]
    Err:19 https://kali.mirror.garr.it/mirrors/kali kali-rolling/main amd64 Contents (deb)
      
    Fetched 30.5 kB in 4s (7,328 B/s)     
    Reading package lists... Done
    E: Failed to fetch https://kali.mirror.garr.it/mirrors/kali/dists/kali-rolling/main/Contents-i386.gz  File has unexpected size (31951658 != 31951611). Mirror sync in progress? [IP: 90.147.164.69 443]
       Hashes of expected file:
        - Filesize:31951611 [weak]
        - SHA256:f175f81fc83b623db0671e37f2615f60490f0d2f95f59c2df295451a5d0c9364
        - SHA1:955783b1344915d556a3c103e0c73c209d87c66a [weak]
        - MD5Sum:98b70c8d93103c3a9d2847110ccaad05 [weak]
       Release file created at: Sat, 21 Oct 2017 12:12:36 +0000
    E: Failed to fetch https://kali.mirror.garr.it/mirrors/kali/dists/kali-rolling/main/Contents-amd64.gz  
    E: Some index files failed to download. They have been ignored, or old ones used instead.
    

    If i replace them with the http support repository than it works fine i.e
    Code:
    deb http://http.kali.org/kali kali-rolling main contrib non-free
    deb-src http://http.kali.org/kali kali-rolling main contrib non-free
    However if i comment out the first one than it doesn't through any error.
    Code:
    #deb https://http.kali.org/kali kali-rolling main non-free contrib
    deb-src https://http.kali.org/kali kali-rolling main non-free contrib


    Any suggestion?
    Thanks

  2. #2
    Join Date
    2013-Apr
    Posts
    182
    please don't updated , this will crash your gnome and gdm3 , i have same problem with yours at first . and after i updated and dist-upgrade . gdm3 crash , and gnome crash too .
    Now i am using mate , and xfce to enter my system .

  3. #3
    Join Date
    2016-Sep
    Posts
    22
    Quote Originally Posted by when123 View Post
    please don't updated , this will crash your gnome and gdm3 , i have same problem with yours at first . and after i updated and dist-upgrade . gdm3 crash , and gnome crash too .
    Now i am using mate , and xfce to enter my system .
    Thanks for the suggestion. Can you please tell me why it happens? What is the solution to get rid of it?

  4. #4
    Join Date
    2016-Oct
    Location
    /dev/sda
    Posts
    1,012
    Quote Originally Posted by abhijeet View Post
    Thanks for the suggestion. Can you please tell me why it happens? What is the solution to get rid of it?
    I see you want to use https transport for repositories. You might have not configured it properly. Just by writing https doesn't start downloads from https channel.

    Follow this guide:
    https://www.kali.org/news/kali-linux...https-support/

  5. #5
    Join Date
    2016-Sep
    Posts
    22
    Quote Originally Posted by _defalt View Post
    I see you want to use https transport for repositories. You might have not configured it properly. Just by writing https doesn't start downloads from https channel.

    Follow this guide:
    https://www.kali.org/news/kali-linux...https-support/
    I had followed that guide step by step and till yesterday it was running good. I don't know how but what i am seeing now is that it is not throwing any error while updating. I did nothing.
    It is working fine now.

  6. #6
    Join Date
    2016-Oct
    Location
    /dev/sda
    Posts
    1,012
    Quote Originally Posted by abhijeet View Post
    I had followed that guide step by step and till yesterday it was running good. I don't know how but what i am seeing now is that it is not throwing any error while updating. I did nothing.
    It is working fine now.
    Mirror closest to you might be down at that time. You should comment out the deb-src entry in your sources.list. The second link is only used by those who want to compile the packages themselves from their source. That's why deb-source. The first entry is used to download already compiled packages which are ready to be installed.

    As you have followed that guide you might have read there that having https repository doesn't add any noticeable increase in security. It only gives you false sense of security.

  7. #7
    Join Date
    2016-Sep
    Posts
    22
    Quote Originally Posted by _defalt View Post
    Mirror closest to you might be down at that time. You should comment out the deb-src entry in your sources.list. The second link is only used by those who want to compile the packages themselves from their source. That's why deb-source. The first entry is used to download already compiled packages which are ready to be installed.

    As you have followed that guide you might have read there that having https repository doesn't add any noticeable increase in security. It only gives you false sense of security.
    Thank you for the information.

Similar Threads

  1. [404 Not found repository] Ask for newer repository?
    By justacleverguy in forum TroubleShooting Archive
    Replies: 4
    Last Post: 2016-03-25, 15:57
  2. repository help
    By vafangool in forum TroubleShooting Archive
    Replies: 1
    Last Post: 2014-12-23, 19:27

Posting Permissions

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