我正在尝试使用以下命令在我的 Ubuntu 20.10 上安装 Singal 桌面应用程序这里。具体如下:
# 1. Install our official public software signing key
wget -O- https://updates.signal.org/desktop/apt/keys.asc | sudo apt-key add -
# 2. Add our repository to your list of repositories
echo "deb [arch=amd64] https://updates.signal.org/desktop/apt xenial main" | sudo tee -a /etc/apt/sources.list.d/signal-xenial.list
# 3. Update your package database and install signal
sudo apt update && sudo apt install signal-desktop
它只停留在第 1 步。我尝试下载密钥手册,然后使用添加它sudo apt-key add 'keys.asc
,但它给了我同样的错误。
错误:
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
gpg: invalid key resource URL '/tmp/apt-key-gpghome.AVkbXq0uHG/home:manuelschneid3r.asc.gpg'
gpg: keyblock resource '(null)': General error
gpg: key 7721F63BD38B4796: 2 signatures not checked due to missing keys
gpg: key 40976EAF437D05B5: 60 signatures not checked due to missing keys
gpg: key 76F1A20FF987672F: 1 signature not checked due to a missing key
gpg: key 1488EB46E192A257: 1 signature not checked due to a missing key
gpg: key 1488EB46E192A257: 1 signature not checked due to a missing key
gpg: key D94AA3F0EFE21092: 3 signatures not checked due to missing keys
gpg: key 871920D1991BC93C: 1 signature not checked due to a missing key
gpg: Total number processed: 20
gpg: skipped new keys: 20
答案1
我在同一问题上陷入了很长的困境,并发现我需要消除一个坏的密钥文件:
sudo rm /etc/apt/trusted.gpg.d/home:manuelschneid3r.asc
..然后再次运行这些步骤;像冠军一样工作。
答案2
删除home:selmf.asc
并home:selmf.gpg
从中/etc/apt/trusted.gpg.d/
为我修复了这个问题。
将文件移动到你的主目录,以便在出现问题时可以恢复它:
mv "/etc/apt/trusted.gpg.d/home:selmf.asc" "/etc/apt/trusted.gpg.d/home:selmf.gpg" ~/
或者彻底删除它们:
rm "/etc/apt/trusted.gpg.d/home:selmf.asc" "/etc/apt/trusted.gpg.d/home:selmf.gpg"