Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

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

  1. #11
    Junior Member
    Join Date
    Nov 2015
    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

  2. #12
    Junior Member
    Join Date
    Oct 2016
    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.

  3. #13
    Junior Member
    Join Date
    Nov 2014
    Posts
    8
    @mlrkumar suggestion worked fine.

  4. #14
    Junior Member
    Join Date
    Dec 2016
    Posts
    19

    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.

  5. #15
    Junior Member
    Join Date
    Apr 2017
    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.

  6. #16
    Junior Member
    Join Date
    Dec 2016
    Posts
    19
    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

  7. #17
    Junior Member
    Join Date
    Apr 2013
    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 !

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
  •