Problem with installing ROS on Ubuntu 18.04
I am trying to install ROS on a Ubuntu 18.04, I have followed the steps from the wiki for installation and cannot complete this following line:
sudo apt install ros-melodic-desktop-full
The error message prints out:
Reading package lists… Finished
Builds dependency trees
Reading state information ... Finished
Some packages could not be installed. It may mean that you have requested
an impossible situation or, if you use the unstable distribution
that some necessary packages have not yet been created or moved
from "Incoming".
The following information may help to resolve the situation:
The following packages have dependencies that cannot be satisfied:
ros-melodic-desktop-full: Dependent on: ros-melodic-desktop but it will not be installed
Depending on: ros-melodic-perception but it will not be installed
Depending on: ros-melodic-simulators but it will not be installed
Depending on: ros-melodic-urdf-sim-tutorial but it will not be installed
E: Could not correct the problems, you have withheld broken packages.
Does anyone know how I can get past this problem? Thank you in advance.
EDIT:
I have now succesfully installed ROS!!
I used aptitude for ubuntu - Advanced Packaging Tool (APT) system.
Does this mess up something considering path folders? By doing this I have no path called "opt/ros/melodic"... Now I cannot perform any environment setup. Meaning I cannot run the following instructions from ROS:
echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc source ~/.bashrc
bash: /opt/ros/melodic/setup.bash: No such file or directory
Please help me with this
Asked by Robertslipac on 2019-09-17 03:38:25 UTC
Comments
have you added keys ad source list ? and sudo updated ??
Asked by kallivalli on 2019-09-17 04:28:12 UTC
Yes ofcorse, the previous steps for the installation was completed, adding keys gave output: OK.
Asked by Robertslipac on 2019-09-17 04:32:23 UTC
(sudo apt-get install -f) try this and then install
Asked by kallivalli on 2019-09-17 04:40:03 UTC
I Tried this but same error message shows for installing ros
Asked by Robertslipac on 2019-09-17 05:09:35 UTC
Please take a look at the edited problem to see output of your tip, can you help me further? thank you for your time
Asked by Robertslipac on 2019-09-17 06:23:12 UTC
https://answers.ros.org/question/299260/unmet-dependencies-when-installing-melodic-on-ubuntu-1804/
Asked by kallivalli on 2019-09-17 06:58:37 UTC
have you seen that answer ?
Asked by kallivalli on 2019-09-17 06:58:58 UTC
Yes, I have managed to go through most of the same relative searches on this forum and google a bit. I tried this answer again just in case but still at the same problem...
I get the same problem for all ROS version such as: sudo apt-get install ros-desktop-full sudo apt-get install ros-kinetic-desktop-full
Asked by Robertslipac on 2019-09-17 07:24:44 UTC
Might be worth mentioning that I have not tried installing any other versions as Gazebo before. This is the first time I hve tried installing ROS at all on this machine.
Asked by Robertslipac on 2019-09-17 07:37:25 UTC
then I'm afraid you haven't succeeded in installing the ROS packages.
Asked by gvdhoorn on 2019-09-19 02:05:30 UTC
problem not soved...can someone please help me
Asked by Robertspilac on 2020-02-17 16:29:50 UTC