How to remove gazebo-ros-pkgs
I would like to update Gazebo to version which fixes important for me bug. ROS Melodic's gazebo-ros-pkgs still contains Gazebo 9.0.0 which is a bit outdated. Therefore I need to remove package and install gazebo manually. However simple apt command will for some reason remove a lot more than just one package:
sudo apt-get remove ros-melodic-gazebo-ros-pkgs
Here is output:
The following packages were automatically installed and are no longer required:
fltk1.3-doc fluid gazebo9 hddtemp libfltk-cairo1.3 libfltk-forms1.3 libfltk-gl1.3 libfltk-images1.3 libfltk1.3 libfltk1.3-dev libjs-jquery-ui
python-backports.functools-lru-cache python-cycler python-matplotlib python-matplotlib-data python-opengl python-psutil python-pydot python-pyqt5.qtopengl
python-pyqt5.qtwebkit python-subprocess32 python-tz ros-melodic-actionlib-tutorials ros-melodic-bond-core ros-melodic-bondpy ros-melodic-camera-calibration
ros-melodic-camera-calibration-parsers ros-melodic-camera-info-manager ros-melodic-common-msgs ros-melodic-common-tutorials
ros-melodic-compressed-depth-image-transport ros-melodic-compressed-image-transport ros-melodic-depth-image-proc ros-melodic-desktop 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-gazebo-dev ros-melodic-gazebo-msgs ros-melodic-gazebo-plugins ros-melodic-gazebo-ros ros-melodic-gazebo-ros-control
ros-melodic-geometry ros-melodic-geometry-tutorials ros-melodic-gl-dependency ros-melodic-image-common 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-interactive-marker-tutorials ros-melodic-joint-state-controller ros-melodic-joint-state-publisher ros-melodic-kdl-parser-py ros-melodic-laser-assembler
ros-melodic-laser-filters ros-melodic-laser-pipeline ros-melodic-librviz-tutorial ros-melodic-mk ros-melodic-nodelet-core ros-melodic-nodelet-tutorial-math
ros-melodic-perception ros-melodic-perception-pcl ros-melodic-pluginlib-tutorials ros-melodic-polled-camera 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-roslisp ros-melodic-rosmake ros-melodic-rospy-tutorials ros-melodic-rqt-action
ros-melodic-rqt-bag ros-melodic-rqt-bag-plugins ros-melodic-rqt-common-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-image-view 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-stereo-image-proc
ros-melodic-stereo-msgs ros-melodic-theora-image-transport ros-melodic-turtle-actionlib ros-melodic-turtle-tf ros-melodic-turtle-tf2 ros-melodic-turtlesim
ros-melodic-urdf-parser-plugin ros-melodic-urdf-sim-tutorial ros-melodic-urdf-tutorial ros-melodic-vision-opencv ros-melodic-visualization-marker-tutorials
ros-melodic-visualization-tutorials ros-melodic-viz ros-melodic-webkit-dependency sbcl
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
ros-melodic-desktop-full ros-melodic-gazebo-ros-pkgs ros-melodic-simulators
As you can see it is to remove three packages ros-melodic-desktop-full ros-melodic-gazebo-ros-pkgs ros-melodic-simulators
. Why so and how can I update gazebo?
Thanks!
Because
ros-melodic-simulators
depends onros-melodic-gazebo-ros-pkgs
, so if you delete the second,apt
must delete the first.Same for
desktop-full
.@gvdhoorn it's actually as clear as it may be. I should have put the question differently here. Why would
ros-melodic-desktop-full
depend onros-melodic-gazebo-ros-pkgs
? Gazebo is a separate app which has actually nothing to do with ROS. And I still have no found a solution to the problemPlease refer to REP 150: ROS Melodic and Newer Metapackages and REP 3: Target Platforms. Gazebo is a stand-alone application, but ..
..
gazebo_ros_pkgs
isn't (it depends on Gazebo). Second,desktop-full
is a:which happens to include the
simulators
meta-package. Andsimulators
provides pkgs that get used when using simulators with ROS, including the (almost) standard .... simulator Gazebo. Gazebo itself is not directly depended on, but
gazebo_ros_pkgs
is, and that brings in Gazebo.So: remove Gazebo -> remove
gazebo_ros_pkgs
-> removesimulators
-> removedesktop-full
.I didn't post this as answer, ..
.. I wanted to comment on one of the questions in your post.
Have you seen Installing gazebo_ros_pkgs (ROS 1) and Which combination of ROS/Gazebo versions to use?
This is weird, I didn't remember to have this issue when I uninstall gazebo's packages from the Kinetic version, even If I had installed, if my memory is good, the full version. In the worst case, just uninstall the full version and take the desktop one. By the way, I used synaptic to uninstall it.