Curl failed writing body

root@ubuntu18:~# curl https://download.jitsi.org/jitsi-key.gpg.key | sudo sh -c ‘gpg --dearmor > /usr/share/keyrings/jitsi-keyring.gpg’
sh: 1: gpg: not found
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 3071 100 3071 0 0 2349 0 0:00:01 0:00:01 --:–:-- 2349
(23) Failed writing body

The message is quite clear. It is not able to find ‘gpg’. Check if it is installed. If not, install and retry.