How do I solve the problem of 'unmet dependencies error' in Ubuntu 20.04?
I have tried sudo apt clean
and all the other commands but for every package command it gives me the same unmet dependencies error. When using sudo apt --fix-broken install
it gives the following results:
Preparing to unpack .../python3-catkin-pkg-modules_0.5.2-1_all.deb ...
Unpacking python3-catkin-pkg-modules (0.5.2-1) ...
dpkg: error processing archive /var/cache/apt/archives/python3-catkin-pkg-
modules_0.5.2-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.4.0-1_all.deb ...
Unpacking python3-rospkg-modules (1.4.0-1) ...
dpkg: error processing archive /var/cache/apt/archives/python3-rospkg-
modules_1.4.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.9.0-1_all.deb ...
Unpacking python3-rosdistro-modules (0.9.0-1) ...
dpkg: error processing archive /var/cache/apt/archives/python3-rosdistro-modules_0.9.0-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.5.2-1_all.deb
/var/cache/apt/archives/python3-rospkg-modules_1.4.0-1_all.deb
/var/cache/apt/archives/python3-rosdistro-modules_0.9.0-1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)*