Results 1 to 17 of 17

Thread: Cannot apt-get update. Err:1 http://http.kali.org/kali kali-rolling InRelease

  1. #1
    Join Date
    2014-Nov
    Posts
    8

    Cannot apt-get update. Err:1 http://http.kali.org/kali kali-rolling InRelease

    hi i cannot seem to do an update in kali (nethunter)Kali GNU/Linux Rolling \n \l

    i keep getting this error:

    root@kali:~# apt-get update
    Err:1 http://http.kali.org/kali kali-rolling InRelease
    Temporary failure resolving 'http.kali.org'
    Reading package lists... Done
    W: Failed to fetch http://http.kali.org/kali/dists/kali-rolling/InRelease Temporary failure resolving 'http.kali.org'
    W: Some index files failed to download. They have been ignored, or old ones used instead.

    My internet works fine, my DNS is set to google DNS 8.8.8.8 and my GPG keyring is up to date.

    root@kali:~# kali-archive-keyring is already the newest version (2015.2).

    this is my source.list:

    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


    my kali info:

    Linux kali 3.4.105-g766de8b #1 SMP PREEMPT Sun May 29 13:33:54 PDT 2016 armv7l GNU/Linux

    Distributor ID: Kali
    Description: Kali GNU/Linux Rolling
    Release: kali-rolling
    Codename: kali-rolling

  2. #2
    Join Date
    2016-Oct
    Posts
    2
    Hi jeret,

    You are not alone! The majority of my experience with Kali so far, has been updating her. As I "newbie" I expect frustrations related to the learning curve, but when I am following official instructions to the letter, I look for results. Out of frustration, I once yelled, "This is worse than windows!"

    Just a few moments ago, I noticed something and hope a kind, cool and brilliant pioneer will shed some light.

    Regarding repositories, the official Kali documentation lists two different addresses:

    http://docs.kali.org/faq
    deb http://http.kali.org/kali kali-rolling main non-free contrib

    http://docs.kali.org/general-use/kal...t-repositories
    deb http://http.kali.org/kali kali-rolling main contrib non-free

    My question: Which is correct? Can I use both? Does it even matter?

  3. #3
    Join Date
    2014-Nov
    Posts
    8
    hmmm .. i've tried all the repositories at the official website. Nothing works.

  4. #4
    Join Date
    2016-Oct
    Posts
    1
    Hello,

    I have the same error when I update, and
    I have seen that in http://http.kali.org/dists are the folder kali-rolling/ then then I will put the following:

    deb http://http.kali.org/dists/ kali-rolling main contrib non-free

    I will tell you the result

    A greeting

  5. #5
    Join Date
    2016-Oct
    Posts
    1
    Using putty connect to Nethunter and Run
    vi /etc/passwd,
    Change the line
    _apt:x:104:3004::/nonexistent:/bin/false to _apt:x:0:65534::/nonexistent:/bin/false
    Save and Run apt-get update ,It Works Check it ,
    Explanation: Changing GID 3004 to 65534 ,What is GID 3004 on your system?
    The fact that the _apt user is part of "nogroup" is actually the problem.
    Last edited by mlrkumar; 2016-10-31 at 06:56.

  6. #6
    Join Date
    2016-Nov
    Posts
    1
    HI, i can't update my kali nethunter because I receive "failed to fetch http://.... Not Found" error during updating. How can i fix it? Thanks in advance.

  7. #7
    Join Date
    2016-Oct
    Posts
    4
    I am having the same problem with apt-get update, tried every official repository and a combination of them, did not work.
    Has anyone found the solution to this ?

  8. #8
    Join Date
    2015-Aug
    Posts
    8
    I know this is an older thread, but... I was having the sort of the same issue. What I found is that I'm using Sophos UTM as my router, and for some reason it wouldn't update (haven't investigated the cause). The work around for me was to bypass the security appliance and use my basic home wifi. I'm not sure if this will help anyone, but it caused me several hours of frustration and made me a not very happy camper.

  9. #9
    Join Date
    2014-Nov
    Posts
    8
    Change source list to:
    deb http://kali.mirror.garr.it/mirrors/kali kali-rolling main non-free contrib
    deb-src http://kali.mirror.garr.it/mirrors/kali kali-rolling main non-free contrib

  10. #10
    Join Date
    2016-Dec
    Posts
    1

    Don't want "testing" repo updates, is there another valid source to pull only Stable?

    Quote Originally Posted by jeret View Post
    Change source list to:
    deb http://kali.mirror.garr.it/mirrors/kali kali-rolling main non-free contrib
    deb-src http://kali.mirror.garr.it/mirrors/kali kali-rolling main non-free contrib

    I understand from researching a tiny bit that Kali is going the rolling update route which explains why older builds source lists do not work.

    However, my understanding (correct me if I am wrong) is that it is pulling these updates from the Debian Sid or "testing" repository (i.e. http://ftp.de.debian.org/debian sid main). And that would explain why I am getting 500+ updates available when I run a weekly 'apt update' on my newer Kali build.

    My question is this; Is there a valid way to still get stable updates without pulling from the rolling repo "kali-rolling" and getting all of the "testing" updates? My research came up empty.

    I've noticed on my latest Kali build it isn't as stable as the non-rolling build. Openvas, the main reason I use Kali is not starting correctly anymore and wasn't even installed by default on the newer rolling build DVDs. *sigh*

    ============================
    Relevent info, just in case it's needed:
    # uname -a
    Linux kali 4.0.0-kali1-amd64 #1 SMP Debian 4.0.4-1+kali2 (2015-06-03) x86_64 GNU/Linux
    # cat /etc/apt/sources.list
    #

    # deb cdrom:[Debian GNU/Linux 2.0 _Sana_ - Official Snapshot amd64 LIVE/INSTALL Binary 20150809-03:17]/ sana contrib main non-free

    #deb cdrom:[Debian GNU/Linux 2.0 _Sana_ - Official Snapshot amd64 LIVE/INSTALL Binary 20150809-03:17]/ sana contrib main non-free

    deb http://http.kali.org/kali sana main non-free contrib
    deb-src http://http.kali.org/kali sana main non-free contrib

    deb http://security.kali.org/kali-security/ sana/updates main contrib non-free
    deb-src http://security.kali.org/kali-security/ sana/updates main contrib non-free
    ============================

    Thanks ahead of time!

  11. #11
    Join Date
    2015-Nov
    Posts
    24
    deb http://http.kali.org/kali kali-rolling main contrib non-free
    # For source package access
    # deb-src http://http.kali.org/kali kali-rolling main contrib non-free
    deb-src http://http.kali.org/kali kali-rolling main contrib non-free

    copy and replace in sources.list

  12. #12
    Join Date
    2016-Oct
    Posts
    6
    Your /etc/sources.list should be:

    deb http://http.kali.org/kali kali-rolling main contrib non-free
    # For source package access, uncomment the following line
    # deb-src http://http.kali.org/kali kali-rolling main contrib non-free

    However if the above official source not working to you, you may use the official kali mirrors.
    1) Go to this link http://http.kali.org/README.mirrorlist
    2) under "mirrors which handle this country" copy any one of the link (example in my case: http://kali.cs.nctu.edu.tw/kali/README )
    3) Open nano /etc/apt/sources.list and paste it at the bottom.
    4) Remove "/README" from the link and make it looks like this -> "deb http://kali.cs.nctu.edu.tw/kali kali-rolling main contrib non-free"
    5) Comment all previous sources except the mirror that you just pasted.
    6) and finally your Mirror sources.list should be like this: (Example of my kali mirror sources.list)

    #Kali Linux Rolling Official Repositories
    #deb http://http.kali.org/kali kali-rolling main contrib non-free

    #Kali Linux Rolling Official Mirrors Repositories
    deb http://kali.cs.nctu.edu.tw/kali kali-rolling main contrib non-free

    7) Exit and write changes.
    8) Run apt-get clean && apt-get update and see if it works.
    9) If it still doesn't working, try to replace it with another mirror.

    Hope this helps anyone out there.

  13. #13
    Join Date
    2014-Nov
    Posts
    8
    @mlrkumar suggestion worked fine.

  14. #14
    Join Date
    2016-Dec
    Posts
    95

    Update nethunter

    Quote Originally Posted by jeret View Post
    hi i cannot seem to do an update in kali (nethunter)Kali GNU/Linux Rolling \n \l

    i keep getting this error:

    root@kali:~# apt-get update
    Err:1 http://http.kali.org/kali kali-rolling InRelease
    Temporary failure resolving 'http.kali.org'
    Reading package lists... Done
    W: Failed to fetch http://http.kali.org/kali/dists/kali-rolling/InRelease Temporary failure resolving 'http.kali.org'
    W: Some index files failed to download. They have been ignored, or old ones used instead.

    My internet works fine, my DNS is set to google DNS 8.8.8.8 and my GPG keyring is up to date.

    root@kali:~# kali-archive-keyring is already the newest version (2015.2).

    this is my source.list:

    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


    my kali info:

    Linux kali 3.4.105-g766de8b #1 SMP PREEMPT Sun May 29 13:33:54 PDT 2016 armv7l GNU/Linux

    Distributor ID: Kali
    Description: Kali GNU/Linux Rolling
    Release: kali-rolling
    Codename: kali-rolling
    If you check the nethunter app there is a part that says metapackages. I'm sure this is the equivalent to update.

  15. #15
    Join Date
    2017-Apr
    Posts
    2

    GroupID

    mrkumar - thanks for the tip. That took some serious sleuthing, I'm sure but you saved me a lot of time and effort. +1


    Quote Originally Posted by mlrkumar View Post
    Using putty connect to Nethunter and Run
    vi /etc/passwd,
    Change the line
    _apt:x:104:3004::/nonexistent:/bin/false to _apt:x:0:65534::/nonexistent:/bin/false
    Save and Run apt-get update ,It Works Check it ,
    Explanation: Changing GID 3004 to 65534 ,What is GID 3004 on your system?
    The fact that the _apt user is part of "nogroup" is actually the problem.

  16. #16
    Join Date
    2016-Dec
    Posts
    95
    Open kali terminal
    Cd /
    Cd /etc/apt
    Ls
    Mv sources.list /sdcard
    Now open up the root browser app and search down till you find sources.list you want to edit delete all
    Open up kali repo site and paste and copy the appropriate list you want as your repo
    Save list.
    Go back to the terminal and type
    Mv /sdcard/sources.list /etc/apt
    Voila you should be good to go

  17. #17
    Join Date
    2013-Apr
    Posts
    3
    Quote Originally Posted by mlrkumar View Post
    Using putty connect to Nethunter and Run
    vi /etc/passwd,
    Change the line
    _apt:x:104:3004::/nonexistent:/bin/false to _apt:x:0:65534::/nonexistent:/bin/false
    Save and Run apt-get update ,It Works Check it ,
    Explanation: Changing GID 3004 to 65534 ,What is GID 3004 on your system?
    The fact that the _apt user is part of "nogroup" is actually the problem.
    Thx ! This is perfect !

Similar Threads

  1. apt-get update Could not resolve 'http.kali.org'
    By evolition in forum TroubleShooting Archive
    Replies: 3
    Last Post: 2014-02-20, 22:11
  2. Unable to 'apt-get update', yet can ping 'http.kali.org'
    By Joe_Wulf in forum TroubleShooting Archive
    Replies: 2
    Last Post: 2013-05-22, 23:12

Tags for this Thread

Posting Permissions

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