kali sudo apt install 无法定位软件包

在etc/apt   的sources.list 添加镜像源   

debhttp://http.kali.org/kali kali-rolling main non-free contrib 或

deb http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib

然后 sudo apt-get update/sudo apt update && sudo apt upgrade 

 接着安装就可以了。注意要连网。

 

  1.  
    deb cdrom:[Debian GNU/Linux 2017.1 _Kali-rolling_ - Official Snapshot amd64 LIVE/INSTALL Binary 20170416-02:08]/ kali-rolling contrib main non-free
  2.  
     
  3.  
    deb cdrom:[Debian GNU/Linux 2017.1 _Kali-rolling_ - Official Snapshot amd64 LIVE/INSTALL Binary 20170416-02:08]/ kali-rolling contrib main non-free
  4.  
     
  5.  
    deb http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
  6.  
    deb http://http.kali.org/kali kali-rolling main non-free contrib
  7.  
     
  8.  
    #中科大kali源
  9.  
    deb http://mirrors.ustc.edu.cn/kali kali main non-free contrib
  10.  
    deb-src http://mirrors.ustc.edu.cn/kali kali main non-free contrib
  11.  
    deb http://mirrors.ustc.edu.cn/kali-security kali/updates main contrib non-free
  12.  
     
  13.  
    #阿里云kali源
  14.  
    deb http://mirrors.aliyun.com/kali kali main non-free contrib
  15.  
    deb-src http://mirrors.aliyun.com/kali kali main non-free contrib
  16.  
    deb http://mirrors.aliyun.com/kali-security kali/updates main contrib non-free

more  is better.haha

 

success.......

 

vmware出现无法定位Linux-headers。。。。。把官网源注释

  1.  
    #deb cdrom:[Debian GNU/Linux 2017.1 _Kali-rolling_ - Official Snapshot amd64 LIVE/INSTALL Binary 20170416-02:08]/ kali-rolling contrib main non-free
  2.  
     
  3.  
    #deb cdrom:[Debian GNU/Linux 2017.1 _Kali-rolling_ - Official Snapshot amd64 LIVE/INSTALL Binary 20170416-02:08]/ kali-rolling contrib main non-free
  4.  
     
  5.  
    #中科大kali源
  6.  
    deb http://mirrors.ustc.edu.cn/kali kali main non-free contrib
  7.  
    deb-src http://mirrors.ustc.edu.cn/kali kali main non-free contrib
  8.  
    deb http://mirrors.ustc.edu.cn/kali-security kali/updates main contrib non-free
  9.  
     
  10.  
    #阿里云kali源
  11.  
    deb http://mirrors.aliyun.com/kali kali main non-free contrib
  12.  
    deb-src http://mirrors.aliyun.com/kali kali main non-free contrib
  13.  
    deb http://mirrors.aliyun.com/kali-security kali/updates main contrib non-free
  14.  
    #debian_wheezy国内源
  15.  
    deb-src http://ftp.sjtu.edu.cn/debian wheezy main non-free contrib
  16.  
    deb http://ftp.sjtu.edu.cn/debian wheezy-proposed-updates main non-free contrib
  17.  
    deb-src http://ftp.sjtu.edu.cn/debian wheezy-proposed-updates main non-free contrib
  18.  
    deb http://ftp.sjtu.edu.cn/debian-security wheezy/updates main non-free contrib
  19.  
    deb-src http://ftp.sjtu.edu.cn/debian-security wheezy/updates main non-free contrib
  20.  
    deb http://mirrors.163.com/debian wheezy main non-free contrib
  21.  
    deb-src http://mirrors.163.com/debian wheezy main non-free contrib
  22.  
    deb http://mirrors.163.com/debian wheezy-proposed-updates main non-free contrib
  23.  
    deb-src http://mirrors.163.com/debian wheezy-proposed-updates main non-free contrib
  24.  
    deb-src http://mirrors.163.com/debian-security wheezy/updates main non-free contrib
  25.  
    deb http://mirrors.163.com/debian-security wheezy/updates main non-free contrib
  26.  
     
  27.  
    deb http://http.kali.org/kali kali-rolling main non-free contrib
  28.  
    # deb-src http://http.kali.org/kali kali-rolling main non-free contrib

可以进行测试:

apt-cache search linux-headers
posted @ 2018-08-01 06:46  网络虫  阅读(836)  评论(0编辑  收藏  举报