PDA

View Full Version : Temporary failure resolving 'http.kali.org'



tanyaka
2017-03-02, 12:43
Hi, I'm seeing the following:

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.

And it's the same for all mirrors. I've no problem with internet connectivity or dns, I can even wget http://http.kali.org/kali/dists/kali-rolling/InRelease.

This started after an apt-get upgrade && apt-get dist-upgrade so I think it has something to do with apt-get. _apt user is in group 65534.

Anyone got any ideas?

Outis
2017-03-02, 22:05
Hi tanyaka,

I too am experiencing this after returning from a trip. Most of the suggestions I have seen on the internet try to pin it to DNS, however I can confirm:

1. I can ping the address listed
2. Google's DNS server are set in my resolv.conf
3. after waiting a few hours to see if it was a DNS propagation issue the problem persists
4. the sources.list are consistent with those noted on the official kali blog
5. I have tried multiple networks with no change

Please let me know if you can think of anything else to test I'd like to understand what the problem is in this case.

tanyaka
2017-03-03, 10:21
Did your problems start happening after an apt-get dist-upgrade?

Outis
2017-03-03, 14:24
I believe that is true, I will have to look and see if there is a way I can confirm that via the logs later.

jafoca
2017-03-07, 15:29
Hi, I'm seeing the following:

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.

And it's the same for all mirrors. I've no problem with internet connectivity or dns, I can even wget http://http.kali.org/kali/dists/kali-rolling/InRelease.

This started after an apt-get upgrade && apt-get dist-upgrade so I think it has something to do with apt-get. _apt user is in group 65534.

Anyone got any ideas?

I am having the same issue after a completely fresh install. All I did was install the release on Nexus 7 2013, then update the Nethunter app to the latest version and reinstall chroot. Now I can't apt-get update / upgrade / dist-upgrade.

Anyone figure this out yet?

jafoca
2017-03-08, 00:00
I was able to get apt working by messing with my /etc/hosts file to bypass DNS resolution issues - in the end my file looked like this:

192.99.200.113 http.kali.org
209.126.116.149 archive-7.kali.org
209.126.116.149 archive-9.kali.org
167.114.101.151 archive-11.kali.org

Yours may need to be different, but if you follow the error messages after the first line (http.kali.org) you should be able to figure it out.

Really weird bug...

tanyaka
2017-03-08, 12:37
Yes strange I see this now:

root@kali:~# apt-get update
Ign:1 http://http.kali.org/kali kali-rolling InRelease
Err:2 http://http.kali.org/kali kali-rolling Release
Could not create a socket for 192.99.200.113 (f=2 t=1 p=6) - socket (13: Permission denied)
Reading package lists... Done
E: The repository 'http://http.kali.org/kali kali-rolling Release' does no longer have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Did you not get the permission denied error?

jafoca
2017-03-12, 18:49
Yes strange I see this now:

root@kali:~# apt-get update
Ign:1 http://http.kali.org/kali kali-rolling InRelease
Err:2 http://http.kali.org/kali kali-rolling Release
Could not create a socket for 192.99.200.113 (f=2 t=1 p=6) - socket (13: Permission denied)
Reading package lists... Done
E: The repository 'http://http.kali.org/kali kali-rolling Release' does no longer have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Did you not get the permission denied error?

I did not get a permissions error. Note that after getting the initial install working you have to also spend time getting the kernel updated. I am fighting that fight now and getting very frustrated...

Outis
2017-03-31, 13:43
Just a note to anyone that stumbles across this thread. I was able to fix this by removing chroot and re-adding. This defaulted to kali-rolling instead of the previous repo's and it now works flawlessly without requiring any tweaking.

**NOTE you must back up any data you have stored in the chroot as you will lose it**

tanyaka
2017-03-31, 15:18
Yep, did the trick for me, thanks for sharing.

b0gancircle
2017-04-01, 16:13
One thing to check pointed out by mrkumar on this thread:
https://forums.kali.org/showthread.php?33399-Cannot-apt-get-update-Err-1-http-http-kali-org-kali-kali-rolling-InRelease

You don't need to use putty or ssh, regular vi or nano will do from a terminal session but the groupid's were wrong on my ootb nethunter install if anyone else is experiencing the same issue:

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.

Stories
2017-09-05, 02:05
Yes strange I see this now:

root@kali:~# apt-get update
Ign:1 http://http.kali.org/kali kali-rolling InRelease
Err:2 http://http.kali.org/kali kali-rolling Release
Could not create a socket for 192.99.200.113 (f=2 t=1 p=6) - socket (13: Permission denied)
Reading package lists... Done
E: The repository 'http://http.kali.org/kali kali-rolling Release' does no longer have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Did you not get the permission denied error?



Just a note to anyone that stumbles across this thread. I was able to fix this by removing chroot and re-adding. This defaulted to kali-rolling instead of the previous repo's and it now works flawlessly without requiring any tweaking.

**NOTE you must back up any data you have stored in the chroot as you will lose it**

How exactly would I fix this error?

reubadoob
2017-09-09, 00:30
I just got the error as well. I think Kali has to updated the repositories and it should be fixed hopefully soon. My laptop running Kali is updating fine but my RPi2B is receiving the error.

dimitri
2020-04-28, 20:47
I was able to get apt working by messing with my /etc/hosts file to bypass DNS resolution issues - in the end my file looked like this:

Yours may need to be different, but if you follow the error messages after the first line (http.kali.org) you should be able to figure it out.

Really weird bug...

Can you please walk me through how you fixed yours? I can't seem to get through with this.

zjh24a
2020-05-25, 23:29
its seems to be a dbus issue I just run "sudo service dbus start or restart" and it the error goes away hope this helps?

wes2859
2020-08-25, 16:24
I experienced this also. I had already made adjustments to /etc/apt/sources.list to point to the
required repositories. Updating/upgrading failed. Other than the repositories being added to the
sources.list file? I changed nothing within the OS! Post reboot & re-run of update/upgrade?
Still failed. Re-checked sources.list file? All ok.
So... I shut the Kali VM down & checked VB settings.

I changed the Ethernet adapter in Virtualbox from NAT to 'bridged' to
local Ethernet adapter.

Re-Booted & successfully ran update, upgrade & dist-upgrade with
no issues.
Given that Kali is a pentest tool? I suspect it doesn't like 'double NAT'

Hope this helps. It worked flawlessly for me

Tks

Wes

WayneSkymn
2020-11-10, 06:26
That doesnt say you cant though....Compare page 14:A player can resolve dice with different values during the same action, provided they share a symbol.I realize this is under the Resolve Dice action, but Im not sure when reading this what is prohibiting me from resolving more than one die.As a side note, something tells me you are right that you only resolve the one. I just cant find it in the rules.

FirtusCahi
2021-03-26, 09:13
To resolve the error you must check /etc/resolv.conf
This file is the resolver configuration file in Linux systems.
It contains the DNS entries that help your Linux system to resolve domain names into IP addresses.
If this file is not present or is there but you are still having the name resolution error, create one and append the Google public DNS server as shown
nameserver 8.8.8.8

zhihuiyuze
2021-12-11, 04:51
If you are useing nethunter,edit /etc/passwd.and add _apt: x :0:65534::/nonexistent:/bin/false

deepaknegi
2022-01-30, 20:27
This solution worked. Thanks


To resolve the error you must check /etc/resolv.conf
This file is the resolver configuration file in Linux systems.
It contains the DNS entries that help your Linux system to resolve domain names into IP addresses.
If this file is not present or is there but you are still having the name resolution error, create one and append the Google public DNS server as shown
nameserver 8.8.8.8

ohhru
2022-04-12, 02:28
To resolve the error you must check /etc/resolv.conf
This file is the resolver configuration file in Linux systems.
It contains the DNS entries that help your Linux system to resolve domain names into IP addresses.
If this file is not present or is there but you are still having the name resolution error, create one and append the Google public DNS server as shown
nameserver 8.8.8.8


If anyone is coming here using WSL and getting the error, doing what this dude suggested worked.

RealuNondaba
2022-06-27, 08:37
:d:d:d:d:d
i experienced this also. I had already made adjustments to /etc/apt/sources.list to point to the
required repositories. Updating/upgrading failed. Other than the repositories being added to the
sources.list file? i changed nothing within the os! Post reboot & re-run of update/upgrade?
Still failed. Re-checked sources.list file? All ok.
So... I shut the kali vm down & checked vb settings.

i changed the ethernet adapter in virtualbox from nat to 'bridged' to
local ethernet adapter.

re-booted & successfully ran update, upgrade & dist-upgrade with
no issues.
Given that kali is a pentest tool? I suspect it doesn't like 'double nat'

hope this helps. It worked flawlessly for me

tks

wes

wowparzival
2022-12-07, 01:40
I needed to create a resolv.conf file since my kali WSL only had a resolv.conf~ file (which had nameserver 8.8.8.8 already but didn't work). Thank you


If anyone is coming here using WSL and getting the error, doing what this dude suggested worked.

https://forums.kali.org/images/misc/quote_icon.png Originally Posted by FirtusCahi https://forums.kali.org/images/buttons/viewpost-right.png (https://forums.kali.org/showthread.php?p=105994#post105994)
To resolve the error you must check /etc/resolv.conf
This file is the resolver configuration file in Linux systems.
It contains the DNS entries that help your Linux system to resolve domain names into IP addresses.
If this file is not present or is there but you are still having the name resolution error, create one and append the Google public DNS server as shown
nameserver 8.8.8.8