PDA

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



jeret
2016-10-12, 08:13
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

OKayLee
2016-10-13, 03:21
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!" :mad::mad:

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

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/kali-linux-sources-list-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?

jeret
2016-10-13, 08:22
hmmm .. i've tried all the repositories at the official website. Nothing works. :(

tx@mbe
2016-10-27, 11:49
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

mlrkumar
2016-10-30, 12:47
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.

franco985
2016-11-18, 06:27
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.

pxoto
2016-11-28, 04:19
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 ?

jaymayne
2016-11-29, 23:09
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.

jeret
2016-12-19, 06:25
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

Motorious
2016-12-21, 03:47
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!

Duane
2016-12-31, 22:10
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

IceMann
2017-01-02, 17:42
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.

jeret
2017-03-08, 15:00
@mlrkumar suggestion worked fine.

bigbiz
2017-03-30, 05:54
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.

b0gancircle
2017-04-01, 16:08
mrkumar - thanks for the tip. That took some serious sleuthing, I'm sure but you saved me a lot of time and effort. +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.

bigbiz
2017-06-02, 07:08
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

MrZeeAdd
2017-07-02, 20:21
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 !

unipulkitagg
2018-04-02, 13:58
keep the same sources.list as mentioned on official website of kali
and run this command

wget -q -O -https://archive.kali.org/archive-key.asc | apt-key add
and then try
apt-get update this will definitely solve this problem.
ThankYou.

Garri Nacov
2018-04-07, 22:16
it's worked, thank you!

ShankP
2018-10-18, 23:21
I'm getting this error after typing your mentioned command.

Here:-

root@kali:~# wget -q -O https://archive.kali.org/archive-key.asc | apt-key add
wget: missing URL
Usage: wget [OPTION]... [URL]...

Try `wget --help' for more options.
gpg: no valid OpenPGP data found.
root@kali:~#

I've no clue how to fix this, I'm new to kali-linux.:confused:

mansoor4455
2018-12-01, 20:06
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.

tkank you very very much. my problem fixed.

dhanashree
2018-12-07, 12:17
:) Thanks it solves my problem

Raju raj
2018-12-10, 07:35
HIII

Sir my self Raju plz i have see 1 error.



root@kali:~# apt-get update && apt-get upgrade
Get:1 http://kali.download/kali kali-rolling InRelease [30.5 kB]
Get:2 http://kali.download/kali kali-rolling/main Sources [12.4 MB]
Get:3 http://kali.download/kali kali-rolling/main amd64 Packages [16.7 MB]
Fetched 29.2 MB in 1min 11s (410 kB/s)
Reading package lists... Done
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3
W: Target Translations (main/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3
W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3
W: Target Packages (non-free/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3
W: Target Packages (non-free/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3
W: Target Translations (non-free/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3
W: Target Translations (non-free/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3
W: Target DEP-11 (non-free/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3
W: Target DEP-11 (non-free/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3
W: Target DEP-11-icons-small (non-free/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3
W: Target DEP-11-icons (non-free/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3
W: Target Packages (contrib/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3
W: Target Packages (contrib/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3
W: Target Translations (contrib/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3
W: Target Translations (contrib/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3
W: Target DEP-11 (contrib/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3
W: Target DEP-11 (contrib/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3
W: Target DEP-11-icons-small (contrib/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3
W: Target DEP-11-icons (contrib/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3
W: Target Translations (main/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3
W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3
W: Target Packages (non-free/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3
W: Target Packages (non-free/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3
W: Target Translations (non-free/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3
W: Target Translations (non-free/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3
W: Target DEP-11 (non-free/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3
W: Target DEP-11 (non-free/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3
W: Target DEP-11-icons-small (non-free/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3
W: Target DEP-11-icons (non-free/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3
W: Target Packages (contrib/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3
W: Target Packages (contrib/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3
W: Target Translations (contrib/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3
W: Target Translations (contrib/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3
W: Target DEP-11 (contrib/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3
W: Target DEP-11 (contrib/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3
W: Target DEP-11-icons-small (contrib/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3
W: Target DEP-11-icons (contrib/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list
Sir plz how to resolved this msg

kakulanex
2019-12-20, 00:38
this one works and solved the problem even for Kali Linux 2019.4

lw3eov
2021-01-05, 00:15
keep the same sources.list as mentioned on official website of kali
and run this command

wget -q -O -https://archive.kali.org/archive-key.asc | apt-key add
and then try
apt-get update this will definitely solve this problem.
ThankYou.

It should be:

wget -O a "https://archive.kali.org/archive-key.asc" | apt-key add a
apt-get update

kpr25121999
2021-12-29, 12:47
This command not working for me I need help https://forum.xda-developers.com/t/kernel-nethunter-for-galaxy-s20-fe-5g-r8q-snapdragon.4205881/

shamysharma
2022-01-08, 20:33
udo apt-get update
Get:1 http://ftp.harukasan.org/kali kali-rolling InRelease
Get:2 http://ftp.harukasan.org/kali kali-bleeding-edge InRelease
Get:3 http://ftp.harukasan.org/kali kali-experimental InRelease
Ign:1 http://ftp.harukasan.org/kali kali-rolling InRelease
Ign:2 http://ftp.harukasan.org/kali kali-bleeding-edge InRelease
Ign:3 http://ftp.harukasan.org/kali kali-experimental InRelease
Get:1 http://ftp.harukasan.org/kali kali-rolling InRelease
Get:2 http://ftp.harukasan.org/kali kali-bleeding-edge InRelease
Get:3 http://ftp.harukasan.org/kali kali-experimental InRelease
Ign:1 http://ftp.harukasan.org/kali kali-rolling InRelease
Ign:2 http://ftp.harukasan.org/kali kali-bleeding-edge InRelease
Ign:3 http://ftp.harukasan.org/kali kali-experimental InRelease
Get:1 http://ftp.harukasan.org/kali kali-rolling InRelease
Get:2 http://ftp.harukasan.org/kali kali-bleeding-edge InRelease
Get:3 http://ftp.harukasan.org/kali kali-experimental InRelease
Ign:1 http://ftp.harukasan.org/kali kali-rolling InRelease
Ign:2 http://ftp.harukasan.org/kali kali-bleeding-edge InRelease
Ign:3 http://ftp.harukasan.org/kali kali-experimental InRelease
Get:1 http://ftp.harukasan.org/kali kali-rolling InRelease
Get:2 http://ftp.harukasan.org/kali kali-bleeding-edge InRelease
Get:3 http://ftp.harukasan.org/kali kali-experimental InRelease
Err:1 http://ftp.harukasan.org/kali kali-rolling InRelease
Undetermined Error [IP: 192.168.1.1 80]
Err:2 http://ftp.harukasan.org/kali kali-bleeding-edge InRelease
Undetermined Error [IP: 192.168.1.1 80]
Err:3 http://ftp.harukasan.org/kali kali-experimental InRelease
Undetermined Error [IP: 192.168.1.1 80]
Reading package lists... Done
W: Failed to fetch http://http.kali.org/kali/dists/kali-rolling/InRelease Undetermined Error [IP: 192.168.1.1 80]
W: Failed to fetch http://http.kali.org/kali/dists/kali-bleeding-edge/InRelease Undetermined Error [IP: 192.168.1.1 80]
W: Failed to fetch http://http.kali.org/kali/dists/kali-experimental/InRelease Undetermined Error [IP: 192.168.1.1 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.

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[/QUOTE]

kvnschndr1
2022-10-04, 21:16
This error returned -
/etc/apt/trusted.gpg.d/kali_pi-archive-keyring.gpg pub expired:2022-08-29

sudo apt-key adv --keyserver keys.gnupg.net --recv-keys 11764EE8AC24832F

keyserver receive failed: Server indicated a failure..

please help

Hi All,

I'm trying to update the arm-image 64 bit on a raspberrypi 4 but i get this error when updating:

sudo apt-get update --allow-insecure-repositories --allow-unauthenticated
[sudo] password for kali:
Get:1 http://http.re4son-kernel.com/re4son kali-pi InRelease [8133 B]
Hit:2 https://ftp.halifax.rwth-aachen.de/kali kali-rolling InRelease
Ign:1 http://http.re4son-kernel.com/re4son kali-pi InRelease
Fetched 8133 B in 1s (6299 B/s)
Reading package lists... Done
W: GPG error: http://http.re4son-kernel.com/re4son kali-pi InRelease: The following signatures were invalid: EXPKEYSIG 11764EE8AC24832F Carsten Boeving <[email protected]>
W: The repository 'http://http.re4son-kernel.com/re4son kali-pi InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Does anyone have a fix for this?

Thanks in advance
well I found this on Twitter and it worked!! Try a different key server
sudo apt-key adv --keyserver hkp://pgp.mit.edu --recv-keys 11764EE8AC24832F
found 3 new signatures; processed 1
new signatures 3
and then apt-get update worked correctly again

PhoenixRiver
2022-12-15, 10:43
I'm not sure what everyones problem here is but if you have the problem of your clock being off or the apt update command saying that the in file release hasnt happened yet type

timedatectl set-ntp on