This article describes how to update the NVR appliance's operating system via CLI.
NOTES & REQUIREMENTS: It is recommended to update the NVR OS before updating the UniFi Video service.
Table of Contents
Using the command line interface (CLI) a package refresh will be triggered which will update any currently installed system software. This system administration task is needed to include any security updates or related fixes which may have been published after the deployment of the NVR appliance. Follow the steps below to perform the update.
How to Update the NVR OS
1. Open a shell session (SSH) to the NVR appliance. Need help with SSH? See our Related Articles below.
ATTENTION: If you are on a version before 3.10 - enter the following commands before you continue:
service unifi-video stop
echo 'deb http://archive.debian.org/debian/ jessie-backports main' >> /etc/apt/sources.list.d/openjdk.list
You may be prompted with a blue screen to approve some updates. Please select Yes (via the enter key) to approve all said updates during this process.
After this update has finished you can upgrade unifi-video normally via the webUI using the option in Settings > System Configuration > Updates.
2. Enter the following commands:
apt-get update -o Acquire::Check-Valid-Until=false && apt-get upgrade -y -o Acquire::Check-Valid-Until=false && apt-get autoremove -y && apt-get autoclean && apt-get clean
This is the purpose of each command used:
apt-get updateretrieves a new list of software packages from the Debian repository
apt-get upgrade -ydownloads and installs all updated software and automatically answers yes to all questions
apt-get autoremove -yremoves any unused software packages and automatically answers yes to all questions
apt-get autocleandeletes any old software archive files from previous apt-get sessions
apt-get cleandeletes any downloaded software archive files from previous apt-get sessions
User Tip: Simply running the following is sufficient most of the time:
The remaining commands are a more robust approach to basic system administration. The base operating system used by the NVR appliance is Debian 7 (Wheezy).