kali修改为国内源

1
vim /etc/apt/sources.list
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#中科大
deb http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
deb-src http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
 
#阿里云
deb http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
deb-src http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
 
#清华大学
deb http://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free
 
#浙大
deb http://mirrors.zju.edu.cn/kali kali-rolling main contrib non-free
deb-src http://mirrors.zju.edu.cn/kali kali-rolling main contrib non-free
 
#东软大学
deb http://mirrors.neusoft.edu.cn/kali kali-rolling/main non-free contrib
deb-src http://mirrors.neusoft.edu.cn/kali kali-rolling/main non-free contrib
 
#官方源
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
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# 中科大源
deb http://mirrors.ustc.edu.cn/debian buster main contrib non-free
deb http://mirrors.ustc.edu.cn/debian buster-updates main contrib non-free
deb http://mirrors.ustc.edu.cn/debian buster-backports main contrib non-free
deb http://mirrors.ustc.edu.cn/debian-security/ buster/updates main contrib non-free

#deb-src http://mirrors.ustc.edu.cn/debian buster main contrib non-free
#deb-src http://mirrors.ustc.edu.cn/debian buster-updates main contrib non-free
#deb-src http://mirrors.ustc.edu.cn/debian buster-backports main contrib non-free
#deb-src http://mirrors.ustc.edu.cn/debian-security/ buster/updates main contrib non-free

# 阿里云
deb http://mirrors.aliyun.com/debian/ buster main non-free contrib
deb http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
deb http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib
deb http://mirrors.aliyun.com/debian-security buster/updates main

#deb-src http://mirrors.aliyun.com/debian/ buster main non-free contrib
#deb-src http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
#deb-src http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib
#deb-src http://mirrors.aliyun.com/debian-security buster/updates main

# 网易源
deb http://mirrors.163.com/debian/ buster main non-free contrib
deb http://mirrors.163.com/debian/ buster-updates main non-free contrib
deb http://mirrors.163.com/debian/ buster-backports main non-free contrib
deb http://mirrors.163.com/debian-security/ buster/updates main non-free contrib

#deb-src http://mirrors.163.com/debian/ buster main non-free contrib
#deb-src http://mirrors.163.com/debian/ buster-updates main non-free contrib
#deb-src http://mirrors.163.com/debian/ buster-backports main non-free contrib
#deb-src http://mirrors.163.com/debian-security/ buster/updates main non-free contrib

# 官方源
deb http://deb.debian.org/debian buster main contrib non-free
deb http://deb.debian.org/debian buster-updates main contrib non-free
deb http://deb.debian.org/debian-security/ buster/updates main contrib non-free

#deb-src http://deb.debian.org/debian buster main contrib non-free
#deb-src http://deb.debian.org/debian buster-updates main contrib non-free
#deb-src http://deb.debian.org/debian-security/ buster/updates main contrib non-free
1
sudo apt update && sudo apt upgrade -y