gpg:未找到有效的 OpenPGP 数据。在kali linux中添加apt存储库

gpg:未找到有效的 OpenPGP 数据。在kali linux中添加apt存储库

当我尝试添加任何存储库时,出现此错误:

root@Hacknonimous:~# sudo add-apt-repository ppa:agornostal/ulauncher  
 Application launcher for Linux
 More info: https://launchpad.net/~agornostal/+archive/ubuntu/ulauncher
Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: keybox '/tmp/tmpb55cnwbo/pubring.gpg' created  
gpg: /tmp/tmpb55cnwbo/trustdb.gpg: trustdb created  
gpg: key FAF1020699503176: public key "Launchpad PPA for Aleksandr Gornostal" imported  
gpg: Total number processed: 1  
gpg:               imported: 1  
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).  
**gpg: no valid OpenPGP data found**.
root@Hacknonimous:~# apt update  
Hit:1 http://packages.microsoft.com/repos/vscode stable InRelease  
Ign:2 http://ppa.launchpad.net/agornostal/ulauncher/ubuntu hirsute InRelease                                                                 
Hit:4 http://ftp.debian.org/debian stable InRelease                                                          
Hit:3 http://kali.cs.nctu.edu.tw/kali kali-rolling InRelease               
Err:6 http://ppa.launchpad.net/agornostal/ulauncher/ubuntu hirsute Release  
  404  Not Found [IP: 91.189.95.85 80]  
Hit:5 http://kali.cs.nctu.edu.tw/kali kali-last-snapshot InRelease    
Hit:7 http://kali.cs.nctu.edu.tw/kali kali-experimental InRelease  
Reading package lists... Done  
**E**: The repository 'http://ppa.launchpad.net/agornostal/ulauncher/ubuntu hirsute Release' does not have a Release file.  
**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 (non-free/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3  
**W**: Target Packages (non-free/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3  
**W**: Target Translations (non-free/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3  
**W**: Target Translations (non-free/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3  
**W**: Target DEP-11 (non-free/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3  
**W**: Target DEP-11 (non-free/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3  
**W**: Target DEP-11-icons-small (non-free/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3  
**W**: Target DEP-11-icons (non-free/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3  
**W**: Target Packages (non-free/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3  
**W**: Target Packages (non-free/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3  
**W**: Target Translations (non-free/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3  
**W**: Target Translations (non-free/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3  
**W**: Target DEP-11 (non-free/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3  
**W**: Target DEP-11 (non-free/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3  
**W**: Target DEP-11-icons-small (non-free/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3  
**W**: Target DEP-11-icons (non-free/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3  

答案1

**W**: Target DEP-11-icons (non-free/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3  

您需要/etc/apt/sources.list通过删除与第一行重复的第 3 行来编辑您的代码。apt如果多次配置相同的源,将打印此错误。

不要混合 kali 分支(kali-experimental 和 kali-last-snapshot)。

删除 Ubuntu 存储库,因为它会破坏您的安装。

非 Kali 存储库

将其他操作系统的存储库添加到 Kali 中(例如尝试将 Ubuntu 放在 Kali 上)将会破坏您的安装。这是 Kali Linux 系统崩溃的最常见原因

从航站楼:

sudo rm /etc/apt/sources.list.d/*
echo "deb http://http.kali.org/kali kali-rolling main non-free contrib" |sudo tee /etc/apt/sources.list
sudo apt update

答案2

这是相关行 - 唯一带有“E”错误的行:

**E**: The repository 'http://ppa.launchpad.net/agornostal/ulauncher/ubuntu hirsute Release' does not have a Release file.  

该存储库无效,请联系该存储库的维护者进行修复。

这也可能意味着没有有效的数据,例如未签名,请参阅 PGP/GPG 错误。尝试从此处的启动板站点获取手动添加 PGP 公钥https://launchpad.net/~agornostal或 Ubuntu 密钥服务器:

https://keyserver.ubuntu.com/pks/lookup?search=0x880ABF3968CAE217558E9B70C28DBAC0C19637D7&fingerprint=on&op=index

https://keyserver.ubuntu.com/pks/lookup?search=0x012EE33B9B951164B8299BABB96482D36BD735B0&fingerprint=on&op=index

(将密钥保存为agornostal.pub

并像这样添加它们

sudo apt-key add agornostal.pub

相关内容