我正在关注官方指南安装 ROS Melodic。
并且,在步骤 1.3 中,通过 4 条替代路径中的 3 条,我得到了类似以下的结果:
sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
Executing: /tmp/apt-key-gpghome.Esk2aHFoQ2/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
gpg: key F42ED6FBAB17C654: public key "Open Robotics <[email protected]>" imported
gpg: Total number processed: 1
gpg: imported: 1
gpg: invalid key resource URL '/etc/apt/trusted.gpg.d/home:hpcoder1.gpg'
gpg: keyblock resource '(null)': General error
gpg: key 7721F63BD38B4796: 2 signatures not checked due to missing keys
gpg: key 5606C8D03F9E5FB8: 1 signature not checked due to a missing key
gpg: key 3B4FE6ACC0B21F32: 3 signatures not checked due to missing keys
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: 10
gpg: skipped new keys: 10
在另一个中我得到了:
sudo apt-key adv --keyserver 'hkp://pgp.mit.edu:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
Executing: /tmp/apt-key-gpghome.ABFSlwnvVU/gpg.1.sh --keyserver hkp://pgp.mit.edu:80 --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
gpg: keyserver receive failed: No data
答案1
我遇到了同样的问题,并通过执行以下操作解决了该问题:
sudo rm "/etc/apt/trusted.gpg.d/home:manuelschnid3r.asc"
对于您的情况,您可以/etc/apt/trusted.gpg.d/
检查文件home:hpcoder1
的扩展名是否为.asc
或.gpg
,然后通过以下方式删除它:
suo rm "/etc/apt/trusted.gpg.d/home:hpcoder1.gpg"
或者
suo rm "/etc/apt/trusted.gpg.d/home:hpcoder1.asc"
然后你再试一次,它会起作用:
sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654