Skip to main content
  1. Blog Posts/
  2. Resources/
  3. Kali Linux Set-up/

Alternative Kali Mirrors

··153 words·1 min

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:

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