Help with Kali-Linux

Hi, i got problems with Kali Linux Core. Problem is that i downloaded Kali Linux Core but i only have a linux, so i want to know what is the command or thing to get the default tools of Kali Linux i have been looking to fix it but i cant find, if i can get someone helping me of the amazing Qubes Community i would really appreciate

Hi @QubesUserNeedHelp and welcome here! You need to provide more details of what you are trying to do, how (which qube, which template, etc.) and what is not working, for us to help you.

do you mean with kali linux core the template from the template manager?

Make sure that you have the kali repository defined under
/etc/apt/sources.list

It sounds as if you want to install a metapackage that will bring in
other tools. Possible candidates are kali-linux-default and
kali-linux-everything.
Kali is a Debian bvased system, so the command you want to use to
install packages is apt - run as root.
Open a terminal in the template and issues sudo apt install kali-linux-default - make sure that you have sufficient space in the
root volume before you do this - you can change this from the qube
settings.

I never presume to speak for the Qubes team.
When I comment in the Forum I speak for myself.

Ok guys, wait

My problem is that i downloaded the Kali Core Template using the
ā€œsudo qubes-dom0-update --enablerepo=qubes-templates-community-testing qubes-template-kali-coreā€ command but when i am inside it and for example i do the command ā€œsudo apt install kali-linux-defaultā€ it says that kali-linux-default dosent exist BUT in my /etc/apt/sources.list i only have deb.debian.org links but i dont know what to put to get kali linux repo inside it

According to Kali Network Repositories (/etc/apt/sources.list) | Kali Linux Documentation

echo "deb http://http.kali.org/kali kali-rolling main contrib non-free non-free-firmware" | sudo tee -a /etc/apt/sources.list
1 Like

You don’t have a separate file for kali repository e.g. /etc/apt/sources.list.d/kali.list?

I only have in the /etc/apt/sources.list.d/ directory the qubes-r4.list which only contains qubes related list

There seems to be a problem with the latest kali-core template:

Is there another one that works ?

It works, but since it have no repository added you need to add it manually.
There was command on Arch linux how to add it to /etc/apt/sources.list but you could do it to /etc/apt/sources.list.d/` as well:

echo "deb http://http.kali.org/kali kali-rolling main contrib non-free non-free-firmware" | sudo tee /etc/apt/sources.list.d/kali-rolling.list

Ok i got it

E: The repository ā€˜Index of / kali-rolling InRelease’ is not signed.

Thats what i’am doing but i have key problems: public key is not available NO_PUBKEY (Key)

$ sudo wget https://archive.kali.org/archive-keyring.gpg -O /usr/share/keyrings/kali-archive-keyring.gpg
Saving '/usr/share/keyrings/kali-archive-keyring.gpg'
HTTP response 200 OK [https://archive.kali.org/archive-keyring.gpg]
/usr/share/keyrings/ 100% [======================================================================================>]    3.38K    --.-KB/s
                          [Files: 1  Bytes: 3.38K [3.86KB/s] Redirects: 0  Todo: 0  Errors: 0                     ]

???

PS: I don’t use Kali, I don’t use Debian - Fedora only

user@kali-core:~$ gpg /usr/share/keyrings/kali-archive-keyring.gpg
gpg: directory ā€˜/home/user/.gnupg’ created
gpg: keybox ā€˜/home/user/.gnupg/pubring.kbx’ created
gpg: WARNING: no command supplied. Trying to guess what you mean …
pub rsa4096 2025-04-17 [SC] [expires: 2028-04-17]
827C8569F2518CC677FECA1AED65462EC8D5E4C5
uid Kali Linux Archive Automatic Signing Key (2025) devel@kali.org
pub rsa4096 2012-03-05 [SC] [expires: 2027-02-04]
44C6513A8E4FB3D30875F758ED444FF07D8D0BF6
uid Kali Linux Repository devel@kali.org
sub rsa4096 2012-03-05 [E] [expires: 2027-02-04]

I get this but when i do a sudo apt update it says

Err:5 Index of /kali/ kali-rolling InRelease

The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY ED65462EC8D5E4C5

Reading package lists… Done

W: GPG error: Index of /kali/ kali-rolling InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY ED65462EC8D5E4C5

E: The repository ā€˜Index of / kali-rolling InRelease’ is not signed.

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.

You need to install that key in a way that apt can use it.
The correct way is to put the key in /usr/share/keyrings, and then
reference it in the list file like this:
deb [signed-by=/usr/share/keyrings/kali-archive-keyring.gpg ...

I never presume to speak for the Qubes team.
When I comment in the Forum I speak for myself.

1 Like
1 Like

I did this before and got same thing