Failing to get Public Key (openHAB installation Linux Debian)

Hi,

I have the same issue with 4.0.0.M2 instructions . I have no public key for openhab.
it says gpg on the web page, is this right or do I have to change it to pgp?

Thanks

File extension .gpg is correct.
But it doesn’t matter if you would use the file extension .pgp and refer to the same file from within the signed-by section in file located in /etc/apt/sources.list.d/ it also would work

Did you follow the instruction on the download page to “create” the gpg public key ?

I think so.
I started with

  1. Install a recent Java 17 platform
  2. Add the repository key
    and so on…
    What do you mean with “create”?

there is one difference betrween stable and testing:
stable:

echo 'deb [signed-by=/usr/share/keyrings/openhab.gpg] https://openhab.jfrog.io/artifactory/openhab-linuxpkg stable main' | sudo tee /etc/apt/sources.list.d/openhab.list

testing:

echo 'deb https://openhab.jfrog.io/artifactory/openhab-linuxpkg testing main' | sudo tee /etc/apt/sources.list.d/openhab.list

do I need this “[signed-by=…” as well?

ok that was the reason… now it works…

Hi Rich,
Thank you very much. That saved my date and my believe in openHAB.
It would be very useful if this information would be mentioned in the official documentation. I couldn’t find it.
All other “apt …” commands went well.

I’m not sure where else that would go in the docs and it’s standard for apt repos and nothing specirfic to openHAB.

The instructions for apt on Download openHAB | openHAB discuss this file and what goes there. The [Linux installation instructions in the docs]( openHAB on Linux | openHAB) also discusses this file and what goes there.