gazebosim / docs

High-level Gazebo documentation that gets published to https://gazebosim.org/docs/
https://gazebosim.org/docs
48 stars 117 forks source link

Installing Gazebo11 side by side with new Gazebo not working #449

Closed pariaspe closed 3 months ago

pariaspe commented 4 months ago

Environment

Description

Steps to reproduce

After following the steps of Installing Gazebo11 side by side with new Gazebo, only Gz Harmonic is installed.

Tested on docker with the following Dockerfile:

FROM osrf/ros:humble-desktop

# Install common tools
RUN apt-get update && apt-get install -y \
    lsb-release wget gnupg software-properties-common \
    && rm -rf /var/lib/apt/lists/* 

# Install gazebo11
RUN add-apt-repository ppa:openrobotics/gazebo11-gz-cli
RUN apt-get update && apt-get install -y \
    gazebo11 \
    && rm -rf /var/lib/apt/lists/* 

      # Install Gazebo Harmonic
RUN apt-get update \
    && wget https://packages.osrfoundation.org/gazebo.gpg -O /usr/share/keyrings/pkgs-osrf-archive-keyring.gpg \
    && echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/pkgs-osrf-archive-keyring.gpg] http://packages.osrfoundation.org/gazebo/ubuntu-stable $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/gazebo-stable.list > /dev/null \
    && apt-get update && apt-get install -y -q \
        gz-harmonic \
    && rm -rf /var/lib/apt/lists/*

ENTRYPOINT [ "/bin/bash" ]

What am I missing?

Output

Screenshot from 2024-06-04 13-54-58

yaswanth1701 commented 4 months ago

Hi @j-rivero this is the issue which I mentioned yesterday in the weekly meet.

j-rivero commented 3 months ago

Confirmed the problem is there. I think that the problem is the version of gz-tools2 package that needs to be exactly 2.0.1-2 and I released it for Noble but not for Jammy. The packages should be now in the repo, could you please give it another try using the --no-cache option?

pariaspe commented 3 months ago

It's working now, thanks guys!

Screenshot from 2024-06-07 09-53-39

pariaspe commented 3 months ago

Hi @yaswanth1701 @j-rivero , sorry to bother you guys. Are gazebo_ros_pkgs also available?

6.703 Some packages could not be installed. This may mean that you have
6.703 requested an impossible situation or if you are using the unstable
6.703 distribution that some required packages have not yet been created
6.703 or been moved out of Incoming.
6.703 The following information may help to resolve the situation:
6.703 
6.703 The following packages have unmet dependencies:
6.747  libgazebo-dev : Depends: libgazebo11 (= 11.10.2+dfsg-1) but 11.14.0-1~alpha12 is to be installed
6.747                  Depends: gazebo-common (= 11.10.2+dfsg-1) but it is not installable
6.750 E: Unable to correct problems, you have held broken packages.
------
Dockerfile-gz:10
--------------------
   9 |     RUN add-apt-repository ppa:openrobotics/gazebo11-gz-cli
  10 | >>> RUN apt-get update && apt-get install -y \
  11 | >>>     gazebo11 \
  12 | >>>     ros-humble-gazebo-ros-pkgs \
  13 | >>>     && rm -rf /var/lib/apt/lists/* 
  14 |     
--------------------
yaswanth1701 commented 3 months ago

Hi @pariaspe, I am using Jammy and did the binary installation of Gazebo Classic (side-by-side installation) and source installation of Gazebo Harmonic. I can use Gazebo Classic from the terminal as described in the installation tutorial but I faced the same issue with libgazebo11-dev installation.

yaswanth1701 commented 3 months ago

ig Jose can tell us about this.

j-rivero commented 3 months ago

ig Jose can tell us about this.

Working on the fix. Let's follow https://github.com/gazebo-tooling/release-tools/issues/1152