Reply
Senior Member
Posts: 13,040
Registered: ‎08-04-2017
Kudos: 2211
Solutions: 640

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

Hello @enkrypt3d,

 

Doubt this is a clean install... will reach out to you via PM.

 

 

Regards,

Glenn R.

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

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

Awesome installer.

 

Love how i can run it and almost walk away and let it do its job.

Matt W
Senior Member
Posts: 13,040
Registered: ‎08-04-2017
Kudos: 2211
Solutions: 640

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

Hello @Ryoohk,

 

Thank you for your feedback! Ubnt Banana

 

 

Regards,

Glenn R.

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

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

[ Edited ]

Holy ever loving frak, dude! This puppy worked like a champ right out of the box.

That is some next level ninja scripting you've done there, sir.

It's going to take me most of the day just to unpack in my mind all that your script did to slap my unifi installation into shape.

WOW!

I'm blown away.

Superb.

You even retained my let's encrypt configuration...

You, sir, are a god.

New Member
Posts: 20
Registered: ‎10-01-2016
Kudos: 1

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

I'll write-up all that I know was broken on my AWS instance and post it here in a while, but that got me thinking...

 

Maybe a future feature of the script could be to offer to create a short, but sweet text file that summarized the system as it was found when the script started, what was done to un-frak the system by your glorious script, and the end state of the system.

 

Nothing terribly verbose, just enough to fit in a post here so that we can all marvel at it together :-)

Senior Member
Posts: 13,040
Registered: ‎08-04-2017
Kudos: 2211
Solutions: 640

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

Hello @JAGKD705,

 

Thank you for your feedback!

What exact kind of output are you wanting to see?

 

 

Regards,

Glenn R.

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

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

The output to the screen is marvelous, but it looks like it does a clear screen at each step as it goes along. 

 

Perhaps the output file could list the steps and the various repairs that were needed during each of the steps.

 

- Found existing unifi configuration in location /blah/blah/blah 

- Something like "Found such-and-such parameter set incorrectly -- changing from X to Y.

- Found version ZYX of component installed, when version LMNO was needed. 

 

I guess it would be just for "gee whiz" factor more than anything.  I was just so impressed how it powered through my essentially junked configuration after my halfbaked upgrading from Ubuntu 16.04  to 18.04 on AWS.  I wish I'd recorded my screen so that I could watch it again! :-)

 

Thank you again.

New Member
Posts: 2
Registered: ‎11-28-2013

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

Having trouble with the script, it starts and gets to this point...

 

Hit:1 http://mirrors.linode.com/ubuntu xenial InRelease
Hit:2 http://mirrors.linode.com/ubuntu xenial-updates InRelease
Hit:3 http://mirrors.linode.com/ubuntu xenial-backports InRelease
Get:5 http://security.ubuntu.com/ubuntu xenial-security InRelease [107 kB]
Reading package lists... Done
W: Target Packages (ubiquiti/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:56 and /etc/apt/sources.list:57
W: Target Packages (ubiquiti/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:56 and /etc/apt/sources.list:57
W: Target Packages (ubiquiti/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:56 and /etc/apt/sources.list:57
W: Target Translations (ubiquiti/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:56 and /etc/apt/sources.list:57
W: Target Translations (ubiquiti/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:56 and /etc/apt/sources.list:57
W: Target Packages (ubiquiti/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:56 and /etc/apt/sources.list.d/100-ubnt-unifi.list:1
W: Target Packages (ubiquiti/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:56 and /etc/apt/sources.list.d/100-ubnt-unifi.list:1
W: Target Packages (ubiquiti/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:56 and /etc/apt/sources.list.d/100-ubnt-unifi.list:1
W: Target Translations (ubiquiti/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:56 and /etc/apt/sources.list.d/100-ubnt-unifi.list:1
W: Target Translations (ubiquiti/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:56 and /etc/apt/sources.list.d/100-ubnt-unifi.list:1
W: Target Packages (ubiquiti/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:56 and /etc/apt/sources.list.d/100-ubnt.list:5
W: Target Packages (ubiquiti/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:56 and /etc/apt/sources.list.d/100-ubnt.list:5
W: Target Packages (ubiquiti/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:56 and /etc/apt/sources.list.d/100-ubnt.list:5
W: Target Translations (ubiquiti/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:56 and /etc/apt/sources.list.d/100-ubnt.list:5
W: Target Translations (ubiquiti/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:56 and /etc/apt/sources.list.d/100-ubnt.list:5
E: The method driver /usr/lib/apt/methods/https could not be found.
N: Is the package apt-transport-https installed?
W: Target Packages (ubiquiti/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:56 and /etc/apt/sources.list:57
W: Target Packages (ubiquiti/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:56 and /etc/apt/sources.list:57
W: Target Packages (ubiquiti/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:56 and /etc/apt/sources.list:57
W: Target Translations (ubiquiti/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:56 and /etc/apt/sources.list:57
W: Target Translations (ubiquiti/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:56 and /etc/apt/sources.list:57
W: Target Packages (ubiquiti/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:56 and /etc/apt/sources.list.d/100-ubnt-unifi.list:1
W: Target Packages (ubiquiti/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:56 and /etc/apt/sources.list.d/100-ubnt-unifi.list:1
W: Target Packages (ubiquiti/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:56 and /etc/apt/sources.list.d/100-ubnt-unifi.list:1
W: Target Translations (ubiquiti/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:56 and /etc/apt/sources.list.d/100-ubnt-unifi.list:1
W: Target Translations (ubiquiti/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:56 and /etc/apt/sources.list.d/100-ubnt-unifi.list:1
W: Target Packages (ubiquiti/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:56 and /etc/apt/sources.list.d/100-ubnt.list:5
W: Target Packages (ubiquiti/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:56 and /etc/apt/sources.list.d/100-ubnt.list:5
W: Target Packages (ubiquiti/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:56 and /etc/apt/sources.list.d/100-ubnt.list:5
W: Target Translations (ubiquiti/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:56 and /etc/apt/sources.list.d/100-ubnt.list:5
W: Target Translations (ubiquiti/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:56 and /etc/apt/sources.list.d/100-ubnt.list:5

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

An error occurred. Aborting script..
Please contact Glenn R. (AmazedMender16) on the Community Forums!

 

I am a novice at this so any help would be welcome!

Senior Member
Posts: 13,040
Registered: ‎08-04-2017
Kudos: 2211
Solutions: 640

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

[ Edited ]

Hello @sb60634,

 

Please run the following commands.

rm /etc/apt/sources.list.d/100-ubnt*
sed -i '/ubiquiti/d' /etc/apt/sources.list
apt-get install apt-transport-https -y

 Now execute the script again, if you still run into issues please let me know!

 

 

Regards,

Glenn R.

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

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

Hello @JAGKD705,

 

Thats what its saying in the output already, I want to keep people their systems clean as possible.. will see what I can do in the future.

 

 

Regards,

Glenn R.

 

 

 

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

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

That worked!  Up and running, thank you!

Senior Member
Posts: 13,040
Registered: ‎08-04-2017
Kudos: 2211
Solutions: 640

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

Hello @sb60634,

 

Awesome, thanks for reporting back!

Goodluck with your new controller.

 


Regards,

Glenn R.

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

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

[ Edited ]

I can confirm that the installation script for UniFi 5.9.29 works great on Ubuntu 18.04 LTS with arm64!

 

The downside with running ARM based computer e.g. Rasberry Pi, ODROID etc. is that it's currently not supported and that's why I'm getting the error message below when doing an update. Please consider vote for @unixsmurfs suggestion for future ARM support! https://community.ubnt.com/t5/UniFi-Feature-Requests/add-deb-repos-for-arm64-ppc64el/idc-p/2611632#M...

 

Hit:9 https://dl.ubnt.com/unifi/debian unifi-5.9 InRelease
Reading package lists... Done
N: Skipping acquire of configured file 'ubiquiti/binary-arm64/Packages' as repository 'http://www.ubnt.com/downloads/unifi/debian unifi-5.9 InRelease' doesn't support architecture 'arm64'

 

 

 

 

Senior Member
Posts: 13,040
Registered: ‎08-04-2017
Kudos: 2211
Solutions: 640

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

Hello @kartongsaft,

 

Awesome, glad my scripts helped you out!

 

 

Regards,

Glenn R.

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

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

When I run this update for the controller, wil any of my sites experience downtime?

New Member
Posts: 7
Registered: ‎02-06-2014

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

Hi Glenn

 

Will my sites experience downtime when updating the controller?

Emerging Member
Posts: 96
Registered: ‎06-05-2017
Kudos: 19
Solutions: 2

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

No it's just your controller...
Senior Member
Posts: 13,040
Registered: ‎08-04-2017
Kudos: 2211
Solutions: 640

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

Hello @brando1972,

 

No, your sites should continue to function when you upgrade the controller.

 

 

Regards,

Glenn R.

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

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

hello glenn

 

i tried in ubuntu 16.04.5 i got this error, but if in 16.04.1 the installation works fine

 

You seem to have Ubuntu 16.04.5 LTS
                                   This script is made for Ubuntu 18.04

                               Please download the correct script for your OS.
                                            Cancelling script

 

thanks

Senior Member
Posts: 13,040
Registered: ‎08-04-2017
Kudos: 2211
Solutions: 640

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

Hello @toiletbowl,

 

Make sure you're downloading the script for 16.04

 

 

Regards,

Glenn R.

Cloud Hosted Controllers | Glenn R. | UniFi Installation/Easy Update Scripts | UniFi-Video Installation/Easy Update Scripts | UniFi-VoIP Installation Scripts
USG-4-PRO • USG
USW-48-500W • USW-24-POE-250W 2x • USW-16-POE-150W 3x • USW-24 • USW-8-150W • USW-8
UAP XG • UAP-SHD • UAP-HD • UAP-NanoHD • UAP-AC-PRO 2x • UAP-AC-LITE • UAP-AC-IW • UAP-AC-M
UCK-G2-PLUS • UCK-G2 • UCK
Reply