APT Repo Public Key Expiration & Update

Thanks @Benjy for fixing this so quickly. It’s working for me now. Apologies to @rlkoshak I really didn’t mean to stir the pot.

1 Like

Thanks, DiMa – that did the trick!!

  • Edit, nothing to see here. If I didn’t have typos I wouldn’t have any typing.
1 Like

hi,
Now the link has expired…showing 404 error
i couldnt download the gpg key

Please read the docs, we had to move to artifactory, as bintray is stopping its service.

You will find several posts here about moving repos.

So how should i install openhab2 for raspberrypi on raspberry jessie OS
Please help me out

Do yourself a favour and download the openHABian image, it will take care about many installation issues.

Sir,
Iam trying to install hestiapi on my raspberry through manual installation

Here I face a problem that after installing openhab …when i load it through localhost and try to install standard mode…its got stuck there for hours… i couldn’t find out the problem

HestiaPi is a third party system, so you better check their community. We cannot give full support on third party systems.

What I could see, their installation instructions are outdated, cause they still refer to bintray, not artifactory.

Thank you sir…for the quick reply

Very sorry to see someone being redirected to documentation with instructions that create the exact same error and leave the user feeling frustrated.

I am coming from the stable 2.5 snapshot. My REST api was suddenly missing, and I was unable to install it. I saw that 3.0 was out and decided to upgrade. following the instructions on Download openHAB | openHAB (you know, the first page people find when they google something)

wget -qO - 'https://openhab.jfrog.io/artifactory/api/gpg/key/public' | sudo apt-key add -
sudo apt-get install apt-transport-https
echo 'deb https://openhab.jfrog.io/artifactory/openhab-linuxpkg stable main' | sudo tee /etc/apt/sources.list.d/openhab.list

sudo apt-get update && sudo apt-get install openhab

This is where things failed for me. Witness:

pi@OpenHAB:~ $ sudo apt-get update && sudo apt-get install openhab
Ign:1 http://repos.azulsystems.com/debian stable InRelease
Hit:2 http://repos.azulsystems.com/debian stable Release
Hit:3 http://raspbian.raspberrypi.org/raspbian buster InRelease
Hit:4 http://archive.raspberrypi.org/debian buster InRelease
Err:5 https://dl.bintray.com/openhab/apt-repo2 stable InRelease
  403  Forbidden [IP: 3.125.168.216 443]
Hit:7 https://openhab.jfrog.io/artifactory/openhab-linuxpkg stable InRelease
Reading package lists... Done
E: Failed to fetch https://dl.bintray.com/openhab/apt-repo2/dists/stable/InRelease  403  Forbidden [IP: 3.125.168.216 443]
E: The repository 'https://dl.bintray.com/openhab/apt-repo2 stable InRelease' is no longer signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Using the instructions from here openHAB on Linux | openHAB gives the same darn error.

Finally, a hail mary (per the instructions from july 2019)

wget -qO - 'https://bintray.com/user/downloadSubjectPublicKey?username=openhab' | sudo apt-key add -
gpg: no valid OpenPGP data found.

what fixed the error for me was
sudo rm /etc/apt/sources.list.d/openhab2.list

So the documentation is of no help to users here. It’s probably wise to mention the old repo file needs to be deleted.

1 Like

You need to remove the bintray paths from the apt repos. Bintray is basically gone (they shutdown their support for open source projects) so we had to move to jfrog.

The output is showing that it’s reading jfrog just fine but failing on bintray, as expected.

From a terminal, navigate to /etc/apt and run

grep -R bintray

That will tell you which file(s) is trying to use bintray. Open the file and comment out those lines and the error will go away. Since the jfrog is working that should be all you need to do.

1 Like

That might be a worthwile addition to the installation docs :slight_smile:

Hi All,

Please see the following thread:

Note that if you have the Artifactory repository AND the Bintray repository listed, the error will not mean that you cannot update openHAB, it is simply telling you that it can’t get any information from the Bintray server.

2 Likes

Better check before claiming. The docs @hmerk referred to are up to date and the OP did not even mention what link.

@dikkedimi is right that following the documentation wouldn’t fix their error, although the error shouldn’t affect any functionality and the only effect is the message they receive.

Following the docs would remove the Bintray reference for you if the the reference was held in /etc/apt/sources.list.d/openhab.list, but since they very recently upgraded from openhab2, the outdated list file was called openhab2.list, hence both exist after following the instructions.

Can anyone tell me where can i download openhab 2.4.0
Currently i have installed 2.5.3 where i got stuck in standard mode UI installation…can anyone help me out?

I think I read that with the end of bintray all those old archived versions of OH went away too and only 2.5.12 and 3.0+ are available. I suspect someone ought to be able to build older versions of OH from source, assuming tags were taken that correspond with the releases.

I could be wrong though and there are old versions of OH stored around somewhere else. But I don’t know where they are.

Was trying to update and got invalid public key error. This here solved my problem. Thanks.

Hi @pedrolima (and for others seeing this thread).

Please note that using apt-key is deprecated and is no longer the recommended way for any Linux software. See the latest announcement on the key expiring.

1 Like