Sudo Apt-Key Add – Does Not Work Anymore

Sudo Apt-Key Add – Does Not Work Anymore

I am trying to install (not by my choice) the Microsoft Windows Defender. For that i need to add a repository key:

curl  | sudo apt-key add –

But this does not work anymore. I made then this to get the file:

curl  -o /usr/local/share/keyrings/microsoft_windows_defender.key

I checked the file:

file usr/local/share/keyrings/microsoft_windows_defender.key

returns:

PGP public key block Public-Key (old)

then i created the source file

nano /etc/apt/sources.list.d/microsoft-prod.list

containing:

deb  [arch=amd64,armhf,arm64 signed-by=/usr/share/keyrings/microsoft_windows_defender.gpg]  jammy main

But when i run

apt update

It gives an error:

  jammy InRelease: NO_PUBKEY EB3E94ADBE1229CF

Can anyone help to fix this? Thank you.

David Miller
Author

David Miller

David Miller brings 15 years of experience in global economics, personal finance strategy, and market dynamics. He specializes in turning complex economic trends into actionable insights for everyday readers.