How to install OpenCV 4.2.0 with CUDA 10.1 on Ubuntu 20.04 LTS (Focal Fossa) Install updates and upgrade your system: $ sudo apt update $ sudo apt upgrade Install required libraries: