当我尝试运行时,sudo apt update
出现与 NO_PUBKEY 67170598AF249743 相关的以下错误。
Err:8 https://packages.osrfoundation.org/gazebo/ubuntu-stable jammy InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 67170598AF249743
我用的是这个:
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 67170598AF249743
但以下命令返回此消息:
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
Executing: /tmp/apt-key-gpghome.N9JbawXvIX/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 67170598AF249743
gpg: key 67170598AF249743: "OSRF Repository (OSRF Repository GPG key) <[email protected]>" not changed
gpg: Total number processed: 1
gpg: unchanged: 1
W: The key(s) in the keyring /etc/apt/trusted.gpg.d/osrf-key.gpg are ignored as the file has an unsupported filetype.
我该怎么做?警告还说 osrf-key.gpg 文件是不受支持的文件类型。这是什么意思?我该如何让该文件正常工作?