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?
Asked by Diogo42 on 2020-11-24 12:02:37 UTC
Answers
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.
Asked by xrk on 2021-04-03 08:19:20 UTC
Comments
You can find the conflicting packages / dependencies under "The following packages have unmet dependencies:"
Asked by xrk on 2021-04-03 08:24:37 UTC
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.
Asked by balint.tahi on 2021-06-07 05:39:25 UTC
Hey, I had the same exact problem and I managed to install with these instructions:
https://varhowto.com/install-ros-noetic-ubuntu-20-04/
I hope that it helps someone else as well!
Asked by Petro on 2021-04-20 05:25:55 UTC
Comments
Hey,I solved this problem in Ubuntu,just turn on the system updates in Software & Updates and try again.
Asked by Jsong on 2022-03-23 05:13:52 UTC
Comments
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
Asked by swrdfish on 2022-08-07 09:55:12 UTC
Comments
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
?Asked by sloretz on 2020-11-24 12:05:38 UTC
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.Asked by chfritz on 2020-11-24 12:53:07 UTC
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
Asked by Diogo42 on 2020-11-24 15:28:02 UTC
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
Asked by Diogo42 on 2020-11-24 15:50:39 UTC
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?
Asked by pglombardo on 2021-02-19 11:44:55 UTC
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-bridge-dev/
Asked by pglombardo on 2021-02-19 11:48:29 UTC
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.
Asked by Vincent_V on 2021-03-01 04:50:51 UTC
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.Asked by pranav.srini on 2021-05-15 23:01:24 UTC