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

Error installing Ros Noetic in Ubuntu 20.04.1 LTS

asked 2020-11-24 11:02:37 -0600

Diogo42 gravatar image

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?

edit retag flag offensive close merge delete

Comments

2

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 of sudo aptitude install ros-noetic-desktop-full?

sloretz gravatar image sloretz  ( 2020-11-24 11:05:38 -0600 )edit

This error is usually fixed via sudo apt install -f (with no other arguments). But pay close attention to the resolution apt finds. It may uninstall existing packages that you want to keep. But that would give a hint as to what the issue/conflict was.

chfritz gravatar image chfritz  ( 2020-11-24 11:53:07 -0600 )edit

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

Diogo42 gravatar image Diogo42  ( 2020-11-24 14:28:02 -0600 )edit
1

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

Diogo42 gravatar image Diogo42  ( 2020-11-24 14:50:39 -0600 )edit

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?

pglombardo gravatar image pglombardo  ( 2021-02-19 10:44:55 -0600 )edit

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...

pglombardo gravatar image pglombardo  ( 2021-02-19 10:48:29 -0600 )edit
2

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.

Vincent_V gravatar image Vincent_V  ( 2021-03-01 03:50:51 -0600 )edit

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 ran sudo apt upgrade and finally, the installation went through.

pranav.srini gravatar image pranav.srini  ( 2021-05-15 23:01:24 -0600 )edit

4 Answers

Sort by » oldest newest most voted
1

answered 2021-04-03 08:19:20 -0600

xrk gravatar image

As suggested by @sloretz, whom I first want to thank, I used the command line sudo aptitude install ros-noetic-desktop-full and thus according to its returned result, find the conflicting packages which were incorrectly upgraded in terms of the desirable python packages (in my case) as dependencies of the ros-noetic-desktop-full. Concretely, in my case, the "python3.8.5-1~20.04.2" is needed instead of the current incorrect "python3.8.9-1+bionic1". So the action I need to take for this problem is just to "downgrade" the current version of pyhton packages to the right one:

sudo apt install libpython3.8:amd64=3.8.5-1~20.04.2 libpython3.8-dev:amd64=3.8.5-1~20.04.2 libpython3.8-minimal:amd64=3.8.5-1~20.04.2 libpython3.8-stdlib:amd64=3.8.5-1~20.04.2 python3.8=3.8.5-1~20.04.2 python3.8-minimal=3.8.5-1~20.04.2

It is again to mention that the solution is specific to my case. However, in my opinion, it doesnot limit the generalization for such a problem when you try to find the conflicting packages.

edit flag offensive delete link more

Comments

You can find the conflicting packages / dependencies under "The following packages have unmet dependencies:"

xrk gravatar image xrk  ( 2021-04-03 08:24:37 -0600 )edit

Hi, were you able to solve this problem? I just installed a completely fresh Ubuntu 20.04 and started with the Noetic install manual. I have the same error message.

balint.tahi gravatar image balint.tahi  ( 2021-06-07 05:39:25 -0600 )edit
0

answered 2022-03-23 05:13:52 -0600

Jsong gravatar image

Hey,I solved this problem in Ubuntu,just turn on the system updates in Software & Updates and try again.

edit flag offensive delete link more
0

answered 2021-04-20 05:25:55 -0600

Petro gravatar image

Hey, I had the same exact problem and I managed to install with these instructions:

https://varhowto.com/install-ros-noet...

I hope that it helps someone else as well!

edit flag offensive delete link more
0

answered 2022-08-07 09:55:12 -0600

Adding the following source fixed the problem for me

sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list' wget https://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add - sudo apt-get update

For more details refer to the answer here

edit flag offensive delete link more

Question Tools

3 followers

Stats

Asked: 2020-11-24 11:02:37 -0600

Seen: 19,329 times

Last updated: Apr 20 '21