Update Unify from 5.x to 6.x

Good news - Ubiquity has released version 6 of the Unify controller software in september 2020.

If you're running Unify on a Raspberry Pi (on raspbian) then you're likely to be greeted by a message that UBNT's repository has changed when you try to run apt-get update. 

Something like:

E: Repository 'http://dl.ubnt.com/unifi/debian stable InRelease' changed its 'Codename' value from 'unifi-5.13' to 'unifi-6.0'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.

So - what to do?

Simple: Run  apt-get update --allow-releaseinfo-change

Details? Read on!

1) SSH into your Raspberry using Putty (or whatever you use to do so)

2) Run sudo apt-get update and notice the error message: Ubiquity has changed the relase to 6.0, so you need to accept that.

3) Run sudo apt-get update --allow-releaseinfo   - and notice how the error no longer shows.

4) Run sudo apt-get update again to verify

5) Make sure you downloaded a Unify backup to your workstation!

6) Run sudo apt-get upgrade Unify will now be updated.