Updated: 4 November 2026 · Applies to: Kali Linux 2026.3 (kali-rolling), apt 3.3, kali-archive-keyring 2025.2, tested

To update Kali Linux from the terminal, run these two commands:

sudo apt update
sudo apt full-upgrade -y

The first downloads the latest package lists, the second installs every update. Kali is a rolling release, so these same commands also take you to the newest Kali version: there is no separate version upgrade. Reboot afterwards if a new kernel was installed.

1. Check the Kali repository

Updates only work when apt points at the official Kali repository. Kali 2026.2 and newer use the deb822 format in /etc/apt/sources.list.d/kali.sources:

$ cat /etc/apt/sources.list.d/kali.sources
Types: deb
URIs: http://http.kali.org/kali/
Suites: kali-rolling
Components: main contrib non-free non-free-firmware
Signed-By: /usr/share/keyrings/kali-archive-keyring.gpg

Older installations use the one-line format in /etc/apt/sources.list:

deb http://http.kali.org/kali kali-rolling main contrib non-free non-free-firmware

Keep the Kali repository in one of the two places, not both. Never add Debian or Ubuntu repositories to Kali: according to Kali's documentation, that is the single most common reason why Kali systems break.

2. Update the package lists

sudo apt update

Lab example from a Kali 2026.3 container (download speeds and package counts on your system will differ):

Fetched 21.9 MB in 22s (988 kB/s)
Reading package lists...
Building dependency tree...
Reading state information...
3 packages can be upgraded. Run 'apt list --upgradable' to see them.

To see what will change before you upgrade:

$ apt list --upgradable
Listing...
login.defs/kali-rolling 1:4.20.2-2 all [upgradable from: 1:4.19.3-2]
mawk/kali-rolling 1.3.4.20260302-2 amd64 [upgradable from: 1.3.4.20260302-1]
passwd/kali-rolling 1:4.20.2-2 amd64 [upgradable from: 1:4.19.3-2]

3. Install the updates

sudo apt full-upgrade -y

Use full-upgrade, not upgrade. According to the apt manual, upgrade never removes an installed package, while full-upgrade removes one when that is needed to upgrade the system as a whole. On a rolling release, where packages are often renamed or replaced, a plain upgrade can hold updates back. -y answers yes to the confirmation; leave it out if you want to read the list first. Lab output:

Upgrading:
  login.defs  mawk  passwd

Summary:
  Upgrading: 3, Installing: 0, Removing: 0, Not Upgrading: 0
  Download size: 1669 kB
  Freed space: 12.3 kB

4. Clean up, reboot and check the version

  1. Remove packages that are no longer needed:
    sudo apt autoremove
  2. If the upgrade installed a new kernel (a linux-image package), reboot so it is used:
    sudo reboot
  3. Check which Kali release you are on now:
    $ grep VERSION= /etc/os-release
    VERSION="2026.3"

On a container or a minimal install, the update brings the base system up to date but adds no tools. Install a tool set with a Kali metapackage, for example sudo apt install -y kali-linux-headless (the default tools without a desktop) or sudo apt install -y kali-linux-default (the tools of the default desktop image).

5. Fix common update errors

Missing key 827C8569F2518CC677FECA1AED65462EC8D5E4C5. Kali changed its archive signing key, and systems that never received the new keyring fail like this (reproduced in our lab by emptying the keyring file):

Warning: Failed to fetch http://http.kali.org/kali/dists/kali-rolling/InRelease  Sub-process /usr/bin/sqv returned an error code (1), error message is: Missing key 827C8569F2518CC677FECA1AED65462EC8D5E4C5, which is needed to verify signature.
Warning: Some index files failed to download. They have been ignored, or old ones used instead.

Note that apt still ends with All packages are up to date, so read the warnings. The fix from Kali's announcement downloads the current keyring:

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

(With curl instead of wget: sudo curl https://archive.kali.org/archive-keyring.gpg -o /usr/share/keyrings/kali-archive-keyring.gpg.)

dpkg was interrupted. If an earlier update was stopped half-way, apt refuses to continue:

Error: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.

Finish the interrupted work, repair any broken dependencies, then run the upgrade again:

sudo dpkg --configure -a
sudo apt --fix-broken install
sudo apt full-upgrade -y

When not to update

Kali's documentation advises checking for updates every few days or weeks on a normal installation, but not updating during a penetration test, because a rolling update can occasionally break a tool you rely on. If you prefer fewer, tested updates, change Suites: kali-rolling to kali-last-snapshot, the quarterly point-release branch.

Related guides: How to Start NetworkManager on Kali Linux (Network Commands), Troubleshooting: Internet or Network Access on Kali Linux OS (when apt update cannot reach the repository), How to install SSH ( secure shell ) service on Kali Linux and, for Ubuntu and Debian, How to Update Ubuntu and Linux from the Command Line.

Official documentation: apt(8). Kali's own pages are "Updating Kali", "Kali network repositories" and the "New Kali archive signing key" announcement on kali.org.

Related services

Kali Linux VPS

pre-installed with VNC and full root for pentesting labs.

KVM VPS hosting

NVMe SSD and full root access, with Free Basic Managed Support.

Was this answer helpful?

Still stuck? Open a ticket