Skip to content

Instantly share code, notes, and snippets.

@warecrash
Last active May 18, 2025 19:24
Show Gist options
  • Save warecrash/f35d4f9a822c452b0c54bbdb47c0c9a5 to your computer and use it in GitHub Desktop.
Save warecrash/f35d4f9a822c452b0c54bbdb47c0c9a5 to your computer and use it in GitHub Desktop.
Convert Debian to Kali
apt update
apt -y install wget gnupg dirmngr
wget -q -O - https://archive.kali.org/archive-key.asc | gpg --import
gpg --keyserver hkp://keys.gnupg.net --recv-key 44C6513A8E4FB3D30875F758ED444FF07D8D0BF6
echo "deb http://http.kali.org/kali kali-rolling main non-free contrib" >> /etc/apt/sources.list
gpg -a --export ED444FF07D8D0BF6 | sudo apt-key add -
apt update
apt -y upgrade
apt -y dist-upgrade
apt -y autoremove --purge
apt -y install kali-linux-everything
@TheMadTomato
Copy link

i can skip the last part of installing kali for everything right? like download the each tool i need manually.

@phocean
Copy link

phocean commented Aug 11, 2023

@TheMadTomato Sure. That's what I do and would recommend by the way : keep it slim with only useful stuff.

@syztem4our666
Copy link

syztem4our666 commented Feb 13, 2024

For me worked but need to do something more, need to add priority to kali repos cause was giving me unmet dependencies
> sudo nano /etc/apt/preferences.d/kali-preferences.pref

And inside file:

Package: *
Pin: release o=kali
Pin-Priority: 1000

Then worked perfectly !

@proxyanon
Copy link

thanks a lot ma boy

@exatonix
Copy link

Fixed and Updated by me:

wget https://http.kali.org/pool/main/k/kali-archive-keyring/kali-archive-keyring_2024.1_all.deb

apt install ./kali-archive-keyring_2024.1_all.deb

first of put first line in terminal then enter

second use sudo with second line and enter. it is install correctly

@exatonix
Copy link

LOG:

sudo apt update
Get:2 http://kali.download/kali kali-rolling InRelease [41.5 kB]
Get:5 http://kali.download/kali kali-rolling/main Sources [16.8 MB]
Hit:6 http://mirrors.ocf.berkeley.edu/debian bookworm InRelease
Hit:7 http://mirrors.ocf.berkeley.edu/debian bookworm-updates InRelease
Get:8 http://kali.download/kali kali-rolling/contrib Sources [76.7 kB]
Get:9 http://kali.download/kali kali-rolling/non-free Sources [118 kB]
Get:10 http://kali.download/kali kali-rolling/main amd64 Packages [20.3 MB]
Get:11 http://kali.download/kali kali-rolling/non-free amd64 Packages [192 kB]
Get:12 http://kali.download/kali kali-rolling/contrib amd64 Packages [112 kB]
Reading package lists... Done

W: Target Packages (contrib/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:12 and /etc/apt/sources.list.d/archive_uri-http_http_kali_org_kali-bookworm.list:1

@exatonix
Copy link

I FORGOT TO SAY DON'T INSTALL KALI ISO OR SYSTEM OR INSIDE ON DEBIAN.

because LATEST KALİ 2024.4 SHIT WITH SYSTEM-WIDE PYTHON3 PACKAGES BROKE ALL OF SYSTEM..

UNTIL FIX use another distros or offical debian 11 or 12 etc.

@Allesanddro
Copy link

sudo wget https://archive.kali.org/archive-keyring.gpg -O /usr/share/keyrings/kali-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/kali-archive-keyring.gpg] http://http.kali.org/kali kali-rolling main non-free contrib" >> /etc/apt/sources.list

apt-key is deprecated use this instead

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