# Add Kali Repositories

Add Kali Repositories:\
sudo pluma /etc/apt/sources.list

\
Add the following at the end of the file:

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

![](https://3470531533-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJt73HdbsX25I3225DZBw%2Fuploads%2FST5PMWjFQl9vCtAbS14N%2Fimage.png?alt=media\&token=bbe6200e-7613-4641-9d78-f5a7f3a760a2)

When updating there should be an error.\


![](https://3470531533-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJt73HdbsX25I3225DZBw%2Fuploads%2FITtYxrKoRuMonEvcm1Rn%2Fimage.png?alt=media\&token=f8e3a0df-a04a-48ac-a3c4-e3a6191cfe2f)

`sudo` `apt install` `gnupg`

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

![](https://3470531533-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJt73HdbsX25I3225DZBw%2Fuploads%2FFSzhZ2HHSs5Og8fpbkG4%2Fimage.png?alt=media\&token=fa6baa3a-e641-418c-82e1-15f3b3766960)

\
`sudo` `apt-key add archive-key.asc`\


![](https://3470531533-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJt73HdbsX25I3225DZBw%2Fuploads%2Fc82cCRIpO1Jguqrv6t3l%2Fimage.png?alt=media\&token=5180cf0b-1743-44b9-81dd-ae2e9e1cdb82)

sudo apt update (DO NOT UPGRADE YET)

![](https://3470531533-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJt73HdbsX25I3225DZBw%2Fuploads%2Fyk5TPMSaSIwKXysTWWAp%2Fimage.png?alt=media\&token=9f641807-7b0f-4a90-b50f-8f72281f4e8a)

Next the priority of packages from Kali repositories need to be established.  Giving Kali packages (ex. Kernels) lower priority means that they will be installed manually and not clash with our Debian stuffs.

pluma /etc/apt/preferences.d/kali.pref

Within the file just created put:

Package: \*\
Pin: release a=kali-rolling\
Pin-Priority: 50

![](https://3470531533-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJt73HdbsX25I3225DZBw%2Fuploads%2FGpmcpa8AUPcsKVIOXQno%2Fimage.png?alt=media\&token=b1b242d3-4a87-479e-8bd7-81ac1160af7a)

The last thing we are missing is ensuring that we download all dependencies with each new tool we get. &#x20;

sudo apt install aptitude\
sudo apt -y upgrade\
sudo aptitude -y upgrade



Now whenever you want to install a new tool:

sudo aptitude install \<YourNewToy>



Enjoy installing whatever Kali Tools you prefer.

![](https://3470531533-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJt73HdbsX25I3225DZBw%2Fuploads%2FXZbXcMzLA0gqaqy1Hm0z%2Fimage.png?alt=media\&token=fe516818-6973-4e7a-8bec-16086953e798)
