[Solved] OH2 on Ubuntu 17.10 install problem

Hello, I’m trying to upgrade my OH2.2 installation to 2.3. I had to “force” the Bintray key in to the package manager with --no-check-certificate option

sudo wget -q0 - --no-check-certificate ‘https://bintray.com/user/downloadSubjectPublicKey?username=openhab’ | sudo apt-key add -

But when I run sudo apt-get update
I get these errors.
Bra:1 http://se.archive.ubuntu.com/ubuntu artful InRelease
Bra:2 http://se.archive.ubuntu.com/ubuntu artful-updates InRelease
Bra:3 http://se.archive.ubuntu.com/ubuntu artful-backports InRelease
Bra:4 http://ppa.launchpad.net/certbot/certbot/ubuntu artful InRelease
Bra:5 http://download.telldus.com/debian stable InRelease
Ign:6 https://dl.bintray.com/openhab/apt-repo2 stable InRelease
Ign:7 http://repos.azulsystems.com/ubuntu stable InRelease
Bra:8 http://repos.azulsystems.com/ubuntu stable Release
Fel:9 https://dl.bintray.com/openhab/apt-repo2 stable Release
Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification.
Bra:10 http://security.ubuntu.com/ubuntu artful-security InRelease
Ign:11 https://download.webmin.com/download/repository sarge InRelease
Fel:13 https://download.webmin.com/download/repository sarge Release
Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 108.60.199.109 443]
Läser paketlistor… Färdig
W: https://dl.bintray.com/openhab/apt-repo2/dists/stable/InRelease: No system certificates available. Try installing ca-certificates.
W: https://dl.bintray.com/openhab/apt-repo2/dists/stable/Release: No system certificates available. Try installing ca-certificates.
E: The repository ‘https://dl.bintray.com/openhab/apt-repo2 stable Release’ no longer has a Release file.
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.
W: https://download.webmin.com/download/repository/dists/sarge/InRelease: No system certificates available. Try installing ca-certificates.
W: https://download.webmin.com/download/repository/dists/sarge/Release: No system certificates available. Try installing ca-certificates.
E: The repository ‘https://download.webmin.com/download/repository sarge Release’ no longer has a Release file.
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.

Obviously I screwed up the installation process, what have I done wrong and how to fix it. Thanks in advance

why?

what error did you get when running the command from the docs?

I got this error “gpg: hittade ingen giltig OpenPGP-data.” translates to gpg: cant find valid OpenPGP-data" without the --no-check-certificate option. Cant say why

You should google this error to fix this general problem on your Linux system
it affects many other packages (not only OH2)
forcing your way through problems like this will only make things worse… you will end up with broken dependencies etc

Ok, I’ll try to google that and solve the problem. Thank you for pointing me in the right direction.

1 Like

I had to reinstall the ca-certificates. Don’t know why. But after that I was able to install openhab 2.3 over my 2.2 installation. And it is working :slight_smile:

1 Like

https://sadanduseless.b-cdn.net/wp-content/uploads/2013/03/t2.jpg

Could you please post your solution here? How did you reinstall ca-certificates?

in theory, with:

sudo apt-get update && sudo apt-get --reinstall install ca-certificates
1 Like

Thank you!

As a side note, it also helps to check your system time is correct - that was my issue.

1 Like
sudo apt-get install --reinstall ca-certificates

Good luck

1 Like