Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/shell/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
apt get安装升级在kali linux上不起作用_Linux_Shell - Fatal编程技术网

apt get安装升级在kali linux上不起作用

apt get安装升级在kali linux上不起作用,linux,shell,Linux,Shell,当我尝试更新时,我得到以下信息: 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 pa

当我尝试更新时,我得到以下信息:

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

步骤

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

apt-get update
  • 删除getdeb文件
  • 运行update命令
  • 命令

    rm /etc/apt/sources.list.d/getdeb.list.bck
    
    apt-get update
    

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

    deb kali非自由主控轧管

    然后重新启动
    它工作起来很有趣。

    我建议将此问题发布到。这有点离题了,因为我想问一些与编程相关的问题。嗨!欢迎来到StackOverflow!我建议你改进答案的格式。