码迷,mamicode.com
首页 > 系统相关 > 详细

Kali Linux 无法定位软件包

时间:2020-03-20 22:28:23      阅读:1487      评论:0      收藏:0      [点我收藏+]

标签:his   apt-get   for   div   rem   install   lin   注释   war   

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 无法定位软件包

标签:his   apt-get   for   div   rem   install   lin   注释   war   

原文地址:https://www.cnblogs.com/Mishell/p/12535063.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!