apt-get install upgrade在kali linux上不起作用

时间:2018-09-26 13:17:14

标签: linux shell

enter image description here,当我尝试更新时,得到以下信息:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
N: Ignoring file 'getdeb.list.bck' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
E: Unable to locate package update

我的etc / apt / sources.list看起来像这样:

deb http://repo.kali.org/kali kali-rolling main non-free contrib

deb-src http://repo.kali.org/kali kali-rolling main non-free contrib

enter image description here

2 个答案:

答案 0 :(得分:0)

步骤

  1. 删除get deb文件
  2. 运行更新命令

命令

rm /etc/apt/sources.list.d/getdeb.list.bck

apt-get update

答案 1 :(得分:0)

我经常遇到这样的问题。搏一搏。在sources.list文件中,剪切所有回购列表,然后简单地添加以下内容:-

deb http://http.kali.org/kali kali-rolling主贡献非免费

然后重新启动 它像乐趣一样。