OpenCV Install error

We have been trying to flash the Jetson TX2 for days now, after jumping through all the loops, we are stuck at the step of installing the OpenCV SDK component on the Jetson TX2. We were able to flash the Jetson OS and boot the latest version of Ubuntu 18.04 on it. The only thing we are not able to install is OpenCV. We are running Ubuntu 18.04 on VirtualBox
Error images:


Error images:


Something to clarify

  1. sdkamagner is not working on VM.
  2. Actually, the opencv from sdkmanager is same as the one from upstream. You could also try to download it through apt-get.