在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

kali sudo apt install 无法定位软件包的更多相关文章

  1. sudo apt install net-tools [sudo] zyw 的密码: 正在读取软件包列表... 完成 正在分析软件包的依赖关系树,正在读取状态信息... 完成,没有可用的软件包 net-tools,但是它被其它的软件包引用了。这可能意味着这个缺失的软件包可能已被废弃,或者只能在其他发布源中找到

    截图: 先执行: sudo apt-get update 再执行: sudo apt install net-tools 即可安装成功!!

  2. Command 'ifconfig' not found, but can be installed with: sudo apt install net-tools

    然后按照错误信息安安装网络工具: sudo apt install net-tools shl@shl-tx:~$ sudo apt install net-tools正在读取软件包列表... 完成正 ...

  3. Ubuntu18下sudo apt install xxx出现问题

    当执行sudo apt install rpm时失败(apt-get也失败),输出如下报错信息: E: Could not get lock /var/lib/dpkg/lock - open (11 ...

  4. sudo apt install libreadline-dev Reading package lists... Error!

    luo@luo-ThinkPad-W540:~$ luo@luo-ThinkPad-W540:~$ luo@luo-ThinkPad-W540:~$ luo@luo-ThinkPad-W540:~$ ...

  5. Ubuntu 16.04 安装 Wireshark分析tcpdump的pcap包——sudo apt install wireshark-qt

    tcpdump 的抓包保存到文件的命令参数是-w xxx.cap   抓eth1的包  tcpdump -i eth1 -w /tmp/xxx.cap    抓 192.168.1.123的包  tc ...

  6. Command 'ifconfig' not found, but can be installed with: sudo apt install net-tools VM Ubuntu 解决方案

    VMware下安装的Ubuntu 一开始由于Firefox连不上网,然后通过看了https://www.bbsmax.com/A/VGzlEGYJbq/这个文章之后,自己也测了一下,确实好用 但是if ...

  7. Command 'ifconfig' not found, but can be installed with: sudo apt install net-tools解决方法

    VMware下安装的Ubuntu 当使用ifconfig命令查看网卡配置信息的时候出错 尝试了很多方法都解决不了,直到输入了下面的内容: 然后自己就更新了很多东西 之后重新输入ifconfig命令就能 ...

  8. 解决无法定位软件包 或 install net-tools

    解决无法定位软件包  或  install net-tools  当我们安装好Linux后,因为里面有很多功能服务没有安装(如ifconfig.vsftpd) 所以出现一些command  '**** ...

  9. ubuntu16.04安装cuda,无法定位软件包问题

    为了学习深度学习,这几天在安装深度学习框架,cuda安装时却出现无法定位软件包的问题.cuda官网下载时提供了deb和run格式,今天只讲deb格式的安装包安装过程的问题. 按照官方教程,下载好cud ...

随机推荐

  1. bzoj千题计划320:bzoj4939: [Ynoi2016]掉进兔子洞(莫队 + bitset)

    https://www.lydsy.com/JudgeOnline/problem.php?id=4939 ans= r1-l1+1 + r2-l2+1 +r3-l3+1 - ∑ min(cnt1[i ...

  2. Golang入门教程(十一)beego 框架之RESTful Controller 路由

    官方文档:https://beego.me/docs/mvc/controller/router.md 什么是路由设置呢?前面介绍的 MVC 结构执行时,介绍过 beego 存在三种方式的路由:固定路 ...

  3. POI导出Excel 错误THE MAXIMUM COLUMN WIDTH FOR AN INDIVIDUAL CELL IS 255 CHARACTERS

    int orgColWidth = (arrColWidth[column.Ordinal] + 1); if (liekuan > 255) liekuan = 255; //设置列宽 she ...

  4. Jenkins pipeline shared library

    Jenkinsfile https://jenkins.io/doc/book/pipeline/jenkinsfile/ Jenkins Pipeline is a suite of plugins ...

  5. Inline Route Constraints in ASP.NET Core MVC

    原文 ASP.NET MVC5和Web API2的一个新特性是attribute routing, 通过它我们可以使用[Route]来定义路由模板: public class MessagesCont ...

  6. (14)CountTriplets

    一.问题描述 给定一个数组.三个索引 i,i ~ [0, array.length) j,  j ~ [0, array.length) k, k ~ [0, array.length) 求有多少种组 ...

  7. 数据库设计理论与实践·<二>概念设计与逻辑设计

    2一.概念设计 1.1 概念设计关键知识 1.2 辨析 实体与属性的区别: ①实体能进一步用多个属性来描述,属性却不能,属性是不可再细分/分割的原子项. ②实体内部或者多个实体之间存在联系,而属性无. ...

  8. Python之进程 2 - multiprocessing模块

    ​ 我们已经了解了,运行中的程序就是一个进程.所有的进程都是通过它的父进程来创建的.因此,运行起来的python程序也是一个进程,那么我们也可以在程序中再创建进程.多个进程可以实现并发效果,也就是说, ...

  9. Luogu P4859「已经没有什么好害怕的了」

    以前开过一遍这题,以为很难没刚下去 今天$ review$一遍分析了一下感觉也还好 luogu 4859 题意:给定长度为$ n \leq 2000$的数组$ A,B$求完全匹配使得$A>B$的 ...

  10. jq中的事件委托:closest,parent,parents,delegate

    closest .closest(selector) 从当前元素开始沿 DOM 树向上,获得匹配第一个符合选择器的祖先元素,返回零个或一个元素的 jQuery 对象. .parents() 和 .cl ...