怎么给kali linux换源
时间: 2023-11-25 19:09:26 浏览: 75
更新kali linux源
5星 · 资源好评率100%
1. 打开终端,以root权限登录。
2. 备份源列表文件。
```
cp /etc/apt/sources.list /etc/apt/sources.list.bak
```
3. 修改源列表文件。
```
nano /etc/apt/sources.list
```
4. 将文件中的内容替换为以下内容。
```
# Kali linux repositories
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
# Additional repositories
deb http://http.kali.org/kali sana main non-free contrib
deb-src http://http.kali.org/kali sana main non-free contrib
deb http://http.kali.org/kali moto main non-free contrib
deb-src http://http.kali.org/kali moto main non-free contrib
deb http://http.kali.org/kali kali-dev main non-free contrib
deb-src http://http.kali.org/kali kali-dev main non-free contrib
deb http://http.kali.org/kali kali-dev main/debian-installer
deb-src http://http.kali.org/kali kali-dev main/debian-installer
```
5. 保存并关闭文件。
6. 更新源列表。
```
apt-get update
```
7. 换源完成。
阅读全文