OpenCV script build error for r36.4.3 on AGX Orin Industrial

Hi,

We are getting some error of checksum mismatch, when running the openCV shell script used for installing openCV for Jetpack 6.1 on r36.4.3 on AGX Orin Industrial.

Note: This script was working earlier for 2 years now we are getting below error.

The error log is as shown below:

willet@willet-desktop:~/Downloads$ ./install_opencv4.10.0_Jetpack6.1.sh

Do you want to remove the default OpenCV (yes/no)?
yes
** Remove other OpenCV first
[sudo] password for willet:
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Note, selecting ‘libopencv3.4-java’ for glob ‘libopencv’
Note, selecting ‘libopencv4.5d-jni’ for glob ‘libopencv’
Note, selecting ‘libopencv-photo4.0’ for glob ‘libopencv’
Note, selecting ‘libopencv-videoio4.5d’ for glob ‘libopencv’
Note, selecting ‘libopencv-dnn4.0’ for glob ‘libopencv’
Note, selecting ‘libopencv-ml4.0’ for glob ‘libopencv’
Note, selecting ‘libopencv-objdetect4.5d’ for glob ‘libopencv’
Note, selecting ‘libopencv-gpu-dev’ for glob ‘libopencv’
Note, selecting ‘libopencv-videoio-dev’ for glob ‘libopencv’
Note, selecting ‘libopencv-superres4.5d’ for glob ‘libopencv’
Note, selecting ‘libopencv-objdetect-dev’ for glob ‘libopencv’
Note, selecting ‘libopencv-contrib4.5d’ for glob ‘libopencv’
Note, selecting ‘libopencv-videoio4.0’ for glob ‘libopencv’
Note, selecting ‘libopencv-superres-dev’ for glob ‘libopencv’
Note, selecting ‘libopencv4.0-java’ for glob ‘libopencv’
Note, selecting ‘libopencv-contrib-dev’ for glob ‘libopencv’
Note, selecting ‘libopencv4.1-java’ for glob ‘libopencv’
Note, selecting ‘libopencv-imgcodecs4.5d’ for glob ‘libopencv’
Note, selecting ‘libopencv4.2-java’ for glob ‘libopencv’
Note, selecting ‘libopencv-imgcodecs-dev’ for glob ‘libopencv’
Note, selecting ‘libopencv-samples’ for glob ‘libopencv’
Note, selecting ‘libopencv-imgproc4.0’ for glob ‘libopencv’
Note, selecting ‘libopencv4.3-java’ for glob ‘libopencv’
Note, selecting ‘libopencv-objdetect4.0’ for glob ‘libopencv’
Note, selecting ‘libopencv4.4-java’ for glob ‘libopencv’
Note, selecting ‘libopencv-video4.5d’ for glob ‘libopencv’
Note, selecting ‘libopencv-shape4.5d’ for glob ‘libopencv’
Note, selecting ‘libopencv-video-dev’ for glob ‘libopencv’
Note, selecting ‘libopencv-core4.0’ for glob ‘libopencv’
Note, selecting ‘libopencv4.5-java’ for glob ‘libopencv’
Note, selecting ‘libopencv-shape-dev’ for glob ‘libopencv’
Note, selecting ‘libopencv-ts-dev’ for glob ‘libopencv’
Note, selecting ‘libopencv-python’ for glob ‘libopencv’
Note, selecting ‘libopencv-highgui4.5d’ for glob ‘libopencv’
Note, selecting ‘libopencv-core4.5d’ for glob ‘libopencv’
Note, selecting ‘libopencv-stitching4.5d’ for glob ‘libopencv’
Note, selecting ‘libopencv-highgui-dev’ for glob ‘libopencv’
Note, selecting ‘libopencv-core-dev’ for glob ‘libopencv’
Note, selecting ‘libopencv-stitching-dev’ for glob ‘libopencv’
Note, selecting ‘libopencv-imgcodecs4.0’ for glob ‘libopencv’
Note, selecting ‘libopencv’ for glob ‘libopencv’
Note, selecting ‘libopencv-calib3d4.0’ for glob ‘libopencv’
Note, selecting ‘libopencv-video4.0’ for glob ‘libopencv’
Note, selecting ‘libopencv-flann4.0’ for glob ‘libopencv’
Note, selecting ‘libopencv-stitching4.0’ for glob ‘libopencv’
Note, selecting ‘libopencv-gapi-dev’ for glob ‘libopencv’
Note, selecting ‘libopencv-ts4.0’ for glob ‘libopencv’
Note, selecting ‘libopencv-viz4.5d’ for glob ‘libopencv’
Note, selecting ‘libopencv2.4-java’ for glob ‘libopencv’
Note, selecting ‘libopencv-viz-dev’ for glob ‘libopencv’
Note, selecting ‘libopencv-apps2d’ for glob ‘libopencv’
Note, selecting ‘libopencv-features2d4.5d’ for glob ‘libopencv’
Note, selecting ‘libopencv-dev’ for glob ‘libopencv’
Note, selecting ‘libopencv-doc’ for glob ‘libopencv’
Note, selecting ‘libopencv-apps-dev’ for glob ‘libopencv’
Note, selecting ‘libopencv-features2d-dev’ for glob ‘libopencv’
Note, selecting ‘libopencv-dnn4.5d’ for glob ‘libopencv’
Note, selecting ‘libopencv-dnn-dev’ for glob ‘libopencv’
Note, selecting ‘libopencv-ml4.5d’ for glob ‘libopencv’
Note, selecting ‘libopencv-ml-dev’ for glob ‘libopencv’
Note, selecting ‘libopencv-calib3d4.5d’ for glob ‘libopencv’
Note, selecting ‘libopencv-flann4.5d’ for glob ‘libopencv’
Note, selecting ‘libopencv-highgui4.0’ for glob ‘libopencv’
Note, selecting ‘libopencv-calib3d-dev’ for glob ‘libopencv’
Note, selecting ‘libopencv-videostab4.5d’ for glob ‘libopencv’
Note, selecting ‘libopencv-imgproc4.5d’ for glob ‘libopencv’
Note, selecting ‘libopencv-flann-dev’ for glob ‘libopencv’
Note, selecting ‘libopencv-gapi4.0’ for glob ‘libopencv’
Note, selecting ‘libopencv-videostab-dev’ for glob ‘libopencv’
Note, selecting ‘libopencv3.2-java’ for glob ‘libopencv’
Note, selecting ‘libopencv-imgproc-dev’ for glob ‘libopencv’
Note, selecting ‘libopencv-photo4.5d’ for glob ‘libopencv’
Note, selecting ‘libopencv3.3-java’ for glob ‘libopencv’
Note, selecting ‘libopencv-features2d4.0’ for glob ‘libopencv’
Note, selecting ‘libopencv-photo-dev’ for glob ‘libopencv’
Package ‘libopencv-gpu-dev’ is not installed, so not removed
Package ‘libopencv2.4-java’ is not installed, so not removed
Package ‘libopencv3.2-java’ is not installed, so not removed
Package ‘libopencv3.3-java’ is not installed, so not removed
Package ‘libopencv3.4-java’ is not installed, so not removed
Package ‘libopencv4.0-java’ is not installed, so not removed
Package ‘libopencv4.1-java’ is not installed, so not removed
Package ‘libopencv4.2-java’ is not installed, so not removed
Package ‘libopencv4.3-java’ is not installed, so not removed
Package ‘libopencv4.4-java’ is not installed, so not removed
Package ‘libopencv-doc’ is not installed, so not removed
Note, selecting ‘libopencv’ instead of ‘libopencv-calib3d4.0’
Note, selecting ‘libopencv’ instead of ‘libopencv-core4.0’
Note, selecting ‘libopencv’ instead of ‘libopencv-dnn4.0’
Note, selecting ‘libopencv’ instead of ‘libopencv-features2d4.0’
Note, selecting ‘libopencv’ instead of ‘libopencv-flann4.0’
Note, selecting ‘libopencv’ instead of ‘libopencv-gapi4.0’
Note, selecting ‘libopencv’ instead of ‘libopencv-highgui4.0’
Note, selecting ‘libopencv’ instead of ‘libopencv-imgcodecs4.0’
Note, selecting ‘libopencv’ instead of ‘libopencv-imgproc4.0’
Note, selecting ‘libopencv’ instead of ‘libopencv-ml4.0’
Note, selecting ‘libopencv’ instead of ‘libopencv-objdetect4.0’
Note, selecting ‘libopencv’ instead of ‘libopencv-photo4.0’
Note, selecting ‘libopencv’ instead of ‘libopencv-stitching4.0’
Note, selecting ‘libopencv’ instead of ‘libopencv-ts4.0’
Note, selecting ‘libopencv’ instead of ‘libopencv-video4.0’
Note, selecting ‘libopencv’ instead of ‘libopencv-videoio4.0’
Note, selecting ‘libopencv-dev’ instead of ‘libopencv-gapi-dev’
Note, selecting ‘libopencv-dev’ instead of ‘libopencv-ts-dev’
Package ‘libopencv-apps-dev’ is not installed, so not removed
Package ‘libopencv-apps2d’ is not installed, so not removed
Package ‘libopencv-calib3d-dev’ is not installed, so not removed
Package ‘libopencv-calib3d4.5d’ is not installed, so not removed
Package ‘libopencv-contrib-dev’ is not installed, so not removed
Package ‘libopencv-contrib4.5d’ is not installed, so not removed
Package ‘libopencv-core-dev’ is not installed, so not removed
Package ‘libopencv-core4.5d’ is not installed, so not removed
Package ‘libopencv-dnn-dev’ is not installed, so not removed
Package ‘libopencv-dnn4.5d’ is not installed, so not removed
Package ‘libopencv-features2d-dev’ is not installed, so not removed
Package ‘libopencv-features2d4.5d’ is not installed, so not removed
Package ‘libopencv-flann-dev’ is not installed, so not removed
Package ‘libopencv-flann4.5d’ is not installed, so not removed
Package ‘libopencv-highgui-dev’ is not installed, so not removed
Package ‘libopencv-highgui4.5d’ is not installed, so not removed
Package ‘libopencv-imgcodecs-dev’ is not installed, so not removed
Package ‘libopencv-imgcodecs4.5d’ is not installed, so not removed
Package ‘libopencv-imgproc-dev’ is not installed, so not removed
Package ‘libopencv-imgproc4.5d’ is not installed, so not removed
Package ‘libopencv-ml-dev’ is not installed, so not removed
Package ‘libopencv-ml4.5d’ is not installed, so not removed
Package ‘libopencv-objdetect-dev’ is not installed, so not removed
Package ‘libopencv-objdetect4.5d’ is not installed, so not removed
Package ‘libopencv-photo-dev’ is not installed, so not removed
Package ‘libopencv-photo4.5d’ is not installed, so not removed
Package ‘libopencv-shape-dev’ is not installed, so not removed
Package ‘libopencv-shape4.5d’ is not installed, so not removed
Package ‘libopencv-stitching-dev’ is not installed, so not removed
Package ‘libopencv-stitching4.5d’ is not installed, so not removed
Package ‘libopencv-superres-dev’ is not installed, so not removed
Package ‘libopencv-superres4.5d’ is not installed, so not removed
Package ‘libopencv-video-dev’ is not installed, so not removed
Package ‘libopencv-video4.5d’ is not installed, so not removed
Package ‘libopencv-videoio-dev’ is not installed, so not removed
Package ‘libopencv-videoio4.5d’ is not installed, so not removed
Package ‘libopencv-videostab-dev’ is not installed, so not removed
Package ‘libopencv-videostab4.5d’ is not installed, so not removed
Package ‘libopencv-viz-dev’ is not installed, so not removed
Package ‘libopencv-viz4.5d’ is not installed, so not removed
Package ‘libopencv4.5-java’ is not installed, so not removed
Package ‘libopencv4.5d-jni’ is not installed, so not removed
Package ‘libopencv’ is not installed, so not removed
Package ‘libopencv-dev’ is not installed, so not removed
Package ‘libopencv-python’ is not installed, so not removed
Package ‘libopencv-samples’ is not installed, so not removed
The following packages were automatically installed and are no longer required:
gdal-data gir1.2-gst-plugins-bad-1.0 libaec0 libarmadillo10 libarpack2
libblosc1 libcfitsio9 libcharls2 libdc1394-dev libevent-core-2.1-7
libevent-pthreads-2.1-7 libexif-dev libfabric1 libfreexl1 libfyba0 libgdal30
libgdcm-dev libgdcm3.0 libgeos-c1v5 libgeos3.10.2 libgeotiff5 libgl2ps1.4
libglew2.2 libgphoto2-dev libhdf4-0-alt libhdf5-103-1 libhdf5-hl-100
libheif1 libhwloc-plugins libhwloc15 libilmbase-dev libkmlbase1 libkmldom1
libkmlengine1 liblept5 libminizip1 libmysqlclient21 libnetcdf19 libodbc2
libodbcinst2 libogdi4.1 libopenexr-dev libopenmpi3 libpmix2 libpq5 libproj22
libraw1394-dev librttopo1 libsocket++1 libspatialite7 libsuperlu5 libsz2
libtesseract4 libucx0 liburiparser1 libvtk9.1 libxerces-c3.2 libxnvctrl0
mysql-common proj-data unixodbc-common
Use ‘sudo apt autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 552 not upgraded.

** Install requirement (1/4)

Hit:1 Index of linux/ubuntu/ jammy InRelease
Hit:2 https://repo.download.nvidia.com/jetson/common r36.4 InRelease
Hit:3 Index of /ubuntu-ports jammy InRelease
Hit:4 https://repo.download.nvidia.com/jetson/t234 r36.4 InRelease
Get:5 Index of /ubuntu-ports jammy-updates InRelease [128 kB]
Hit:6 https://repo.download.nvidia.com/jetson/ffmpeg r36.4 InRelease
Get:7 Index of /ubuntu-ports jammy-backports InRelease [127 kB]
Get:8 Index of /ubuntu-ports jammy-security InRelease [129 kB]
Get:9 Index of /ubuntu-ports jammy-updates/main arm64 Packages [3,884 kB]
Get:10 Index of /ubuntu-ports jammy-updates/main arm64 DEP-11 Metadata [117 kB]
Err:10 Index of /ubuntu-ports jammy-updates/main arm64 DEP-11 Metadata
Hash Sum mismatch
Hashes of expected file:

  • Filesize:117376 [weak]
  • SHA256:27582c13485f5299ad799e7b039e3de822c6a614aeac05a80f32057e5cf04616
  • SHA1:dcf224ef247d48102a9c2ffbf244c23466643069 [weak]
  • MD5Sum:15dc13701e906c7249f1a0a6701c57c1 [weak]
    Hashes of received file:
  • SHA256:548c458646c8684188af8bb9aa51022ca583431f0d00a196bf0e6dfa9def89c7
  • SHA1:f70cb55bb89ca38041f9185fc3b329dd6fb3bf17 [weak]
  • MD5Sum:69ca4e1d2d758043c6d8a0c6a44f5d56 [weak]
  • Filesize:117376 [weak]
    Last modification reported: Sat, 28 Nov 2026 23:27:47 +0000
    Release file created at: Sun, 29 Nov 2026 03:25:35 +0000
    Get:11 Index of /ubuntu-ports jammy-updates/restricted arm64 Packages [7,142 kB]
    Get:12 Index of /ubuntu-ports jammy-updates/universe arm64 DEP-11 Metadata [357 kB]
    Get:13 Index of /ubuntu-ports jammy-updates/multiverse arm64 DEP-11 Metadata [212 B]
    Get:14 Index of /ubuntu-ports jammy-backports/main arm64 DEP-11 Metadata [3,584 B]
    Get:15 Index of /ubuntu-ports jammy-backports/universe arm64 DEP-11 Metadata [12.0 kB]
    Get:16 Index of /ubuntu-ports jammy-security/main arm64 Packages [3,637 kB]
    Get:17 Index of /ubuntu-ports jammy-security/main arm64 DEP-11 Metadata [74.3 kB]
    Get:18 Index of /ubuntu-ports jammy-security/restricted arm64 Packages [6,913 kB]
    Get:19 Index of /ubuntu-ports jammy-security/universe arm64 Packages [1,158 kB]
    Get:20 Index of /ubuntu-ports jammy-security/universe arm64 DEP-11 Metadata [127 kB]
    Fetched 23.8 MB in 14s (1,743 kB/s)
    Reading package lists… Done
    E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/jammy-updates/main/dep11/by-hash/SHA256/27582c13485f5299ad799e7b039e3de822c6a614aeac05a80f32057e5cf04616 Hash Sum mismatch
    Hashes of expected file:
    • Filesize:117376 [weak]
    • SHA256:27582c13485f5299ad799e7b039e3de822c6a614aeac05a80f32057e5cf04616
    • SHA1:dcf224ef247d48102a9c2ffbf244c23466643069 [weak]
    • MD5Sum:15dc13701e906c7249f1a0a6701c57c1 [weak]
      Hashes of received file:
    • SHA256:548c458646c8684188af8bb9aa51022ca583431f0d00a196bf0e6dfa9def89c7
    • SHA1:f70cb55bb89ca38041f9185fc3b329dd6fb3bf17 [weak]
    • MD5Sum:69ca4e1d2d758043c6d8a0c6a44f5d56 [weak]
    • Filesize:117376 [weak]
      Last modification reported: Sat, 28 Nov 2026 23:27:47 +0000
      Release file created at: Sun, 29 Nov 2026 03:25:35 +0000
      E: Some index files failed to download. They have been ignored, or old ones used instead.

the script is install opencv 4.10.0_Jetpack6.1.sh is as shown below:

#!/bin/bash

version=“4.10.0”
folder=“workspace”

set -e

for (( ; ; ))
do
echo “Do you want to remove the default OpenCV (yes/no)?”
read rm_old

if [ "$rm_old" = "yes" ]; then
    echo "** Remove other OpenCV first"
    sudo apt -y purge *libopencv*
break
elif [ "$rm_old" = "no" ]; then
break
fi

done

echo “------------------------------------”
echo “** Install requirement (1/4)”
echo “------------------------------------”
sudo apt-get update
sudo apt-get install -y build-essential cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
sudo apt-get install -y libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev python3.10-dev python3-numpy
sudo apt-get install -y libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libv4l-dev v4l-utils qv4l2
sudo apt-get install -y curl

echo “------------------------------------”
echo “** Download opencv “${version}” (2/4)”
echo “------------------------------------”
mkdir $folder
cd ${folder}
curl -L https://github.com/opencv/opencv/archive/${version}.zip -o opencv-${version}.zip
curl -L https://github.com/opencv/opencv_contrib/archive/${version}.zip -o opencv_contrib-${version}.zip
unzip opencv-${version}.zip
unzip opencv_contrib-${version}.zip
rm opencv-${version}.zip opencv_contrib-${version}.zip
cd opencv-${version}/

echo “------------------------------------”
echo “** Build opencv “${version}” (3/4)”
echo “------------------------------------”
mkdir release
cd release/
cmake -D WITH_CUDA=ON -D WITH_CUDNN=ON -D CUDA_ARCH_BIN=“8.7” -D CUDA_ARCH_PTX=“” -D OPENCV_GENERATE_PKGCONFIG=ON -D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib-${version}/modules -D WITH_GSTREAMER=ON -D WITH_LIBV4L=ON -D BUILD_opencv_python3=ON -D BUILD_TESTS=OFF -D BUILD_PERF_TESTS=OFF -D BUILD_EXAMPLES=OFF -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..
make -j$(nproc)

echo “------------------------------------”
echo “** Install opencv “${version}” (4/4)”
echo “------------------------------------”
sudo make install
echo ‘export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH’ >> ~/.bashrc
echo ‘export PYTHONPATH=/usr/local/lib/python3.10/site-packages/:$PYTHONPATH’ >> ~/.bashrc
source ~/.bashrc

echo “** Install opencv “${version}” successfully”
echo “** Bye :)”

Let us know how to fix this issue. Thanks.

Regards,

Nagesh R

Hi,

For JetPack 6.x, we have prebuilt the OpenCV library in the link below:

Please check if this can meet your requirement.

Thanks.

Did not understand how to use this link.

I find .whl file for opencv. Please explain how to update this with respect to the opencv script shared by you earlier.

Thanks.

Hi,

Please download the files to the device.
Then you can install with pip3 install ....

Thanks.

So you mean when I do Jetpack installation and later when I install this whl file opencv_contrib_python-4.12.0-cp310-cp310-linux_aarch64.whl

it will remove the existing incomptabile OpenCV and install the updated OpenCV?

Please clarify. How it works.

Because some how I managed to fix the errors and older opencv script got installed. But next time i want to try this whl file installation.

Thanks.

Hi,

Could you share the detailed logs of the checksum mismatch?

The install_opencv4.10.0_Jetpack6.1.sh is to compile OpenCV from the source.
The wheel is the one we built for the JetPack 6 user.

Thanks.

Sorry, As I have completed that project and closed it not able to take log now.
any how, in future I will use the .whl file for openCV installation.
Thanks.

Mean while, currently I am working on L4T r39_2_2 version, could you please provide OpenCV installation script/steps for that version Jetpack 7.2

Please provide steps to build OpenCV or provide shell script for the same for r39_2_2.
Thanks.

Hi,

Let’s move the new topic for JetPack 7.2.2:

Thanks.