ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

ROS humble (Desktop) installation fails due to dependency issues

asked 2023-01-06 21:15:21 -0500

randychen233 gravatar image

updated 2023-02-08 14:04:11 -0500

I know this issue was discussed here and here . However, even after upgrading apt, I was still not able to install ROS Humble. I have tried the methods to fix this issue mentioned in the posts above but none of them work. Here is my Ubuntu version:

LSB Version:    core-11.1.0ubuntu4-noarch:security-11.1.0ubuntu4-noarch
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.1 LTS
Release:    22.04
Codename:   jammy

Here is how the error pops up :

(ICON_lab) randychen@randychen-Delta-15-A5EFK:~/projects$ sudo apt update && sudo apt upgrade
Hit:1 http://packages.ros.org/ros2/ubuntu jammy InRelease
Hit:2 http://archive.ubuntu.com/ubuntu jammy InRelease                                            
Hit:3 http://packages.osrfoundation.org/gazebo/ubuntu-stable jammy InRelease                      
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
#
# News about significant security updates, features and services will
# appear here to raise awareness and perhaps tease /r/Linux ;)
# Use 'pro config set apt_news=false' to hide this and future APT news.
#

0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. (ICON_lab) randychen@randychen-Delta-15-A5EFK:~/projects$ sudo apt install ros-humble-desktop 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:
 libarmadillo10 : Depends: liblapack3 but it is not installable or
                           liblapack.so.3
 libarpack2 : Depends: libgfortran5 (>= 8) but it is not installable
              Depends: liblapack3 but it is not installable or
                       liblapack.so.3
 libarpack2-dev : Depends: liblapack-dev but it is not installable or
                           liblapack.so
 libdbus-1-dev : Depends: libdbus-1-3 (= 1.12.20-2ubuntu4) but 1.12.20-2ubuntu4.1 is to be installed
 libglib2.0-dev : Depends: libglib2.0-0 (= 2.72.1-1) but 2.72.4-0ubuntu1 is to be installed
                  Depends: libglib2.0-bin (= 2.72.1-1)
                  Depends: libglib2.0-dev-bin (= 2.72.1-1)
 libhdf5-fortran-102 : Depends: libgfortran5 (>= 8) but it is not installable
 libhdf5-hl-fortran-100 : Depends: libgfortran5 (>= 8) but it is not installable
 libhdf5-openmpi-fortran-102 : Depends: libgfortran5 (>= 8) but it is not installable
 libhdf5-openmpi-hl-fortran-100 : Depends: libgfortran5 (>= 8) but it is not installable
 libjson-c-dev : Depends: libjson-c5 (= 0.15-2build4) but 0.15-3~ubuntu1.22.04.1 is to be installed
 libopenmpi-dev : Depends: gfortran-11 but it is not installable or
                           gfortran-mod-15
                  Recommends: libcoarrays-openmpi-dev but it is not installable
 libpcre2-dev : Depends: libpcre2-8-0 (= 10.39-3build1) but 10.39-3ubuntu0.1 is to be installed
                Depends: libpcre2-32-0 (= 10.39-3build1) but 10.39-3ubuntu0.1 is to be installed
 libpoppler-dev : Depends: libpoppler118 (= 22.02.0-2) but 22.02.0-2ubuntu0.1 is to be installed
 libpq-dev : Depends: libpq5 (= 14.2-1ubuntu1) but 14.5-0ubuntu0.22.04.1 is to be installed
 libpulse-dev : Depends: libpulse0 (= 1:15.99.1+dfsg1-1ubuntu1) but 1:15.99.1+dfsg1-1ubuntu2 is to be installed ...
(more)
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-02-09 02:02:00 -0500

billy gravatar image

Did you do all this before updating apt-get?

sudo apt install software-properties-common
sudo add-apt-repository universe
sudo apt update && sudo apt install curl
sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(. /etc/os-release && echo $UBUNTU_CODENAME) main" | sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null

This is part of the guide. I had no issues with the install following the guide.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2023-01-06 21:15:21 -0500

Seen: 721 times

Last updated: Feb 09 '23