Error installing Ros Noetic in Ubuntu 20.04.1 LTS
Dear friends,
I'm having trouble installing ros on Ubuntu 20.04.1 LTS, my distro info:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.1 LTS
Release: 20.04 Codename: focal
My error output after run install command sudo apt instal ros-noetic-desktop-full
:
Reading package lists... Done
Building dependency tree
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:
ros-noetic-desktop-full : Depends: ros-noetic-desktop but it is not going to be installed
Depends: ros-noetic-perception but it is not going to be installed
Depends: ros-noetic-simulators but it is not going to be installed
Depends: ros-noetic-urdf-sim-tutorial but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I' setup my computer to accept software from packages.ros.org.
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
And add the key:
sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
Could someone help me with the packages?
Usually means there's some package that conflicts with these. There's another tool called
aptitude
that explains more about why this is happening. Mind posting the output ofsudo aptitude install ros-noetic-desktop-full
?This error is usually fixed via
sudo apt install -f
(with no other arguments). But pay close attention to the resolutionapt
finds. It may uninstall existing packages that you want to keep. But that would give a hint as to what the issue/conflict was.My aptitude output:
Leave the following dependencies unresolved:
357) cython3 recommends python3-dev
358) fluid recommends libfltk1.3-dev
359) libfltk1.3-dev recommends libgl1-mesa-dev | libgl-dev
360) libfltk1.3-dev recommends libglu1-mesa-dev | libglu-dev
361) libopenmpi-dev recommends libcoarrays-openmpi-dev
362) openmpi-bin recommends libopenmpi-dev
363) protobuf-compiler recommends libprotobuf-dev
364) sip-dev recommends python-sip-dev (>= 4.19.21+dfsg-1build1) | python3-s
Maybe my problem in this package: libx11-dev : Depends: libx11-6 (= 2:1.6.9-2ubuntu1.1) but 2:1.6.12-1 is to be installed
Same issue here on a fresh 20.04.2 install. It's probably fair to assume that the ROS install on this version of Ubuntu is broken and has been broken since at least November :-( If true, this isn't an ideal experience for new users. Should the wiki install page be updated until this is fixed?
After drilling down into the apt dependency tree I find "ros-noetic-rosconsole-bridge : Depends: libconsole-bridge0.4 but it is not installable". There is no apt package that matches "console-bridge" in 20.04.x/focal and this page seems to confirm that: https://index.ros.org/d/libconsole-br...
Not sure if it could help but I just had the same issue while upgrading from Ubuntu 18.04 and Melodic to 20.04 and Noetic. I had the same output as you for the install of ros-noetic-desktop. Turned out I did not properly remove every existing packages of melodic; which I thought I did before upgrading Ubuntu versions.. After that the install of noetic desktop worked as usual normally. Maybe that can help someone.
I too underwent the same process as Vincent_V and had the same error. In my case though all the packages of melodic were removed already. I tried
sudo aptitude install ros-noetic-desktop-full
but wasn't sure how to resolve the issue. So, I ransudo apt upgrade
and finally, the installation went through.