> For the complete documentation index, see [llms.txt](https://riteshs4hu.gitbook.io/infosec-notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://riteshs4hu.gitbook.io/infosec-notes/kali-linux-setup/kali-linux-gnupg-installation-error.md).

# Kali Linux gnupg installation error

{% hint style="danger" %}
E: Package 'gnupg' has no installation candidate
{% endhint %}

👉 **Manually download the Kali archive key and place it in the trusted directory.**

Here is the exact set of commands for your Kali 2024.1:

* Download the archive signing key

```bash
wget https://archive.kali.org/archive-key.asc
```

* Create the trusted.gpg.d directory (if not already present)

```bash
sudo mkdir -p /etc/apt/trusted.gpg.d/
```

* Copy the key to the trusted.gpg.d directory

```bash
sudo cp archive-key.asc /etc/apt/trusted.gpg.d/kali-archive-key.asc
```

* Now update the package lists again

```bash
sudo apt update
```
