Pytorch issue

I encountered another problem when compiling the pytorch image the way I did before. The following link is the problem I mentioned earlier.

Step 26/30 : RUN cd /tmp && ./ ${OPENCV_URL} ${OPENCV_DEB}
 ---> Running in fafa3bf64538
+ OPENCV_DEB=OpenCV-4.5.0-aarch64.tar.gz
+ echo 'OPENCV_URL ='
+ echo 'OPENCV_DEB = OpenCV-4.5.0-aarch64.tar.gz'
OPENCV_DEB = OpenCV-4.5.0-aarch64.tar.gz
++ uname -i
+ ARCH=aarch64
+ echo 'ARCH:  aarch64'
ARCH:  aarch64
+ apt-get purge -y '*opencv*'
Reading package lists...
Building dependency tree...
Reading state information...
Package 'opencv-doc' is not installed, so not removed
The following packages were automatically installed and are no longer required:
  libgtk2.0-0 libgtk2.0-common libtbb2
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
  libopencv* libopencv-dev* libopencv-python* libopencv-samples*
  nvidia-opencv* nvidia-opencv-dev* opencv-licenses*
0 upgraded, 0 newly installed, 7 to remove and 0 not upgraded.
After this operation, 83.5 MB disk space will be freed.
(Reading database ... 48117 files and directories currently installed.)
Removing nvidia-opencv-dev (5.0.2-b222) ...
Removing libopencv-dev (4.5.4-8-g3e4c170df4) ...
dpkg: warning: while removing libopencv-dev, directory '/usr/lib/aarch64-linux-gnu/cmake' not empty so not removed
Removing opencv-licenses (4.5.4-8-g3e4c170df4) ...
Removing libopencv-python (4.5.4-8-g3e4c170df4) ...
Removing libopencv-samples (4.5.4-8-g3e4c170df4) ...
Removing nvidia-opencv (5.0.2-b222) ...
Removing libopencv (4.5.4-8-g3e4c170df4) ...
+ mkdir opencv
+ cd opencv
+ wget --quiet --show-progress --progress=bar:force:noscroll --no-check-certificate -O OpenCV-4.5.0-aarch64.tar.gz

I found this warning in the above log. Do you need to manually delete it?

dpkg: warning: while removing libopencv-dev, directory '/usr/lib/aarch64-linux-gnu/cmake' not empty so not removed


Not sure why it tries to remove CMake when uninstalling the OpenCV.
It should be better to keep it since CMake is commonly used.

It looks like just a warning so it’s recommended to ignore it if no other issues occur.


This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.