我正在使用 kali linux 2024.1 我的sources.list存储库有问题并且无法修复它我想如果我删除整个apt文件并从Gitlab中的kali包中再次替换它但它不起作用它说apt.conf丢失我尝试提取kali iso映像并使用dpkg安装apt.deb文件-i它与apt.conf丢失问题一起工作然后我手动添加了sources.list和sources.list.d我再次尝试了sudo apt update,sudo apt-获取更新它说
GPG error: http://kali.download/kali kali-rolling InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ED444FF07D8D0BF6
E: The repository 'http://http.kali.org/kali kali-rolling 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: GPG error: http://kali.download/kali kali-bleeding-edge InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ED444FF07D8D0BF6
E: The repository 'http://http.kali.org/kali kali-bleeding-edge 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: GPG error: http://kali.download/kali kali-experimental InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ED444FF07D8D0BF6
E: The repository 'http://http.kali.org/kali kali-experimental 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.
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
请帮助我有一个大问题
答案1
打开控制台并运行这两个命令:
sudo gpg --keyserver keyserver.ubuntu.com --recv-keys ED444FF07D8D0BF6
sudo gpg -a --export ED444FF07D8D0BF6 | sudo apt-key add -
摘自并修改自:
https://forums.kali.org/showthread.php?18079-Public-key-error