failed to install ROS Noetic

asked 2021-01-21 17:58:46 -0500

Zephyr_8 gravatar image

ubuntu version:20.04.1

I am totally new to ROS. i followed the instruction on the website http://wiki.ros.org/noetic/Installati... but something wrong happend after the command $ sudo apt install ros-noetic-desktop-full

                     You might want to run 'apt --fix-broken install' to correct these.
                     The following packages have unmet dependencies:
                      python3-rosdep-modules : Depends: python3-rospkg-modules (>= 1.2.7) but it is not going to be installed
                      Depends: python3-catkin-pkg-modules (>= 0.4.0) but it is not going to be installed
                      Depends: python3-rosdistro-modules (>= 0.7.5) but it is not going to be installed
                      ros-noetic-rospack : Depends: python3-catkin-pkg-modules but it is not going to be installed
                      ros-noetic-rqt-gui : Depends: python3-rospkg-modules but it is not going to be installed
                      ros-noetic-rqt-robot-monitor : Depends: python3-rospkg-modules but it is not going to be installed
                      E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

so, i input command according to the hint :$ sudo apt --fix-broken install, errors popped up:

                      Preparing to unpack .../python3-catkin-pkg-modules_0.4.23-1_all.deb ...
                      Unpacking python3-catkin-pkg-modules (0.4.23-1) ...
                      dpkg: error processing archive /var/cache/apt/archives/python3-catkin-pkg-modules_0.4.23-1_all.deb (--unpack): trying to overwrite '/usr/lib/python3/dist-packages/catkin_pkg/__init__.py', which is also in package python3-catkin-pkg 0.4.16-1
                      Preparing to unpack .../python3-rospkg-modules_1.2.9-1_all.deb ...
                      Unpacking python3-rospkg-modules (1.2.9-1) ...
                      dpkg: error processing archive /var/cache/apt/archives/python3-rospkg-modules_1.2.9-1_all.deb (--unpack):trying to overwrite '/usr/lib/python3/dist-packages/rospkg/__init__.py', which is also in package python3-rospkg 1.2.3-1
                      Preparing to unpack .../python3-rosdistro-modules_0.8.3-1_all.deb ...
                      Unpacking python3-rosdistro-modules (0.8.3-1) ...
                      dpkg: error processing archive /var/cache/apt/archives/python3-rosdistro-modules_0.8.3-1_all.deb (--unpack): trying to overwrite '/usr/lib/python3/dist-packages/rosdistro/__init__.py', which is also in package python3-rosdistro 0.8.0-1

what should i do? ( what else should i provide to make the problem more clear?)

edit retag flag offensive close merge delete