Kali Linux 无法定位软件包

Posted 毛毛 - 非科班的理科生

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Kali Linux 无法定位软件包相关的知识,希望对你有一定的参考价值。

1. 无法定位软件包

   在/etc/apt/sources.list 文件中更新配置源文件,内容如下:

 (需要把官方源注释掉)

# 
 
#deb cdrom:[Debian GNU/Linux 2018.2 _Kali-rolling_ - Official Snapshot amd64 LIVE/INSTALL Binary 20180412-10:55]/ kali-last-snapshot contrib main non-free
 
#deb cdrom:[Debian GNU/Linux 2018.2 _Kali-rolling_ - Official Snapshot amd64 LIVE/INSTALL Binary 20180412-10:55]/ kali-last-snapshot contrib main non-free
# 官方源
# deb-src http://http.kali.org/kali/ kali-rolling main non-free contrib
deb http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
deb http://http.kali.org/kali kali-rolling main non-free contrib
# 中科大源
deb http://mirrors.ustc.edu.cn/kali kali main non-free contrib
deb-src http://mirrors.ustc.edu.cn/kali kali main non-free contrib
deb http://mirrors.ustc.edu.cn/kali-security kali/updates main contrib non-free
# 阿里云kali源
deb http://mirrors.aliyun.com/kali kali main non-free contrib
deb http://mirrors.aliyun.com/kali sana main non-free contrib
deb http://mirrors.aliyun.com/kali-security sana/updates main contrib non-free
deb-src http://mirrors.aliyun.com/kali kali main non-free contrib
deb http://mirrors.aliyun.com/kali-security kali/updates main contrib non-free
deb-src http://ftp.sjtu.edu.cn/debian wheezy main non-free contrib  
deb http://ftp.sjtu.edu.cn/debian wheezy-proposed-updates main non-free contrib  
deb-src http://ftp.sjtu.edu.cn/debian wheezy-proposed-updates main non-free contrib  
deb http://ftp.sjtu.edu.cn/debian-security wheezy/updates main non-free contrib  
deb-src http://ftp.sjtu.edu.cn/debian-security wheezy/updates main non-free contrib  
deb http://mirrors.163.com/debian wheezy main non-free contrib  
deb-src http://mirrors.163.com/debian wheezy main non-free contrib  
deb http://mirrors.163.com/debian wheezy-proposed-updates main non-free contrib  
deb-src http://mirrors.163.com/debian wheezy-proposed-updates main non-free contrib  
deb-src http://mirrors.163.com/debian-security wheezy/updates main non-free contrib  
deb http://mirrors.163.com/debian-security wheezy/updates main non-free contrib  
  
deb http://http.kali.org/kali kali-rolling main non-free contrib    
 
# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.

2.vmware出现无法定位Linux-headers:

  配置完上面的文件后,输入

apt-cache search linux-headers

  进行测试。

3.配置完成后,输入  sudo apt-get update 更新源。

以上是关于Kali Linux 无法定位软件包的主要内容,如果未能解决你的问题,请参考以下文章

kali2.0最新的软件包安装源

win10与vmware 中的kali linux 共享文件夹

sh Kali Linux - 资源和片段

kali之中文乱码解决01

kali linux软件源怎么配置

为啥我的linux下载所有带devel的软件都是无法定位软件包