Kali Linux 无法定位软件包

时间:2020-03-20 22:28:23   收藏:0   阅读:1487

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 更新源。

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!