Cannot locate ros
I installed ros melodic few weeks ago.. i got "<unversioned>" when I executed rosversion ros then.. now Im getting "Cannot locate ros" when I execute that. Also when i use these commands roslaunch and roscore,it asks me to install them and when i try installing, it replies me with you have held broken packages
addy21000@addy-PC:~$ rosversion ros
Cannot locate [ros]
addy21000@addy-PC:~$ dpkg -l | grep ros-melodic-roslaunch
addy21000@addy-PC:~$ dpkg -l | grep ros-melodic-roslaunch
output of dpkg -l | grep ros-melodic-roslaunch
no output,it just executed
output of ls -al /opt/ros/melodic
total 100 drwxr-xr-x 7 root root 4096 Mar 22 16:35 . drwxr-xr-x 3 root root 4096 Mar 11 17:27 .. drwxr-xr-x 2 root root 4096 Apr 4 18:05 bin -rw-r--r-- 1 root root 0 Mar 3 10:27 .catkin -rwxr-xr-x 1 root root 506 Mar 3 10:27 env.sh drwxr-xr-x 4 root root 4096 Mar 11 17:27 etc drwxr-xr-x 48 root root 4096 Apr 6 18:47 include drwxr-xr-x 22 root root 20480 Apr 4 18:05 lib -rw-r--r-- 1 root root 283 Mar 3 10:27 local_setup.bash -rw-r--r-- 1 root root 347 Mar 3 10:27 local_setup.sh -rw-r--r-- 1 root root 293 Mar 3 10:27 local_setup.zsh -rw-r--r-- 1 root root 56 Mar 3 10:27 .rosinstall -rw-r--r-- 1 root root 260 Mar 3 10:27 setup.bash -rw-r--r-- 1 root root 2774 Mar 3 10:27 setup.sh -rwxr-xr-x 1 root root 13310 Mar 3 10:27 _setup_util.py -rw-r--r-- 1 root root 270 Mar 3 10:27 setup.zsh drwxr-xr-x 92 root root 12288 Apr 6 18:48 share
output of ls -al /opt/ros/melodic/bin
total 580 drwxr-xr-x 2 root root 4096 Apr 4 18:05 . drwxr-xr-x 7 root root 4096 Mar 22 16:35 .. -rwxr-xr-x 1 root root 2807 Mar 3 10:27 catkin_find -rwxr-xr-x 1 root root 1086 Mar 3 10:27 catkin_init_workspace -rwxr-xr-x 1 root root 15224 Mar 3 10:27 catkin_make -rwxr-xr-x 1 root root 8239 Mar 3 10:27 catkin_make_isolated -rwxr-xr-x 1 root root 1889 Mar 3 10:27 catkin_test_results -rwxr-xr-x 1 root root 2416 Mar 3 10:27 catkin_topological_order -rwxr-xr-x 1 root root 1663 Mar 3 10:32 rosboost-cfg -rwxr-xr-x 1 root root 1664 Mar 3 10:32 rosclean -rwxr-xr-x 1 root root 1760 Mar 20 15:41 rosgraph -rwxr-xr-x 1 root root 2668 Mar 3 11:02 rosmake -rwxr-xr-x 1 root root 1667 Mar 20 15:45 rosmaster -rwxr-xr-x 1 root root 1659 Mar 20 15:48 rosparam -rwxr-xr-x 1 root root 255 Mar 11 05:49 rqt -rwxr-xr-x 1 root root 30904 Mar 20 16:54 run_selftest -rwxr-xr-x 1 root root 149848 Mar 20 16:54 selftest_example -rwxr-xr-x 1 root root 313536 Mar 20 16:54 selftest_rostest -rwxr-xr-x 1 root root 10512 Mar 3 11:09 stage
output of
grep remove /var/log/dpkg.log
2020-04-04 18:04:03 startup packages remove
2020-04-04 18:04:03 remove ros-melodic-desktop-full:amd64 1.4.1-0bionic.20200320.170844 <none> 2020-04-04 18:04:04 ...
should i reinstall ros?
Have you remembered to
source /opt/ros/melodic/setup.bash
before trying to run those commands?And:
Yes. Do not install those packages, unless you are more experienced. See UpstreamPackages for more information.
yes i did this source /opt/ros/melodic/setup.bash
Then please show us the exact command sequence and output of those commands in a verbatim copy of the terminal in which you try to do this. Do not post or link to screenshots.
And please include the output of
dpkg -l | grep ros-melodic-roslaunch
as well.Use the
edit
button/link to update your question.no output.
And you did install ROS using
apt
before?If so, it would seem somehow you've managed to uninstall it all / at least
roslaunch
.What is the output of
ls -al /opt/ros/melodic/bin
? And perhaps also ofls -al /opt/ros/melodic
itself?it might also be informative to see what
grep remove /var/log/dpkg.log
returns.I'm not your "bro", and this is not a chat platform.
It's a forum, and this is not my job.
Please refrain from calling people out by name like that.
yes i used apt to install ros