Kali replacement source (super detailed, with domestic high-quality mirror source address)

1. Enter the console under the administrator.

2. Enter the password and click "Authorize".

3. Enter the following content in the console.

vim /etc/apt/sources.list

4. After hitting enter, you will enter the following page.

5. The first step after coming to this page is to press the "i" key on the keyboard, and "Insert" appears in the lower left corner, indicating that the operation is correct.

6. Use "#" to comment out the original source.

7. Select one of the sources below to copy and paste it in (all high-quality sources, you can copy any one).

中科大Kali镜像源

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
阿里云Kali镜像源

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
清华大学Kali镜像源

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

8. Paste the source copied above to the location shown in the figure below.

9. Press the "ESC" key on the keyboard, and the "Insert" in the lower left corner disappears, indicating that the operation is correct.

10. Input ":wq!" (Note to use the English input method), this step is to save the configuration and exit.

:wq!

11. After pressing Enter, it is successfully saved and exited.

12. Then execute the following command to update the source.

apt-get update

13. After pressing Enter, just wait for about a minute, and the following page will appear, which means the update is successful.

14. Next, you can use the following command to update the software (if you don’t need to update, you can ignore the following content).

命令1:
apt-get upgrade

命令2:
apt-get dist-upgrade

上面两条命令均是用来更新所有软件的,不同的是:
它能识别新版本的依赖关系,
将不要的依赖进行卸载,
将需要升级的依赖进行升级。

  • Note:

        During the software update, it may be necessary to confirm, configure, display the update log, etc., just follow the prompts.

15. After the installation or update is completed, some software installation packages will be left over, which will occupy part of the hard disk space. You can use the following commands to clean them up.

apt-get clean

Guess you like

Origin blog.csdn.net/weixin_62808713/article/details/130372239