Ubuntu – apt-key is deprecated

aptkeyrings

i want to remove a repository but every time i get the error "Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8))."
ive tried updating apt-key and apt-get just to be sure but didnt solve the problem.
please help.

like this command $ sudo apt-key del 7D8D08F6 .

Best Answer

The answer is in the notice: Manage keyring files in trusted.gpg.d instead

So

cd /etc/apt/trusted.gpg.d/
rm {file}

where {file} needs to be replaced by the filename (7D8D08F6?) you want removed.

Related Question