ubunturos

ROS installation - broken packages


I am trying to install ros noetic following ros wiki tutorial. When i try to sudo apt install ros-noetic-desktop-full an error ocurres.

samet@samet-X540LA:~$ sudo apt install 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-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 am using ubuntu 20.04

I tried installing with aptitude. Packages installed. But when i write source /opt/ros/noetic/setup.bash i see

samet@samet-X540LA:~$ source /opt/ros/noetic/setup.bash
bash: /opt/ros/noetic/setup.bash: No such file or directory

And no ros folder in /opt


Solution

  • I solved the problem via aptitude

    sudo aptitude install ros-noetic-desktop-full
    

    aptitude gave me several solutions. First and second solutions didn't work, but the third solution worked and i can use ros.