1

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?

Federico Taschin
  • 2,027
  • 3
  • 15
  • 28

1 Answers1

2

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).

Ohad Kammar
  • 141
  • 4