# Replacement of the Apt Snapshot Repository

**URL:** <https://community.openhab.org/t/replacement-of-the-apt-snapshot-repository/19674>\
**Category:** News & Important Changes\
**Created:** [January 6, 2017, 10:00pm UTC](https://community.openhab.org/t/replacement-of-the-apt-snapshot-repository/19674 "2017-01-06T22:00:33Z")\
**Posts on this page:** 8\
**Page:** 3

<div class="post-metadata">

**Author:** ![Kai](https://community.openhab.org/user_avatar/community.openhab.org/kai/32/116281_2.png) [@Kai](https://community.openhab.org/u/Kai)\
**Post date:** [January 30, 2017, 7:18am UTC](https://community.openhab.org/t/replacement-of-the-apt-snapshot-repository/19674/41 "2017-01-30T07:18:33Z")

</div>

> [@Max1968](#):
>
> Perhaps it might make sense to clean cache/tmp during updates as well ?

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

---

<div class="post-metadata">

**Author:** ![Benjy](https://community.openhab.org/letter_avatar_proxy/v4/letter/b/eada6e/32.png) [@Benjy](https://community.openhab.org/u/Benjy)\
**Post date:** [January 30, 2017, 10:41am UTC](https://community.openhab.org/t/replacement-of-the-apt-snapshot-repository/19674/42 "2017-01-30T10:41:39Z")

</div>

It is indeed:

```auto
upgrade)
 removeCache() 
[...] 

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

```

---

<div class="post-metadata">

**Author:** ![jaydee73](https://community.openhab.org/letter_avatar_proxy/v4/letter/j/8edcca/32.png) [@jaydee73](https://community.openhab.org/u/jaydee73)\
**Post date:** [January 30, 2017, 11:24am UTC](https://community.openhab.org/t/replacement-of-the-apt-snapshot-repository/19674/43 "2017-01-30T11:24:11Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Benjy](https://community.openhab.org/letter_avatar_proxy/v4/letter/b/eada6e/32.png) [@Benjy](https://community.openhab.org/u/Benjy)\
**Post date:** [January 30, 2017, 2:37pm UTC](https://community.openhab.org/t/replacement-of-the-apt-snapshot-repository/19674/44 "2017-01-30T14:37:38Z")

</div>

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).

---

<div class="post-metadata">

**Author:** ![gowi](https://community.openhab.org/letter_avatar_proxy/v4/letter/g/b3f665/32.png) [@gowi](https://community.openhab.org/u/gowi)\
**Post date:** [January 31, 2017, 1:46pm UTC](https://community.openhab.org/t/replacement-of-the-apt-snapshot-repository/19674/45 "2017-01-31T13:46:45Z")

</div>

Same here! After

```auto
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.

---

<div class="post-metadata">

**Author:** ![PeteW](https://community.openhab.org/user_avatar/community.openhab.org/petew/32/8300_2.png) [@PeteW](https://community.openhab.org/u/PeteW)\
**Post date:** [February 28, 2017, 10:16pm UTC](https://community.openhab.org/t/replacement-of-the-apt-snapshot-repository/19674/46 "2017-02-28T22:16:46Z")

</div>

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/](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](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?

---

<div class="post-metadata">

**Author:** ![ThomDietrich](https://community.openhab.org/user_avatar/community.openhab.org/thomdietrich/32/71239_2.png) [@ThomDietrich](https://community.openhab.org/u/ThomDietrich)\
**Post date:** [February 28, 2017, 10:53pm UTC](https://community.openhab.org/t/replacement-of-the-apt-snapshot-repository/19674/47 "2017-02-28T22:53:26Z")

</div>

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!](https://community.openhab.org/t/the-linux-snapshot-installation-repo-has-moved/22915)

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](http://docs.openhab.org/installation/linux.html#package-repository-installation)

I’m going to close this thread.

---

<div class="post-metadata">

**Author:** ![ThomDietrich](https://community.openhab.org/user_avatar/community.openhab.org/thomdietrich/32/71239_2.png) [@ThomDietrich](https://community.openhab.org/u/ThomDietrich)\
**Post date:** [February 28, 2017, 10:53pm UTC](https://community.openhab.org/t/replacement-of-the-apt-snapshot-repository/19674/48 "2017-02-28T22:53:30Z")

</div>



[Previous page](https://community.openhab.org/t/replacement-of-the-apt-snapshot-repository/19674.md?page=2)
