当我想使用 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
是两条或多条线同时运行的明确标志。