Impossible to add MikTex gpg key

545 views Asked by At

I'm trying to install MikTex on Ubuntu 18.04 following the instructions in the website.

The first command,

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys D6BC243565B2087BC3F897C9277A7293F59E4889

gives the error

gpg: keyserver receive failed: Invalid argument

What could be the problem?

1

There are 1 answers

0
Ohad Kammar On

I don't know the root cause, but following the instructions here I was able to get the keys.

These download and install the gpg key:

wget -q \
  "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xD6BC243565B2087BC3F897C9277A7293F59E4889" \
  -O- | gpg --dearmor \
          > miktex-D6BC243565B2087BC3F897C9277A7293F59E4889.gpg
sudo mv miktex-D6BC243565B2087BC3F897C9277A7293F59E4889.gpg \
        /etc/apt/trusted.gpg.d/

You should then be able to continue with the next steps (sudo apt update and so on).