kali Linux update source tutorial

1. Because changing the source requires root privileges, you must switch to root login before changing the source.

2. Ordinary users who have opened Kali can open the terminal and use the sudo su command to log in. During this period, the password entered will not be displayed.

 3. After entering, enter the command and edit it.

vim /etc/apt/sources.list

 4. Since kali defaults to foreign sources and the download is too slow, we choose domestic sources.

#中科大
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://kali.download/kali kali-rolling main contrib non-free

5. After pasting in, press ESC, then hold down Shift+: enter wq! (force save and exit)

 6. After inputting and saving, use the command to update the source.

apt-get update         #获取更新包/更新软件  
apt upgrade             #强知更新  

Guess you like

Origin blog.csdn.net/2302_78587828/article/details/132173465