Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

twoliner install fail on ubuntu 20.04 raspberry pi 4B #1

Open
Petrox opened this issue Mar 31, 2021 · 1 comment
Open

twoliner install fail on ubuntu 20.04 raspberry pi 4B #1

Petrox opened this issue Mar 31, 2021 · 1 comment

Comments

@Petrox
Copy link

Petrox commented Mar 31, 2021

Following this: https://wiki.ros.org/ROS/Installation/TwoLineInstall
on this: https://ubuntu.com/download/raspberry-pi
at first everything looks fine, then after choosing the "ros-noetic-desktop-full" option and downloading 1300 packages...

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.10-1_all.deb ...
Unpacking python3-rospkg-modules (1.2.10-1) ...
dpkg: error processing archive /var/cache/apt/archives/python3-rospkg-modules_1.2.10-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

I know this is not specifically the installers problem, but as the installer "controls the events", the installer should detect and handle the situation (ideally before the error happens).

I'm not sure why the maintainers of python3-catkin-pkg-modules believe they should overwrite something from a different package, and why the rospkg-modules tries to overwrite the rospkg package contents and why the rostistro modules try to overwrite the rosdistro files (this looks like a pattern), but the twoliner install should be able to install ros on ubuntu without the aforementioned errors popping up.

@Petrox
Copy link
Author

Petrox commented Mar 31, 2021

Just for the record if google brings someone here: this is the solution workaround:

apt --fix-broken -o Dpkg::Options::="--force-overwrite" install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant