0

I want to install BalenaEtcher in my system running Ubuntu 20.04. I tried to follow the steps in https://github.com/balena-io/etcher#debian-and-ubuntu-based-package-repository-gnulinux-x86x64 however while adding the GPG key I am getting the following error.

$ sudo apt-key adv --keyserver hkps://keyserver.ubuntu.com:443 --recv-keys 379CE192D401AB61
Executing: /tmp/apt-key-gpghome.DjmWpiRvOZ/gpg.1.sh --keyserver hkps://keyserver.ubuntu.com:443 --recv-keys 379CE192D401AB61
gpg: failed to start the dirmngr '/usr/bin/dirmngr': No such file or directory
gpg: connecting dirmngr at '/tmp/apt-key-gpghome.DjmWpiRvOZ/S.dirmngr' failed: No such file or directory
gpg: keyserver receive failed: No dirmngr

Please guys help me out.

P.S.- I have another system running Kubuntu 20.04, However it seems no issue while installing or using etcher in that system.

Thanks and Regards

Sabyasachi Rout

karel
  • 122,292
  • 133
  • 301
  • 332

1 Answers1

2

There's an important clue in your output: '/usr/bin/dirmngr': No such file or directory That means dirmngr is not installed.

From the dirmngr package description:

dirmngr is used for network access by gpg, gpgsm, and dirmngr-client, among other tools. Unless this package is installed, the parts of the GnuPG suite that try to interact with the network will fail.

Install it: Try sudo apt install dirmngr, then try adding that key again.

user535733
  • 68,493