Anyone who wishes to install Jetpack version 2.3.1 directly onto a fresh 16.04 Ubuntu build (i.e. that has not been upgraded from 14.04) may run into a problem when installing.
You will be prompted to run the following command:
sudo apt-get install libopencv4tegra libopencv4tegra-dev
When you do so, you will get errors about libavcodec among others.
The following shell script should install the underlying dependencies and allow installation of libopencv4tegra and -dev.
#!/bin/sh echo deb http://se.archive.ubuntu.com/ubuntu trusty main universe | sudo tee /etc/apt/sources.list.d/temp-trusty.list echo deb http://security.ubuntu.com/ubuntu trusty-security main universe | sudo tee -a /etc/apt/sources.list.d/temp-trusty.list sudo apt update sudo apt install libavcodec54 libavformat54 libswscale2 sudo rm /etc/apt/sources.list.d/temp-trusty.list sudo apt update
Slightly janky but worked for me. YMMV.