Alternative Kali Mirrors
Table of Contents
Please make sure to review the following configuration before proceeding.
It might be the case that the Administrator of your currently-used network intentionally blocked the https://kali.download and https://kali.org websites from being accessed. This means that Kali’s apt
package manager is rendered unusable by default. In this case, in order to download additional packages, you have to change to default mirror to a different one.
Notable Kali mirrors include:
- https://mirrors.ocf.berkeley.edu/kali/ (recommended)
- https://mirrors.dotsrc.org/kali/
- https://mirror.serverion.com/kali/
- https://mirror.anigil.com/kali/
- https://ftp.hands.com/kali/
Option 1: Manually #
Run the following script from your Kali command-line session, with the alternative mirrors of your choosing:
sudo sed -i 's$http://http.kali.org/kali$https://mirrors.ocf.berkeley.edu/kali/$' /etc/apt/sources.list
sudo apt update
Option 2: Automatically (Vagrant only) #
Please make sure to review the following configuration before proceeding.
Add the following configuration to your Vagrantfile
, with the alternative mirrors of your choosing:
config.vm.provision "shell", inline: <<-SCRIPT
cp -f /etc/apt/sources.list{,.bkup}
cp -f /etc/apt/sources.list /tmp
sed -i 's$http://http.kali.org/kali$https://mirrors.ocf.berkeley.edu/kali/$' /tmp/sources.list
cat /tmp/sources.list > /etc/apt/sources.list
sudo apt update
SCRIPT