Bringing up a new Azure VM Instance of Kali Linux in 2021

You might notice something is amiss when you set up a new Kali Linux VM from the Azure VM Marketplace…

anthturner@mykalibox:~$ sudo apt update
Get:1 kali-rolling InRelease [30.6 kB]
Err:1 kali-rolling InRelease The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <>

This is happening because between the release of the Kali Rolling image used on the VM, and the current date, one or more certificates have expired. Right now, this happens with the usage of the current Kali Linux image present in the Azure VM Marketplace.

Fortunately a quick fix can get you back up and running!

anthturner@mykalibox:~$ wget --no-check-certificate && sudo dpkg -i kali-archive-keyring_2020.2_all.deb

This will pull the 2020.2 keyring and install that dpkg to your system. This forces your keyring to move up to date, which will then allow the use of apt commands (or anything else reliant on that!)

Happy Cybersecurity Awareness Month!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s