Issues with ROS Noetic Install

asked 2021-09-27 22:32:25 -0500

Jord gravatar image

Hi all,

I'm a bit of a newbie with both Linux/Ubuntu OS and ROS.

I've tried to install ROS Noetic via the guide here. But keep running into what seems to be a circular error.

I found the error by being prompted by the software update, it stated.

Check if you are using third party repositories. If so disable them, since they are a common source of problems. Furthermore run the following command in a Terminal: apt-get install -f Transaction failed: The package system is broken The following packages have unmet dependencies:

python3-rosdep-modules: Depends: python3:any (>= 3.4~) but it is a virtual package
Depends: python3-rospkg-modules (>= 1.3.0) but it is not installed
Depends: python3-catkin-pkg-modules (>= 0.4.0) but it is not installed
Depends: python3-rosdistro-modules (>= 0.7.5) but it is not installed
ros-noetic-rospack: Depends: libc6 (>= 2.14) but 2.31-0ubuntu9.2 is installed
Depends: libgcc-s1 (>= 3.0) but 10.3.0-1ubuntu1~20.04 is installed
Depends: libpython3.8 (>= 3.8.2) but 3.8.10-0ubuntu1~20.04 is installed
Depends: libstdc++6 (>= 5.2) but 10.3.0-1ubuntu1~20.04 is installed
Depends: libtinyxml2-6a (>= 5.0.0) but 7.0.0+dfsg-1build1 is installed
Depends: python3-catkin-pkg-modules but it is not installed
ros-noetic-rqt-gui: Depends: python3-rospkg-modules but it is not installed
ros-noetic-rqt-robot-monitor: Depends: python3-rospkg-modules but it is not installed

As recommended I tried to use the command

sudo apt --fix-broken install

Among many forms such as

sudo install apt --fix-broken

and also without the 'sudo' prefix

They all result with the output of

(Reading database ... 236564 files and directories currently installed.)
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.3.0-1_all.deb ...
Unpacking python3-rospkg-modules (1.3.0-1) ...
dpkg: error processing archive /var/cache/apt/archives/python3-rospkg-modules_1.
3.0-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
Errors were encountered while processing:
/var/cache/apt/archives/python3-catkin-pkg-modules_0.4.23-1_all.deb
/var/cache/apt/archives/python3-rospkg-modules_1.3.0-1_all.deb
/var/cache/apt/archives/python3-rosdistro-modules_0.8.3-1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

I've then tried to install the python3-rospkg using

sudo apt-get install python3-rospkg

This outputs

Reading package lists... Done
Building dependency tree
Reading state information... Done
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.3.0) but it is not going to ...

(more)
edit retag flag offensive close merge delete

Comments

I always follow the instructions from ROS Wiki as you are doing and no issues with installation. My suggestion is to start from fresh Ubuntu install and follow the ROS install step by step. Don’t forget to source it. It’s one of the most common mistakes I have see.. Also your tags or you question doesn’t specify the Ubuntu version you are running. Are you installing Noetic in Ubuntu 20.04?

If you run into an issue, solve that issue before trying more changes because it’s hard to trace back. It’s possible but for someone reading the question it’s very hard.

osilva gravatar image osilva  ( 2021-09-29 18:56:33 -0500 )edit