解决Kali Linux E:Unable to locate package

问题:在Kali中无法安装软件包。

报错:E:Unable to locate package 

解决步骤:

第一步:打开sources.list文件

sudo vim /etc/apt/sources.list

第二步:在文件中添加以下内容

deb http://http.kali.org/kali kali-rolling main contrib non-free
deb http://http.kali.org/kali sana main non-free contrib
deb http://security.kali.org/kali-security sana/updates main contrib non-free
deb http://old.kali.org/kali moto main non-free contrib

第三步:然后输入:wq保存退出,再进行更新

sudo apt-get update

这时,你再进行安装你所需要的东西即可!

猜你喜欢

转载自blog.csdn.net/ctfayang/article/details/142589733