Step 1: obtain the bin URL from https://www.ui.com/download/unifi/unifi-ap/uaplr

Step 2: perform the upgrade

rambo@kimlinux:/home/rambo# ssh [email protected]
[email protected]'s password: 

BusyBox v1.25.1 () built-in shell (ash)
  ___ ___      .__________.__
 |   |   |____ |__\_  ____/__|
 |   |   /    \|  ||  __) |  |   (c) 2010-2019
 |   |  |   |  \  ||  \   |  |   Ubiquiti Networks, Inc.
 |______|___|  /__||__/   |__|
            |_/                  https://www.ui.com/introduction
      Welcome to UniFi UAP-LR!
UBNT-BZ.v4.0.80# upgrade https://dl.ui.com/unifi/firmware/BZ2/4.3.21.11325/BZ.ar7240.v4.3.21.11325.200922.1739.bin --no-check-certificate
Downloading firmware from 'https://dl.ui.com/unifi/firmware/BZ2/4.3.21.11325/BZ.ar7240.v4.3.21.11325.200922.1739.bin'.
 
notification is sent in managed or upgrade state only. (factory default is excluded)
notification is sent in managed or upgrade state only. (factory default is excluded)
Scheduling firmware upgrade...
Inform or provisioning in progress. Upgrade will start soon.
Waiting for upgrade to start...
Waiting for upgrade to start...
Waiting for upgrade to start...
Waiting for upgrade to start...
Waiting for upgrade to start...
Waiting for upgrade to start...
Waiting for upgrade to start...
Waiting for upgrade to start...
Waiting for upgrade to start...
Waiting for upgrade to start...
Waiting for upgrade to start...
Waiting for upgrade to start...
Waiting for upgrade to start...
Waiting for upgrade to start...
Waiting for upgrade to start...
Waiting for upgrade to start...
Waiting for upgrade to start...
Connection to 192.168.0.64 closed by remote host.
Connection to 192.168.0.64 closed.

Old Notes:

# Initial attempt to upgrade UniFi AP-LR

BZ.v3.2.12# upgrade .v4.0.80.10875.200111.2335.bin --no-check-certificate
Downloading firmware from 'https://dl.ui.com/unifi/firmware/BZ2/4.0.80.10875/BZ.ar7240.v4.0.80.10875.200111.2335.bin'.

--2020-04-24 23:50:37-- https://dl.ui.com/unifi/firmware/BZ2/4.0.80.10875/BZ.ar7240.v4.0.80.10875.200111.2335.bin
Resolving dl.ui.com... 13.226.251.170
Connecting to dl.ui.com|13.226.251.170|:443... connected.
ERROR: cannot verify dl.ui.com's certificate, issued by `/C=US/O=Amazon/OU=Server CA 1B/CN=Amazon':
Unable to locally verify the issuer's authority.
To connect to dl.ui.com insecurely, use `--no-check-certificate'.
Unable to establish SSL connection.
Image short, header truncated.
Invalid firmware.

# Workaround: upgrade to version 3.7.58 prior to the latest

BZ.v3.2.12# wget .
7.58.6385.170508.0942.bin -O /tmp/fwupdate.bin
--2020-04-24 23:55:53-- http://dl.ubnt.com/unifi/firmware/BZ2/3.7.58.6385/BZ.ar7240.v3.7.58.6385.170508.0942.bin
Resolving dl.ubnt.com... 13.226.236.172
Connecting to dl.ubnt.com|13.226.236.172|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7320920 (7.0M) [application/octet-stream]
Saving to: `/tmp/fwupdate.bin'
100%[======================================>] 7,320,920 2.79M/s in 2.5s
2020-04-24 18:15:56 (2.79 MB/s) - `/tmp/fwupdate.bin' saved [7320920/7320920]

BZ.v3.2.12# syswrapper.sh upgrade2 &
BZ.v3.2.12# + exec

# Now, run the latest firmware update

BZ.v3.7.58# upgrade .
v4.0.80.10875.200111.2335.bin --no-check-certificate