问题遇到的现象和发生背景
因为opencv版本导致的某些编译问题,尝试重装opencv,于是开始卸载
命令sudo apt-get remove libopencv-*
结果显示不仅要删除libopencv有关的包,还把他认为的一些自动安装的包也添加到删除列表里面。
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
注意,根据Glob 'libopencv-' 选中了 'libopencv-photo3.2'
注意,根据Glob 'libopencv-' 选中了 'libopencv-core-dev'
注意,根据Glob 'libopencv-' 选中了 'libopencv-gpu-dev'
注意,根据Glob 'libopencv-' 选中了 'libopencv-apps0d'
注意,根据Glob 'libopencv-' 选中了 'libopencv-video3.2'
注意,根据Glob 'libopencv-' 选中了 'libopencv-calib3d-dev'
注意,根据Glob 'libopencv-' 选中了 'libopencv-ml-dev'
注意,根据Glob 'libopencv-' 选中了 'libopencv-imgcodecs3.2'
注意,根据Glob 'libopencv-' 选中了 'libopencv-shape-dev'
注意,根据Glob 'libopencv-' 选中了 'libopencv-imgcodecs-dev'
注意,根据Glob 'libopencv-' 选中了 'libopencv-apps-dev'
注意,根据Glob 'libopencv-' 选中了 'libopencv-highgui3.2'
注意,根据Glob 'libopencv-' 选中了 'libopencv-calib3d3.2'
注意,根据Glob 'libopencv-' 选中了 'libopencv-ml3.2'
注意,根据Glob 'libopencv-' 选中了 'libopencv-imgproc3.2'
注意,根据Glob 'libopencv-' 选中了 'libopencv-videoio-dev'
注意,根据Glob 'libopencv-' 选中了 'libopencv-shape3.2'
注意,根据Glob 'libopencv-' 选中了 'libopencv-objdetect3.2'
注意,根据Glob 'libopencv-' 选中了 'libopencv-stitching-dev'
注意,根据Glob 'libopencv-' 选中了 'libopencv-features2d-dev'
注意,根据Glob 'libopencv-' 选中了 'libopencv-superres-dev'
注意,根据Glob 'libopencv-' 选中了 'libopencv-features2d3.2'
注意,根据Glob 'libopencv-' 选中了 'libopencv-stitching3.2'
注意,根据Glob 'libopencv-' 选中了 'libopencv-flann-dev'
注意,根据Glob 'libopencv-' 选中了 'libopencv-viz3.2'
注意,根据Glob 'libopencv-' 选中了 'libopencv-viz-dev'
注意,根据Glob 'libopencv-' 选中了 'libopencv-flann3.2'
注意,根据Glob 'libopencv-' 选中了 'libopencv-imgproc-dev'
注意,根据Glob 'libopencv-' 选中了 'libopencv-contrib-dev'
注意,根据Glob 'libopencv-' 选中了 'libopencv-videostab3.2'
注意,根据Glob 'libopencv-' 选中了 'libopencv-contrib3.2'
注意,根据Glob 'libopencv-' 选中了 'libopencv-photo-dev'
注意,根据Glob 'libopencv-' 选中了 'libopencv-superres3.2'
注意,根据Glob 'libopencv-' 选中了 'libopencv-objdetect-dev'
注意,根据Glob 'libopencv-' 选中了 'libopencv-core3.2'
注意,根据Glob 'libopencv-' 选中了 'libopencv-videostab-dev'
注意,根据Glob 'libopencv-' 选中了 'libopencv-dev'
注意,根据Glob 'libopencv-' 选中了 'libopencv-doc'
注意,根据Glob 'libopencv-' 选中了 'libopencv-ts-dev'
注意,根据Glob 'libopencv-' 选中了 'libopencv-video-dev'
注意,根据Glob 'libopencv-' 选中了 'libopencv-videoio3.2'
注意,根据Glob 'libopencv-' 选中了 'libopencv-highgui-dev'
软件包 libopencv-gpu-dev 未安装,所以不会被卸载
软件包 libopencv-doc 未安装,所以不会被卸载
软件包 libopencv-apps-dev 未安装,所以不会被卸载
软件包 libopencv-apps0d 未安装,所以不会被卸载
下列软件包是自动安装的并且现在不需要了:
fltk1.3-doc fluid fonts-lato hddtemp libccd-dev libccd2 libcharls1 libdc1394-22-dev libexif-dev libexif-doc libfltk-cairo1.3
libfltk-forms1.3 libfltk-gl1.3 libfltk-images1.3 libfltk1.3 libfltk1.3-dev libfreenect-dev libfreenect0.5 libgdcm2-dev libgdcm2.8
libgphoto2-dev libgraphviz-dev libgvc6-plugins-gtk libilmbase-dev libjs-jquery-ui liblept5 libmbim-glib4 libmbim-proxy libopenal-dev
libopenexr-dev libqmi-glib5 libqmi-proxy libqtpropertybrowser4 libraw1394-dev libraw1394-tools libruby2.5 libsocket++1 libtesseract4
libxdot4 linux-hwe-5.4-headers-5.4.0-113 linux-hwe-5.4-headers-5.4.0-117 linux-hwe-5.4-headers-5.4.0-120 linux-hwe-5.4-headers-5.4.0-84
opencv-data python-backports.functools-lru-cache python-cycler python-matplotlib python-matplotlib-data python-opengl python-pydot
python-pyqt5.qtopengl python-pyqt5.qtwebkit python-subprocess32 python-tz rake ros-melodic-actionlib-tutorials ros-melodic-bond-core
ros-melodic-bondpy ros-melodic-cmake-modules ros-melodic-common-msgs ros-melodic-common-tutorials ros-melodic-ddynamic-reconfigure
ros-melodic-diagnostic-aggregator ros-melodic-diagnostic-analysis ros-melodic-diagnostic-common-diagnostics ros-melodic-diagnostics
ros-melodic-diff-drive-controller ros-melodic-executive-smach ros-melodic-filters ros-melodic-forward-command-controller
ros-melodic-geometry ros-melodic-geometry-tutorials ros-melodic-gl-dependency ros-melodic-image-common ros-melodic-image-exposure-msgs
ros-melodic-interactive-marker-tutorials ros-melodic-joint-state-controller ros-melodic-joint-state-publisher ros-melodic-kdl-conversions
ros-melodic-kdl-parser ros-melodic-kdl-parser-py ros-melodic-laser-assembler ros-melodic-laser-filters ros-melodic-laser-pipeline
ros-melodic-libg2o ros-melodic-libnabo ros-melodic-libpointmatcher ros-melodic-librealsense2 ros-melodic-librviz-tutorial ros-melodic-mk
ros-melodic-nodelet-core ros-melodic-nodelet-tutorial-math ros-melodic-perception-pcl ros-melodic-pluginlib-tutorials
ros-melodic-polled-camera ros-melodic-position-controllers ros-melodic-qt-dotgraph ros-melodic-qt-gui ros-melodic-qt-gui-cpp
ros-melodic-qt-gui-py-common ros-melodic-qwt-dependency ros-melodic-robot ros-melodic-robot-state-publisher ros-melodic-ros
ros-melodic-ros-base ros-melodic-ros-comm ros-melodic-ros-core ros-melodic-ros-tutorials ros-melodic-rosbash ros-melodic-rosboost-cfg
ros-melodic-roscpp-core ros-melodic-roscpp-tutorials ros-melodic-roscreate ros-melodic-roslang ros-melodic-roslint ros-melodic-roslisp
ros-melodic-rosmake ros-melodic-rospy-tutorials ros-melodic-rqt-action ros-melodic-rqt-bag ros-melodic-rqt-bag-plugins
ros-melodic-rqt-console ros-melodic-rqt-dep ros-melodic-rqt-graph ros-melodic-rqt-gui ros-melodic-rqt-gui-cpp ros-melodic-rqt-gui-py
ros-melodic-rqt-launch ros-melodic-rqt-logger-level ros-melodic-rqt-moveit ros-melodic-rqt-msg ros-melodic-rqt-nav-view
ros-melodic-rqt-plot ros-melodic-rqt-pose-view ros-melodic-rqt-publisher ros-melodic-rqt-py-common ros-melodic-rqt-py-console
ros-melodic-rqt-reconfigure ros-melodic-rqt-robot-dashboard ros-melodic-rqt-robot-monitor ros-melodic-rqt-robot-plugins
ros-melodic-rqt-robot-steering ros-melodic-rqt-runtime-monitor ros-melodic-rqt-rviz ros-melodic-rqt-service-caller ros-melodic-rqt-shell
ros-melodic-rqt-srv ros-melodic-rqt-tf-tree ros-melodic-rqt-top ros-melodic-rqt-topic ros-melodic-rqt-web
ros-melodic-rviz-plugin-tutorials ros-melodic-rviz-python-tutorial ros-melodic-self-test ros-melodic-smach ros-melodic-smach-msgs
ros-melodic-smach-ros ros-melodic-stage ros-melodic-stage-ros ros-melodic-statistics-msgs ros-melodic-stereo-msgs
ros-melodic-tf-conversions ros-melodic-tf2-kdl ros-melodic-turtle-actionlib ros-melodic-turtle-tf ros-melodic-turtle-tf2
ros-melodic-turtlesim ros-melodic-urdf-parser-plugin ros-melodic-urdf-tutorial ros-melodic-urdfdom-py
ros-melodic-visualization-marker-tutorials ros-melodic-visualization-tutorials ros-melodic-webkit-dependency ros-melodic-wfov-camera-msgs
ros-melodic-xacro ruby ruby-did-you-mean ruby-minitest ruby-net-telnet ruby-power-assert ruby-test-unit ruby2.5 rubygems-integration sbcl
usb-modeswitch usb-modeswitch-data
使用'sudo apt autoremove'来卸载它(它们)。
下列软件包将被【卸载】:
libopencv-calib3d-dev libopencv-calib3d3.2 libopencv-contrib-dev libopencv-contrib3.2 libopencv-core-dev libopencv-core3.2 libopencv-dev
libopencv-features2d-dev libopencv-features2d3.2 libopencv-flann-dev libopencv-flann3.2 libopencv-highgui-dev libopencv-highgui3.2
libopencv-imgcodecs-dev libopencv-imgcodecs3.2 libopencv-imgproc-dev libopencv-imgproc3.2 libopencv-ml-dev libopencv-ml3.2
libopencv-objdetect-dev libopencv-objdetect3.2 libopencv-photo-dev libopencv-photo3.2 libopencv-shape-dev libopencv-shape3.2
libopencv-stitching-dev libopencv-stitching3.2 libopencv-superres-dev libopencv-superres3.2 libopencv-ts-dev libopencv-video-dev
libopencv-video3.2 libopencv-videoio-dev libopencv-videoio3.2 libopencv-videostab-dev libopencv-videostab3.2 libopencv-viz-dev
libopencv-viz3.2 libopencv3.2-java libopencv3.2-jni python-opencv ros-melodic-apriltag ros-melodic-apriltag-ros
ros-melodic-camera-calibration ros-melodic-compressed-depth-image-transport ros-melodic-compressed-image-transport ros-melodic-cv-bridge
ros-melodic-depth-image-proc ros-melodic-desktop ros-melodic-find-object-2d ros-melodic-gazebo-plugins ros-melodic-image-geometry
ros-melodic-image-pipeline ros-melodic-image-proc ros-melodic-image-publisher ros-melodic-image-rotate
ros-melodic-image-transport-plugins ros-melodic-image-view ros-melodic-perception ros-melodic-realsense2-camera
ros-melodic-rqt-common-plugins ros-melodic-rqt-image-view ros-melodic-rtabmap ros-melodic-rtabmap-dbgsym ros-melodic-rtabmap-ros
ros-melodic-rtabmap-ros-dbgsym ros-melodic-stereo-image-proc ros-melodic-theora-image-transport ros-melodic-vision-opencv ros-melodic-viz
升级了 0 个软件包,新安装了 0 个软件包,要卸载 70 个软件包,有 48 个软件包未被升级。
解压缩后将会空出 343 MB 的空间。
您希望继续执行吗? [Y/n] n
中止。
操作环境、软件版本等信息
ubuntu18.04
尝试过的解决方法
查看过ubuntu 的删除命令,发现apt-get remove应该是只删除制定的包的,不知为何会出现现在的结果
我想要达到的结果
只删除libopencv