Hello,
I upgraded Ubuntu 20.04 to the 22.04 version. I installed ROS2 Humble (sudo apt install ros-humble-desktop-full
) and I wanted to use Gazebo Classic with Nav2 simulations, but I cannot use it - my packages have unmet dependencies, that I couldn't fix.
Please hint me what I should do now.
My terminal logs:
- When I tried normal
sudo apt install gazebo
:
ljaniec@ljaniec-PC:~$ gazebo Command 'gazebo' not found, but can be installed with: sudo apt install gazebo ljaniec@ljaniec-PC:~$ sudo apt install gazebo Reading package lists... Done Building dependency tree... Done Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: gazebo : Depends: libgazebo11 (= 11.10.2+dfsg-1) but 11.12.0-1~focal is to be installed E: Unable to correct problems, you have held broken packages.
- When I tried
sudo apt install ros-humble-gazebo-ros-pkgs
:
ljaniec@ljaniec-PC:~$ sudo apt install ros-humble-gazebo-ros-pkgs Reading package lists... Done Building dependency tree... Done Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: gazebo : Depends: libgazebo11 (= 11.10.2+dfsg-1) but 11.12.0-1~focal is to be installed gz-tools2 : Conflicts: gazebo (>= 11.0.0) but 11.10.2+dfsg-1 is to be installed libgazebo-dev : Depends: libgazebo11 (= 11.10.2+dfsg-1) but 11.12.0-1~focal is to be installed E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages. ljaniec@ljaniec-PC:~$ sudo apt install libgazebo11 Reading package lists... Done Building dependency tree... Done Reading state information... Done libgazebo11 is already the newest version (11.12.0-1~focal). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Best Ćukasz