ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I had encountered the same error. I overcome doing the following steps:-

1.This command will remove gazebo9 ,catkin , python-rospkg , python-rospkg-modules packages from your system

sudo apt-get remove gazebo9* catkin python-rospkg python-rospkg-modules

2.This command will remove packages from your system, for example, to remove ros related files:

sudo apt-get remove ros-*

3.This command will remove packages and their configuration files.

sudo apt-get purge ros-*

4.sudo apt-get remove ros-melodic-desktop-full

5.sudo apt-get purge ros-melodic-desktop-full

6.This command will remove dependencies that are no longer needed.

sudo apt-get autoremove

7.sudo apt-get install -f

8.sudo apt-get update

9.sudo apt-get upgrade

10.Now install ros-melodic-desktop-full

sudo apt install ros-melodic-desktop-full

References:link text