Replacement of the Apt Snapshot Repository

Definitely yes - I would have thought the upgrade does this already. @Benjy & @theo: Can you comment?

It is indeed:

upgrade)
 removeCache() 
[...] 

removeCache(){
    rm -rf /var/lib/openhab2/cache || true
    rm -rf /var/lib/openhab2/tmp || true
}
1 Like

Just FTR:

I upgraded (apt-get installation) to the latest snapshot today (was on stable before). OH came back up after the update/upgrade, no need to clear any cache directories. Karaf access etc. are all working.

So no general problem. But @ErikAhl also got it working again I see.

Glad you have it working, I’m not sure what the difference would be, removal of cache and tmp folders has been an unchanged feature of the deb packages since well before it moved to it’s own Github repo (before B5).

Same here! After

apt-get update
apt-get upgrade
systemctl reboot

on my RPi OH2 does not start properly anymore (i.e. the webinterface is not running). There are no entries in the log files. After I had removed all files in /var/lib/openhab2/cache and /var/lib/openhab2/tmp, OH2 has started to work correctly again.

Hi, pretty sure I’ve followed all the instructions…but when i try the install i get the following:

sudo apt-get install openhab2
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages will be REMOVED:
openhab2-offline
The following NEW packages will be installed:
openhab2
0 upgraded, 1 newly installed, 1 to remove and 2 not upgraded.
Need to get 53.2 MB of archives.
After this operation, 114 MB disk space will be freed.
Do you want to continue? [Y/n] Y
Err http://dl.bintray.com/openhab/apt-repo2/ unstable/main openhab2 all 2.1.0~20170212123642-1
404 Not Found
E: Failed to fetch http://dl.bintray.com/openhab/apt-repo2/pool/main/2.1.0~20170212123642/openhab2_2.1.0~20170212123642-1_all.deb 404 Not Found

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing

Any ideas?

The announcement in this thread has long been superseded. The latest snapshots (if this is what you want to install) have once again moved to another URL: The Linux snapshot installation repo has moved!

Everyone: To always find the latest installation instructions, please consult the official documentation. The following article will always be up to date:

http://docs.openhab.org/installation/linux.html#package-repository-installation

I’m going to close this thread.

4 Likes