autowarefoundation / autoware-deb-packages

1 stars 2 forks source link

Issues installing ros-humble-autoware-launch #51

Closed mitsudome-r closed 10 months ago

mitsudome-r commented 10 months ago

I tried the installation of deb packages with the following commands:

echo "deb [trusted=yes] https://github.com/autowarefoundation/autoware-deb-packages/raw/jammy-humble-main/ ./" | sudo tee /etc/apt/sources.list.d/autowarefoundation_autoware-deb-packages.list
echo "yaml https://github.com/autowarefoundation/autoware-deb-packages/raw/jammy-humble-main/local.yaml humble" | sudo tee /etc/ros/rosdep/sources.list.d/1-autowarefoundation_autoware-deb-packages.list
sudo apt install ros-humble-autoware-launch

and got these errors:

Errors were encountered while processing:
 /tmp/apt-dpkg-install-J2cJmZ/105-ros-humble-detection-by-tracker_0-2023.11.24.21.48_amd64.deb
 /tmp/apt-dpkg-install-J2cJmZ/116-ros-humble-object-merger_0-2023.11.24.21.00_amd64.deb
 /tmp/apt-dpkg-install-J2cJmZ/120-ros-humble-probabilistic-occupancy-grid-map_0-2023.11.24.15.29_amd64.deb
 /tmp/apt-dpkg-install-J2cJmZ/124-ros-humble-radar-object-tracker_0-2023.11.24.21.15_amd64.deb
 /tmp/apt-dpkg-install-J2cJmZ/126-ros-humble-tracking-object-merger_0-2023.11.25.06.53_amd64.deb
mitsudome-r commented 10 months ago

Full log here log.txt

mitsudome-r commented 10 months ago

I also ran sudo apt --fix-broken install and got:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  gconf-service gconf-service-backend gconf2-common libc++1 libc++1-14 libc++abi1-14 libgconf-2-4 libunwind-14 nvidia-firmware-535-535.113.01
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  ros-humble-detection-by-tracker ros-humble-object-merger ros-humble-probabilistic-occupancy-grid-map ros-humble-radar-object-tracker ros-humble-tracking-object-merger
The following NEW packages will be installed:
  ros-humble-detection-by-tracker ros-humble-object-merger ros-humble-probabilistic-occupancy-grid-map ros-humble-radar-object-tracker ros-humble-tracking-object-merger
0 upgraded, 5 newly installed, 0 to remove and 421 not upgraded.
170 not fully installed or removed.
Need to get 0 B/1,483 kB of archives.
After this operation, 6,645 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 404015 files and directories currently installed.)
Preparing to unpack .../ros-humble-detection-by-tracker_0-2023.11.24.21.48_amd64.deb ...
Unpacking ros-humble-detection-by-tracker (0-2023.11.24.21.48) ...
dpkg: error processing archive /var/cache/apt/archives/ros-humble-detection-by-tracker_0-2023.11.24.21.48_amd64.deb (--unpack):
 trying to overwrite '/opt/ros/humble/include/utils/utils.hpp', which is also in package ros-humble-detected-object-validation 0-2023.11.24.19.16
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack .../ros-humble-object-merger_0-2023.11.24.21.00_amd64.deb ...
Unpacking ros-humble-object-merger (0-2023.11.24.21.00) ...
dpkg: error processing archive /var/cache/apt/archives/ros-humble-object-merger_0-2023.11.24.21.00_amd64.deb (--unpack):
 trying to overwrite '/opt/ros/humble/lib/libmu_successive_shortest_path.so', which is also in package ros-humble-multi-object-tracker 0-2023.11.24.20.42
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack .../ros-humble-probabilistic-occupancy-grid-map_0-2023.11.24.15.29_amd64.deb ...
Unpacking ros-humble-probabilistic-occupancy-grid-map (0-2023.11.24.15.29) ...
dpkg: error processing archive /var/cache/apt/archives/ros-humble-probabilistic-occupancy-grid-map_0-2023.11.24.15.29_amd64.deb (--unpack):
 trying to overwrite '/opt/ros/humble/include/utils/utils.hpp', which is also in package ros-humble-detected-object-validation 0-2023.11.24.19.16
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack .../ros-humble-radar-object-tracker_0-2023.11.24.21.15_amd64.deb ...
Unpacking ros-humble-radar-object-tracker (0-2023.11.24.21.15) ...
dpkg: error processing archive /var/cache/apt/archives/ros-humble-radar-object-tracker_0-2023.11.24.21.15_amd64.deb (--unpack):
 trying to overwrite '/opt/ros/humble/lib/libmu_successive_shortest_path.so', which is also in package ros-humble-multi-object-tracker 0-2023.11.24.20.42
No apport report written because MaxReports is reached already
                                                              dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack .../ros-humble-tracking-object-merger_0-2023.11.25.06.53_amd64.deb ...
Unpacking ros-humble-tracking-object-merger (0-2023.11.25.06.53) ...
dpkg: error processing archive /var/cache/apt/archives/ros-humble-tracking-object-merger_0-2023.11.25.06.53_amd64.deb (--unpack):
 trying to overwrite '/opt/ros/humble/lib/libmu_successive_shortest_path.so', which is also in package ros-humble-multi-object-tracker 0-2023.11.24.20.42
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 /var/cache/apt/archives/ros-humble-detection-by-tracker_0-2023.11.24.21.48_amd64.deb
 /var/cache/apt/archives/ros-humble-object-merger_0-2023.11.24.21.00_amd64.deb
 /var/cache/apt/archives/ros-humble-probabilistic-occupancy-grid-map_0-2023.11.24.15.29_amd64.deb
 /var/cache/apt/archives/ros-humble-radar-object-tracker_0-2023.11.24.21.15_amd64.deb
 /var/cache/apt/archives/ros-humble-tracking-object-merger_0-2023.11.25.06.53_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
esteve commented 10 months ago

@mitsudome-r I found four packages that build the same library (mu_successive_shortest_path):

multi_object_tracker
object_merger
radar_object_tracker
tracking_object_merger

The two solutions I can think of are either move the library to a separate package and export it so that downstream packages can use it. Or prefix the library in CMakeLists.txt with the name of the package.

Given that code in the library is exactly the same, I'd have a separate package so it can be reused.

esteve commented 10 months ago

I've filed https://github.com/autowarefoundation/autoware.universe/issues/5705 to address this issue

esteve commented 10 months ago

Fixed via https://github.com/autowarefoundation/autoware.universe/pull/5706