• 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
  • 相关阅读:
    Java学习----不变的常量
    Java学习----Java数据类型
    Java学习----Java程序结构
    Java学习----main详解
    (转)你知道Android也有安全模式吗?(地球人都知道了吧)
    Android学习----打印日志Log
    Android学习----五大布局
    Android学习-----Button点击事件几种写法
    mysql建立索引 删除索引
    MySQL查看SQL语句执行效率
  • 原文地址:https://www.cnblogs.com/wangluochong/p/9399202.html
Copyright © 2020-2023  润新知