Skip to content

Instantly share code, notes, and snippets.

@jayluxferro
Created October 13, 2022 15:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jayluxferro/5758f237106df05d3b436db6c49c9f99 to your computer and use it in GitHub Desktop.
Save jayluxferro/5758f237106df05d3b436db6c49c9f99 to your computer and use it in GitHub Desktop.
Fix for Kali apt-key deprecation warning when updating system

Run the command below to fix apt-key deprecation warning in Kali

sudo apt-get update

sudo apt-get install \
    ca-certificates \
    curl \
    gnupg \
    lsb-release

sudo mkdir -p /etc/apt/keyrings


curl -fsSL https://archive.kali.org/archive-key.asc  | sudo gpg --dearmor -o /etc/apt/keyrings/kali.gpg

echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/kali.gpg] http://http.kali.org/kali kali-rolling main contrib non-free" | sudo tee /etc/apt/sources.list > /dev/null


apt-get update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment