Scheduled maintenance: Community available only in read-only mode until 6:00 AM (PT)
Reply
New Member
Posts: 3
Registered: ‎07-27-2016
Kudos: 1

Re: UniFi Installation Scripts | UniFi Easy Update Scripts | Ubuntu 18.04 and 16.04 | Debian 8 and 9

Hello @AmazedMender16 

 

Thank you for all your hard work creating and maintaining these scripts.

 

I have received the following error:

 

Reading package lists... Done                                                       

W: GPG error: http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY BC711F9BA15703C6

E: The repository 'http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 Release' is not signed.

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.

Reading package lists... Done

Building dependency tree       

Reading state information... Done

E: Unable to locate package mongodb-org

 

###############################################################

 

          An error occurred. Aborting script..

Please contact Glenn R. (AmazedMender16) on the Community Forums!

 

Script: .../5.10.23/U1804/unifi-5.10.23.sh

Ran as root.

 

Additionally, I went to docs.mongodb.com and attempted to grab the key listed in the documenation, in case there was a change. The key fingerprint was different (9DA31620334BD75D9DCB49F368818C72E52529D4 vs

0C49F3730359A14518585931BC711F9BA15703C6), so I was hopeful:

 

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4

 

This failed as well:

Executing: /tmp/apt-key-gpghome.uIrqpn0UFN/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4

gpg: keyserver receive failed: Invalid argument

 

andrej

 

Senior Member
Posts: 25,966
Registered: ‎08-04-2017
Kudos: 4870
Solutions: 1289

Re: UniFi Installation Scripts | UniFi Easy Update Scripts | Ubuntu 18.04 and 16.04 | Debian 8 and 9

Hello @astefanovski,

 

You're using the key for MongoDB 4.0 for MongoDB 3.4...

Run the following command, than run the script again.

curl -LO https://www.mongodb.org/static/pgp/server-3.4.asc
gpg --import server-3.4.asc
rm server-3.4.asc

 

 

Regards,

Glenn R.

Cloud Hosted Controllers | Glenn R. | UniFi Installation/Easy Update Scripts | UniFi-Video Installation Scripts | UniFi-VoIP Installation Scripts
USG-XG-8 • USG-4-PRO • USG
US-XG-16 • US-48-500W • US-24-POE-250W 2x • US-16-POE-150W 3x • US-24 • US-8-150W • US-8
UAP XG • UAP-SHD • UAP-HD • UAP-NanoHD 2x • UAP-AC-PRO 2x • UAP-AC-LITE • UAP-AC-IW • UAP-AC-M • UAP-AC-M-PRO 2x
UAS-XG • UCK-G2-PLUS • UCK-G2 • UCK
New Member
Posts: 3
Registered: ‎07-27-2016
Kudos: 1

Re: UniFi Installation Scripts | UniFi Easy Update Scripts | Ubuntu 18.04 and 16.04 | Debian 8 and 9

[ Edited ]

Edit: It was an issue (downtime/maintenence/?) with the keyserver. I woke up, ran the script without making any changes since the last attempt and it finished successfully 👍

 

Thanks!

andrej

Senior Member
Posts: 25,966
Registered: ‎08-04-2017
Kudos: 4870
Solutions: 1289

Re: UniFi Installation Scripts | UniFi Easy Update Scripts | Ubuntu 18.04 and 16.04 | Debian 8 and 9

Hello @astefanovski,

 

I will reach out to you via a PM.

 

 

Regards,

Glenn R.

Cloud Hosted Controllers | Glenn R. | UniFi Installation/Easy Update Scripts | UniFi-Video Installation Scripts | UniFi-VoIP Installation Scripts
USG-XG-8 • USG-4-PRO • USG
US-XG-16 • US-48-500W • US-24-POE-250W 2x • US-16-POE-150W 3x • US-24 • US-8-150W • US-8
UAP XG • UAP-SHD • UAP-HD • UAP-NanoHD 2x • UAP-AC-PRO 2x • UAP-AC-LITE • UAP-AC-IW • UAP-AC-M • UAP-AC-M-PRO 2x
UAS-XG • UCK-G2-PLUS • UCK-G2 • UCK
New Member
Posts: 17
Registered: ‎04-08-2018
Kudos: 6

Re: UniFi Installation Scripts | UniFi Easy Update Scripts | Ubuntu 18.04 and 16.04 | Debian 8 and 9

Update from 5.10.20 to 5.10.23 worked beautifully again, thanks Glenn! Hurray

 

I did notice that the script couldn't remove itself after the upgrade:

 

rm: cannot remove './unifi-update.sh': No such file or directory

That might be because of the ./ I reckon. Either way, not a deal breaker at all, just thought I mention it.

Senior Member
Posts: 25,966
Registered: ‎08-04-2017
Kudos: 4870
Solutions: 1289

Re: UniFi Installation Scripts | UniFi Easy Update Scripts | Ubuntu 18.04 and 16.04 | Debian 8 and 9

Hello @l0calh0st,

 

Thank you for the feedback, will take a look at it!

 

 

Regards,

Glenn R.

Cloud Hosted Controllers | Glenn R. | UniFi Installation/Easy Update Scripts | UniFi-Video Installation Scripts | UniFi-VoIP Installation Scripts
USG-XG-8 • USG-4-PRO • USG
US-XG-16 • US-48-500W • US-24-POE-250W 2x • US-16-POE-150W 3x • US-24 • US-8-150W • US-8
UAP XG • UAP-SHD • UAP-HD • UAP-NanoHD 2x • UAP-AC-PRO 2x • UAP-AC-LITE • UAP-AC-IW • UAP-AC-M • UAP-AC-M-PRO 2x
UAS-XG • UCK-G2-PLUS • UCK-G2 • UCK
New Member
Posts: 2
Registered: ‎06-29-2017

Re: UniFi Installation Scripts | UniFi Easy Update Scripts | Ubuntu 18.04 and 16.04 | Debian 8 and 9

Was extremely nice and helpful when i was running into some issues upgrading from 5.9 to 5.10. Made a fixed backup for me although it seems like I didn't need it, unifi was just taking ages to actually complete the restore. Regardless, very helpful and nice.

Senior Member
Posts: 25,966
Registered: ‎08-04-2017
Kudos: 4870
Solutions: 1289

Re: UniFi Installation Scripts | UniFi Easy Update Scripts | Ubuntu 18.04 and 16.04 | Debian 8 and 9

Hello @12jdlovins,

 

You're welcome Man Happy

 

 

Regards,

Glenn R.

Cloud Hosted Controllers | Glenn R. | UniFi Installation/Easy Update Scripts | UniFi-Video Installation Scripts | UniFi-VoIP Installation Scripts
USG-XG-8 • USG-4-PRO • USG
US-XG-16 • US-48-500W • US-24-POE-250W 2x • US-16-POE-150W 3x • US-24 • US-8-150W • US-8
UAP XG • UAP-SHD • UAP-HD • UAP-NanoHD 2x • UAP-AC-PRO 2x • UAP-AC-LITE • UAP-AC-IW • UAP-AC-M • UAP-AC-M-PRO 2x
UAS-XG • UCK-G2-PLUS • UCK-G2 • UCK
Senior Member
Posts: 25,966
Registered: ‎08-04-2017
Kudos: 4870
Solutions: 1289

Re: UniFi Installation Scripts | UniFi Easy Update Scripts | Ubuntu 18.04 and 16.04 | Debian 8 and 9

[ Edited ]

Hello Everyone,

 

I made some adjustments to the Easy Update Script.

Let me know if you run into any issues!

 

Easy Update Script v3.2.0

Spoiler
+ Show backup location at the end of the script ( requested by @KimchiGUN  ).
+ Check if dirmngr is installed.
+ Device firmware check for 5.6.42 upgrades.
+ OS update/upgrade option.
* Improved script removal. 
* Improved upgrades from 5.6.40.

 

 

 

Regards,

Glenn R.

 

CC @l0calh0st 

Cloud Hosted Controllers | Glenn R. | UniFi Installation/Easy Update Scripts | UniFi-Video Installation Scripts | UniFi-VoIP Installation Scripts
USG-XG-8 • USG-4-PRO • USG
US-XG-16 • US-48-500W • US-24-POE-250W 2x • US-16-POE-150W 3x • US-24 • US-8-150W • US-8
UAP XG • UAP-SHD • UAP-HD • UAP-NanoHD 2x • UAP-AC-PRO 2x • UAP-AC-LITE • UAP-AC-IW • UAP-AC-M • UAP-AC-M-PRO 2x
UAS-XG • UCK-G2-PLUS • UCK-G2 • UCK
New Member
Posts: 4
Registered: ‎09-29-2015

Re: UniFi Installation Scripts | UniFi Easy Update Scripts | Ubuntu 18.04 and 16.04 | Debian 8 and 9

Glenn...Thanks so much for all your help!! You really got me out of a pinch. Those scripts are awesome! Glenn should work for Ubiquiti! He really knows his stuff and goes above and beyond to help! He helped me get my OS upgraded and my controller all the way from 5.6 to 5.10. What would’ve took me a week took him maybe an hour.  Thanks again. Much appreciated! 

Senior Member
Posts: 25,966
Registered: ‎08-04-2017
Kudos: 4870
Solutions: 1289

Re: UniFi Installation Scripts | UniFi Easy Update Scripts | Ubuntu 18.04 and 16.04 | Debian 8 and 9

Hello @ryanc1,

 

You're welcome, glad I was able to help you!

 

 

Regards,

Glenn R.

Cloud Hosted Controllers | Glenn R. | UniFi Installation/Easy Update Scripts | UniFi-Video Installation Scripts | UniFi-VoIP Installation Scripts
USG-XG-8 • USG-4-PRO • USG
US-XG-16 • US-48-500W • US-24-POE-250W 2x • US-16-POE-150W 3x • US-24 • US-8-150W • US-8
UAP XG • UAP-SHD • UAP-HD • UAP-NanoHD 2x • UAP-AC-PRO 2x • UAP-AC-LITE • UAP-AC-IW • UAP-AC-M • UAP-AC-M-PRO 2x
UAS-XG • UCK-G2-PLUS • UCK-G2 • UCK
New Member
Posts: 2
Registered: ‎08-02-2017

Re: UniFi Installation Scripts | UniFi Easy Update Scripts | Ubuntu 18.04 and 16.04 | Debian 8 and 9

Most amazing script ever! Thanks!
Senior Member
Posts: 25,966
Registered: ‎08-04-2017
Kudos: 4870
Solutions: 1289

Re: UniFi Installation Scripts | UniFi Easy Update Scripts | Ubuntu 18.04 and 16.04 | Debian 8 and 9

Hello @tekfranz,

 

Thank you for your feedback, glad they helped you out!

 

 

Regards,

Glenn R.

Cloud Hosted Controllers | Glenn R. | UniFi Installation/Easy Update Scripts | UniFi-Video Installation Scripts | UniFi-VoIP Installation Scripts
USG-XG-8 • USG-4-PRO • USG
US-XG-16 • US-48-500W • US-24-POE-250W 2x • US-16-POE-150W 3x • US-24 • US-8-150W • US-8
UAP XG • UAP-SHD • UAP-HD • UAP-NanoHD 2x • UAP-AC-PRO 2x • UAP-AC-LITE • UAP-AC-IW • UAP-AC-M • UAP-AC-M-PRO 2x
UAS-XG • UCK-G2-PLUS • UCK-G2 • UCK
New Member
Posts: 3
Registered: ‎03-12-2014

Re: UniFi Installation Scripts | UniFi Easy Update Scripts | Ubuntu 18.04 and 16.04 | Debian 8 and 9

Update script.

 

Hi Thanks again for this amazing script.

I updated to 5.6.42 and would like to upgrade to 5.10.23 with the same script. Is that possible ?

Cause when I run it now I get

# Your UniFi Network Controller is already on the latest LTS release!
# There are currently no upgrade paths!

 

 

Senior Member
Posts: 25,966
Registered: ‎08-04-2017
Kudos: 4870
Solutions: 1289

Re: UniFi Installation Scripts | UniFi Easy Update Scripts | Ubuntu 18.04 and 16.04 | Debian 8 and 9

Hello @alarsen,

 

5.6.42 currently has no upgrade path, I will update the script when Ubiquiti releases a upgrade path for 5.6.42

 

 

Regards,

Glenn R.

Cloud Hosted Controllers | Glenn R. | UniFi Installation/Easy Update Scripts | UniFi-Video Installation Scripts | UniFi-VoIP Installation Scripts
USG-XG-8 • USG-4-PRO • USG
US-XG-16 • US-48-500W • US-24-POE-250W 2x • US-16-POE-150W 3x • US-24 • US-8-150W • US-8
UAP XG • UAP-SHD • UAP-HD • UAP-NanoHD 2x • UAP-AC-PRO 2x • UAP-AC-LITE • UAP-AC-IW • UAP-AC-M • UAP-AC-M-PRO 2x
UAS-XG • UCK-G2-PLUS • UCK-G2 • UCK
New Member
Posts: 16
Registered: ‎06-03-2017
Kudos: 3
Solutions: 2

Re: UniFi Installation Scripts | UniFi Easy Update Scripts | Ubuntu 18.04 and 16.04 | Debian 8 and 9


@AmazedMender16 wrote:

Hello Everyone,

 

I made some adjustments to the Easy Update Script.

Let me know if you run into any issues!

 

Easy Update Script v3.2.0

Spoiler
+ Show backup location at the end of the script ( requested by @KimchiGUN  ).
+ Check if dirmngr is installed.
+ Device firmware check for 5.6.42 upgrades.
+ OS update/upgrade option.
* Improved script removal. 
* Improved upgrades from 5.6.40.

But why remove it? Just let it update itself when it is outdated. Then it could be re-used every time it is needed....

 

 

Regards,

Glenn R.

 

CC @l0calh0st 


 

Senior Member
Posts: 25,966
Registered: ‎08-04-2017
Kudos: 4870
Solutions: 1289

Re: UniFi Installation Scripts | UniFi Easy Update Scripts | Ubuntu 18.04 and 16.04 | Debian 8 and 9

Hello @llag,

 

It does update itself if its outdated, why keep unneeded files on the system when you can download a new one?

 

 

Regards,

Glenn R.

Cloud Hosted Controllers | Glenn R. | UniFi Installation/Easy Update Scripts | UniFi-Video Installation Scripts | UniFi-VoIP Installation Scripts
USG-XG-8 • USG-4-PRO • USG
US-XG-16 • US-48-500W • US-24-POE-250W 2x • US-16-POE-150W 3x • US-24 • US-8-150W • US-8
UAP XG • UAP-SHD • UAP-HD • UAP-NanoHD 2x • UAP-AC-PRO 2x • UAP-AC-LITE • UAP-AC-IW • UAP-AC-M • UAP-AC-M-PRO 2x
UAS-XG • UCK-G2-PLUS • UCK-G2 • UCK
New Member
Posts: 16
Registered: ‎06-03-2017
Kudos: 3
Solutions: 2

Re: UniFi Installation Scripts | UniFi Easy Update Scripts | Ubuntu 18.04 and 16.04 | Debian 8 and 9

hi Glenn,

I really like the script and trust it to do the right thing. I noticed that it downloads the latest version if required and found that really convenient. So why do both the update AND delete?

 

If it gets removed I need to dig up the correct link to download it again. The VM is used only for unify so a tiny scripts does not really cause any inconvenience. That is all.

 

Anyhow, thanks for the really easy script!

 

Kind regards, Louis

 

 

Senior Member
Posts: 25,966
Registered: ‎08-04-2017
Kudos: 4870
Solutions: 1289

Re: UniFi Installation Scripts | UniFi Easy Update Scripts | Ubuntu 18.04 and 16.04 | Debian 8 and 9

Hello @llag,

 

Thank you for your feedback, I'll consider removing it or adding an option to choose to delete it or not at the end.

 

 

Regards,

Glenn R.

Cloud Hosted Controllers | Glenn R. | UniFi Installation/Easy Update Scripts | UniFi-Video Installation Scripts | UniFi-VoIP Installation Scripts
USG-XG-8 • USG-4-PRO • USG
US-XG-16 • US-48-500W • US-24-POE-250W 2x • US-16-POE-150W 3x • US-24 • US-8-150W • US-8
UAP XG • UAP-SHD • UAP-HD • UAP-NanoHD 2x • UAP-AC-PRO 2x • UAP-AC-LITE • UAP-AC-IW • UAP-AC-M • UAP-AC-M-PRO 2x
UAS-XG • UCK-G2-PLUS • UCK-G2 • UCK
New Member
Posts: 23
Registered: ‎06-10-2016

Re: UniFi Installation Scripts | UniFi Easy Update Scripts | Ubuntu 18.04 and 16.04 | Debian 8 and 9

When I run this script on UNMS 5.10.23, 16.04 I get the following message. None of the APs appear to be updating. I'm trying to get from 4.0.21 to 4.0.30

 

#########################################################################

# A custom upgrade has been executed, the script will run one more
# time to upgrade everything to the latest available firmware

# Waiting for the first device to report back that it upgraded!

Reply