Kali Linux Repository Mirror Usage Guide
Some content in this document may have been translated by AI.
Kali Introduction and Software Management
Kali Linux is an open-source, Debian-based Linux distribution designed to provide powerful tool support for various information security tasks including penetration testing, security research, and reverse engineering.
Kali uses the package management tool APT to manage DEB packages. Specifically, Kali manages system software sources by modifying the /etc/apt/sources.list configuration file. Generally, users can directly replace the default source address http://http.kali.org/ in this configuration file with this software mirror site.
Kali Software Source Replacement
One-click Source Replacement
This method only applies to switching from the official source to this site source. If you have already changed the source, please do not use the following command.
Use the sed command to directly replace the default source address http://http.kali.org/ in the software source configuration file with the current mirror source site.
操作方法:替换文件中的内容
替换文件1:/etc/apt/sources.list
示例命令:
sudo sed -i.bak -E -e "s|https?://([^/]+)/kali|https://mirrors.hust.edu.cn/kali|g" /etc/apt/sources.list
To avoid problems when replacing software source configuration files, please make a backup of the system's default software source configuration files before proceeding.
Early versions of Kali Linux are not supported by this site.
1. Make your choice based on personal preference, and replace /etc/apt/sources.list with the following content
# See https://w.kali.org/docs/general-use/kali-linux-sources-list-repositories/
deb https://mirrors.hust.edu.cn/kali kali-rolling main contrib non-free non-free-firmware
# Additional line for source packages
# deb-src https://mirrors.hust.edu.cn/kali kali-rolling main contrib non-free non-free-firmware
2. Update software with the following command
操作方法:执行命令
执行命令:
sudo apt-get update
Notes
- Kali uses HTTP sources by default. If you choose to use HTTPS sources and encounter issues pulling HTTPS sources, please use HTTP sources to install the following software.
sudo apt install apt-transport-https ca-certificates
sudo apt update
Kali CD Images and Virtual Machine Images
This site provides download services for Kali Linux CD images and virtual machine images.
- Click this link, select the required version and architecture to download the desired Kali Linux installation image.