zoukankan      html  css  js  c++  java
  • 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
  • 相关阅读:
    写在前面
    你应该知道的 RPC 原理
    虚函数 继承 多态
    指针 函数指针 指针数组
    Python使用RMF聚类分析客户价值
    数据挖掘关联分析中的支持度、置信度和提升度
    OpenCV2.4.4+Cmake2.8+Vs2010编译createsamples+traincascade程序用来训练样本
    UNITY + OpenCVSharp调节图像对比度
    使用单精度类型变量
    有符号基本整型
  • 原文地址:https://www.cnblogs.com/wangluochong/p/9399202.html
Copyright © 2011-2022 走看看