kali linux 中的 apt-get 更新错误

kali linux 中的 apt-get 更新错误

我非常努力地找出解决方案,但每当我输入时,apt-get update我都会得到:

Hit:1 http://packages.microsoft.com/repos/vscode stable InRelease              
Get:2 https://download.virtualbox.org/virtualbox/debian vivid InRelease [7,140 B]
Err:2 https://download.virtualbox.org/virtualbox/debian vivid InRelease
The following signatures were invalid: 7B0FAB3A13B907435925D9C954422A4B98AB5139
Err:3 http://repo.kali.org/kali kali-rolling InRelease
403  Forbidden

Reading package lists... Done

W: GPG error: https://download.virtualbox.org/virtualbox/debian vivid InRelease: The following signatures were invalid: 7B0FAB3A13B907435925D9C954422A4B98AB5139

E: The repository 'https://download.virtualbox.org/virtualbox/debian vivid InRelease' is not signed.

N: Updating from such a repository can't be done securely, and is therefore disabled by default.

N: See apt-secure(8) manpage for repository creation and user configuration details.

W: Target Packages (contrib/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/virtualbox.list:1

W: Target Packages (contrib/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/virtualbox.list:1

W: Target Translations (contrib/i18n/Translation-en_GB) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/virtualbox.list:1

W: Target Translations (contrib/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/virtualbox.list:1

W: Target DEP-11 (contrib/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/virtualbox.list:1

W: Target DEP-11 (contrib/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/virtualbox.list:1

W: Target DEP-11-icons (contrib/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:13 and /etc/apt/sources.list.d/virtualbox.list:1

我的sources.list 文件包含:

#The Kali Repository

# deb cdrom:[Debian GNU/Linux 2017.3 _Kali-rolling_ - Official Snapshot amd64 LIVE/INSTALL Binary 20171109-13:49]/ kali-rolling contrib main non-free

#deb cdrom:[Debian GNU/Linux 2017.3 _Kali-rolling_ - Official Snapshot amd64 LIVE/INSTALL Binary 20171109-13:49]/ kali-rolling contrib main non-free



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

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

我非常努力地研究并做了很多在线修复,但什么也没发生。

有人可以建议解决这个问题吗?谢谢。

答案1

您目前似乎遇到了不止一个问题。您最初的问题似乎是缺少正确的 gpg 签名。如果您准备信任该站点,请导航至错误消息处的 URL,即。https://download.virtualbox.org/virtualbox/debian,您将在其中看到三个 *.asc 文件。尝试apt-key add在您正在使用的软件包上运行。

您似乎遇到的第二个问题是您使用了错误的网址,即。http://repo.kali.org/kali为了某件事。

第三个问题是您的sources.list文件第 13 行似乎存在某种形式的重复。如果不是太长,请发布。

最后,确实存在一个官方的kali linux论坛网站https://forums.kali.org/这可能对您的加入有帮助。

相关内容