Kali for Aliyuan

1.cat -n /etc/apt/sources.list
comment the underlined partInsert picture description here

  1. Edit the file vim /etc/apt/sources.list to
    add two lines
deb https://mirrors.aliyun.com/kali kali-rolling main non-free contrib 
deb-src https://mirrors.aliyun.com/kali kali-rolling main non-free contrib

apt update test

root@kali:~# apt update
命中:1 https://mirrors.aliyun.com/kali kali-rolling InRelease
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
有 1980 个软件包可以升级。请执行 ‘apt list --upgradable’ 来查看它们。

Guess you like

Origin blog.csdn.net/weixin_45079974/article/details/109243271