我无法在 kali linux 中更新、安装或添加应用程序

我无法在 kali linux 中更新、安装或添加应用程序

当我想使用 apt-get 更新或安装一些应用程序时,出现此错误

> sudo apt-get update Hit:1 http://kali-za.bitcrack.net/kali
> kali-rolling InRelease Reading package lists... Done W: Skipping
> acquire of configured file 'contribdeb/binary-i386/Packages' as
> repository 'http://http.kali.org/kali kali-rolling InRelease' doesn't
> have the component 'contribdeb' (component misspelt in sources.list?)
> W: Skipping acquire of configured file
> 'contribdeb/i18n/Translation-en_US' as repository
> 'http://http.kali.org/kali kali-rolling InRelease' doesn't have the
> component 'contribdeb' (component misspelt in sources.list?) W:
> Skipping acquire of configured file 'contribdeb/i18n/Translation-en'
> as repository 'http://http.kali.org/kali kali-rolling InRelease'
> doesn't have the component 'contribdeb' (component misspelt in
> sources.list?) W: Skipping acquire of configured file
> 'contribdeb/dep11/Components-i386.yml' as repository
> 'http://http.kali.org/kali kali-rolling InRelease' doesn't have the
> component 'contribdeb' (component misspelt in sources.list?) W:
> Skipping acquire of configured file 'contribdeb/dep11/icons-64x64.tar'
> as repository 'http://http.kali.org/kali kali-rolling InRelease'
> doesn't have the component 'contribdeb' (component misspelt in
> sources.list?) W: Skipping acquire of configured file
> 'http://ppa.launchpad.net/webupd8team/sublime-text-3/ubuntu/binary-i386/Packages'
> as repository 'http://http.kali.org/kali kali-rolling InRelease'
> doesn't have the component
> 'http://ppa.launchpad.net/webupd8team/sublime-text-3/ubuntu'
> (component misspelt in sources.list?) W: Skipping acquire of
> configured file
> 'http://ppa.launchpad.net/webupd8team/sublime-text-3/ubuntu/i18n/Translation-en_US'
> as repository 'http://http.kali.org/kali kali-rolling InRelease'
> doesn't have the component
> 'http://ppa.launchpad.net/webupd8team/sublime-text-3/ubuntu'
> (component misspelt in sources.list?) W: Skipping acquire of
> configured file
> 'http://ppa.launchpad.net/webupd8team/sublime-text-3/ubuntu/i18n/Translation-en'
> as repository 'http://http.kali.org/kali kali-rolling InRelease'
> doesn't have the component
> 'http://ppa.launchpad.net/webupd8team/sublime-text-3/ubuntu'
> (component misspelt in sources.list?) W: Skipping acquire of
> configured file
> 'http://ppa.launchpad.net/webupd8team/sublime-text-3/ubuntu/dep11/Components-i386.yml'
> as repository 'http://http.kali.org/kali kali-rolling InRelease'
> doesn't have the component
> 'http://ppa.launchpad.net/webupd8team/sublime-text-3/ubuntu'
> (component misspelt in sources.list?) W: Skipping acquire of
> configured file
> 'http://ppa.launchpad.net/webupd8team/sublime-text-3/ubuntu/dep11/icons-64x64.tar'
> as repository 'http://http.kali.org/kali kali-rolling InRelease'
> doesn't have the component
> 'http://ppa.launchpad.net/webupd8team/sublime-text-3/ubuntu'
> (component misspelt in sources.list?) W: Skipping acquire of
> configured file 'lucid/binary-i386/Packages' as repository
> 'http://http.kali.org/kali kali-rolling InRelease' doesn't have the
> component 'lucid' (component misspelt in sources.list?) W: Skipping
> acquire of configured file 'lucid/i18n/Translation-en' as repository
> 'http://http.kali.org/kali kali-rolling InRelease' doesn't have the
> component 'lucid' (component misspelt in sources.list?) W: Skipping
> acquire of configured file 'lucid/i18n/Translation-en_US' as
> repository 'http://http.kali.org/kali kali-rolling InRelease' doesn't
> have the component 'lucid' (component misspelt in sources.list?) W:
> Skipping acquire of configured file 'lucid/dep11/Components-i386.yml'
> as repository 'http://http.kali.org/kali kali-rolling InRelease'
> doesn't have the component 'lucid' (component misspelt in
> sources.list?) W: Skipping acquire of configured file
> 'lucid/dep11/icons-64x64.tar' as repository 'http://http.kali.org/kali
> kali-rolling InRelease' doesn't have the component 'lucid' (component
> misspelt in sources.list?)

答案1

您的/etc/apt/sources.list文件(或目录中的文件之一/etc/apt/sources.list.d/)有拼写错误。

首先警告,为了清晰和强调,重新换行:

W: Skipping acquire of configured file 
'contribdeb/binary-i386/Packages' 
as repository 'http://http.kali.org/kali kali-rolling InRelease' 
doesn't have the component 'contribdeb' 
(component misspelt in sources.list?)

这个词contribdeb在这里是一个重要的线索。

文件的语法sources.list通常deb是非注释行上的第一个单词,并且contrib通常(但并非总是)是一行上的最后一个单词。contribdeb是两条或多条线同时运行的明确标志。

相关内容