Azure Notebook (Pyspark)

While encrypting the file using GPG I am receiving this error

gpg returned a non-zero error code: 2
Encryption failed: gpg: error running '/usr/bin/dirmngr': probably not installed
gpg: failed to start dirmngr '/usr/bin/dirmngr': Configuration error
gpg: can't connect to the dirmngr: Configuration error
gpg: error retrieving username via WKD: No dirmngr
gpg: username: skipped: No dirmngr
[GNUPG:] INV_RECP 0 username
[GNUPG:] FAILURE encrypt 33554524
gpg: [stdin]: encryption failed: No dirmngr

Could someone guide me what am I missing here?

Hi @Sukhvinder,

it seems like the dirmngr is missing so you have to install it first.

Thank you cklassen for quick response,

What command should I use to install dirmngr in azure notebooks.

When I search for Azure notebook in my search engine I can find many different resources so I’m not sure which is the correct one. Do you have a link to a guide with which you setup your notebook?

cklassen, with the azure notebook what library or the command I use to install dirmngr directory. I can’t get any linux command in azure notebook.

%%sh
apt-get update
apt-get install dirmngr -y

%%sh
sudo apt-get update
sudo apt-get install dirmngr -y

none of them works for azure notebooks

How did you create the notebook? Which guide did you use? There should be some explanation about how to adjust the environment the notebook is running in.

It’s a notebook in Microsoft Fabric.