New Setup: Apt-get Release Not Signed

I’m setting another VM machine from scratch with Ubuntu, following the OH2 docs, but get a Release not signed error and then failed to fetch error.

I haven’t continue yet trying to install but think it will fail?

Reading package lists... Done
W: The repository 'https://openhab.ci.cloudbees.com/job/openHAB-Distribution/ws/distributions/openhab-offline/target/apt-repo  Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'https://openhab.ci.cloudbees.com/job/openHAB-Distribution/ws/distributions/openhab-online/target/apt-repo  Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch https://openhab.ci.cloudbees.com/job/openHAB-Distribution/ws/distributions/openhab-offline/target/apt-repo/Release  Unable to find expected entry 'Packages' in Release file (Wrong sources.list entry or malformed file)
E: Failed to fetch https://openhab.ci.cloudbees.com/job/openHAB-Distribution/ws/distributions/openhab-online/target/apt-repo/Release  Unable to find expected entry 'Packages' in Release file (Wrong sources.list entry or malformed file)
E: Some index files failed to download. They have been ignored, or old ones used instead.

Appears this may be a know bug/issue already?

I have been struggling with that error since today’s morning to no avail. Installing the fixed beta release works like a charm but I would like to update with nightlies constantly.

Got to stop ubuntu from telling me the source is not trusted but still seeing “Unable to find expected entry ‘Packages’ in Release file”

I get the same thing. I really can’t say I understand how some of this stuff works as i’m not a coder. But went a followed the links to try and trouble shoot.

Both the Online and Offline include release information.
Strangely, the Online link on cloudbees includes both the online offline deb files.
The offline link seems to be missing the ‘Packages.gz’ file?

As a workaround, I just downloaded the offline package and manually installed it.

sudo wget https://openhab.ci.cloudbees.com/job/openHAB-Distribution/ws/distributions/openhab-offline/target/apt-repo/openhab2-offline-2.0.0-SNAPSHOT.deb
sudo dpkg -i openhab2-offline-2.0.0-SNAPSHOT.deb

I believe you still do need to manually add Habmin After that if you would like to use it.

It seems they are working on fixing it: https://github.com/openhab/openhab-distro/issues/270

Can anyone confirm that if/when you do run apt-get install where OpenHab2 should install to?

Since I manually ran the deb package, I found OH2 installed to the location of /etc/openhab2 and not the more traditional location of /opt/…

Here you go: http://docs.openhab.org/installation/linux.html#file-locations

1 Like

Thanks. Guess I hadn’t gotten that far down the page :slight_smile: