I am installing cassandra following the steps in the official website coming to the step of sudo apt-get update I got this
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
OK
W: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file has an unsupported filetype.
I tried several times with several methods to export a key or multiple ones but I got the nothing exported response can anyone help me solve this please.
I'm going to guess that you're using Ubuntu with a version > 22. It looks like
apt-keyhas been deprecated, which means thatapt-getcan't use the existing keys in the old format to get out to its repositories. It has been replaced with thegpgcommand, which requires the gpg keys to be in a different location and format.A more thorough description of this problem can be found in this article - Ubuntu: apt-key is deprecated
tl;dr;
To fix this, we need to move the current GPG public keys from the file
/etc/apt/trusted.gpgand the folder/etc/apt/trusted.gpg.d/to/etc/apt/keyrings/with the correct format.Here is a quick synapsis of one of the steps from the article, about 2/3 of the way down:
Give the article a read. This way the instructions will make more sense as you go through them.