I need help kali sources.list

i tried every single solution for that problem boys i can’t really install anytyhing , when i try to install anything , i see errors in the connecting with sources and ofc i get errors for installing anything , guys i really need help , that problems kill me

have you tried running “apt-get update” as suggested?

And is your system up-to-date?


you mean this ?

i don’t get it, wdym ?

there is a key ring message, have you fetched the new key already?

I meant have you updated the OS according to the documentation I linked

i didn’t , could you tell me what should i exactly do ?

i think i didn’t how to do ?

Sure. Are you not seeing the links?

So first, the keyring thing:

sudo wget https://archive.kali.org/archive-keyring.gpg -O /usr/share/keyrings/kali-archive-keyring.gpg

then a normal update:

kali@kali:~$ sudo apt update
kali@kali:~$
kali@kali:~$ sudo apt full-upgrade -y
kali@kali:~$


i get errors when i try to update

look here’s my sources.list , should i replace them or what?

I’m on my phone right now, bit hard to see.
According to the docs it should look like this

kali@kali:~$ cat /etc/apt/sources.list
# See https://www.kali.org/docs/general-use/kali-linux-sources-list-repositories/
deb http://http.kali.org/kali kali-rolling main contrib non-free non-free-firmware

# Additional line for source packages
# deb-src http://http.kali.org/kali kali-rolling main contrib non-free non-free-firmware
kali@kali:~$

First - clean that up, its a mess
Make sure it matches what the docs tell you to have there

Second - that pgp key error is not for the kali repo, its for the docker repo - import their new key, or delete that part.

1 Like

If you still experience network unreachable errors then, and only then, try kali-tweaks and switch to a cloudflare cdn

1 Like