解决KaliLinux中apt-getinstall的问题:E:Unabletolocat。。。在学习使⽤Kali Linux的过程中,由于新版Kali Linux 不再⾃带 BeEF,所以打算⽤apt-get install 安装⼀个 BeEF,即命令⾏输⼊:
sudo apt-get install beef-xss
然⽽会报错:E: Unable to locate package beef-xss
这是因为我们的Kali Linux中当前的apt资源列表中不到该包。
解决办法,更改apt的资源列表。
1. 编辑/etc/apt/sources.list⽂件:
sudo vim /etc/apt/sources.list
2. 添加旧的资源信息:
unabledeb /kali kali-rolling main contrib non-free
# For source package access, uncomment the following line
# deb-src /kali kali-rolling main contrib non-free
deb /kali sana main non-free contrib
deb /kali-security sana/updates main contrib non-free
# For source package access, uncomment the following line
# deb-src /kali sana main non-free contrib
# deb-src /kali-security sana/updates main contrib non-free
deb /kali moto main non-free contrib
# For source package access, uncomment the following line
# deb-src /kali moto main non-free contrib
3. 更新资源列表:
sudo apt-get update
更新完毕后重新安装⽬标应⽤即可。
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论