Score:0

Unsupported filetype error on adding GPG key from keyserver to keyring in one command for APT

dz flag

how can I add a GPG key from a keyserver to a .gpg file for APT with one command.

sudo key-add adv --no-default-keyring --keyring /etc/apt/trusted.gpg.d/osquery.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 1484120AC4E9F8A1A577AEEE97A80C63C9D8B80B

The key(s) in the keyring /etc/apt/trusted.gpg.d/osquery.gpg are ignored as the file has an unsupported filetype.

Score:0
cn flag

What if you try to import the key from the server:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1484120AC4E9F8A1A577AEEE97A80C63C9D8B80B
Sebastian avatar
dz flag
This works but it saves the key into the default keyring etc/apt/trusted.gpg but I want to save it into a different one.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.