roscore not working (upstream packages)
Running roscore gives this error:
... logging to /home/atul/.ros/log/1bd30c60-bb61-11ea-8a96-39cbecce8d08/roslaunch-atul-18118.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
Resource not found: roslaunch
ROS path [0]=/opt/ros/noetic/share/ros
ROS path [1]=/opt/ros/noetic/share
The traceback for the exception was written to the log file
I was following the beginners tutorials from http://wiki.ros.org/ROS/Tutorials. Initially, roscore was working and I was able to go through all the tutorials. When I tried to run roswtf from http://wiki.ros.org/ROS/Tutorials/Get... tutorial, it said that roswtf not found and can be installed by sudo apt install python3-roswtf. I did that and while executing
$ roscd rosmaster
$ roswtf
from the tutorial, I got a warning and it suggested me to run sudo rosdep init and then rosdep update. After doing both, there were no warnings and roswtf gave the output as shown in the tutorial. But for the next part of the tutorial, it said to run roscore, but since that time, I'm getting this error and roscore is not starting. Even roscd was not working, so I ran sudo apt install ros-noetic-rosbash which fixed the roscd problem.
This is what I get after running env | grep ROS
ROS_VERSION=1
ROS_PYTHON_VERSION=3
ROS_PACKAGE_PATH=/opt/ros/noetic/share
ROS_ETC_DIR=/opt/ros/noetic/etc/ros
ROS_ROOT=/opt/ros/noetic/share/ros
ROS_DISTRO=noetic
Please help me
I looked up in /var/log/apt/history.log and found out that running sudo apt install python3-rosdep2
removed 49 packages, which seems to have caused all the problems:
Start-Date: 2020-07-01 10:14:06
Commandline: apt install python3-rosdep2
Requested-By: atul (1000)
Install: python3-rosdep2:amd64 (0.18.0-1)
Remove: ros-noetic-rospy:amd64 (1.15.7-1focal.20200529.061557), ros-noetic-nodelet:amd64 (1.10.0-1focal.20200529.061908), ros-noetic-rqt-common-plugins:amd64 (0.4.9-1focal.20200615.143035), ros-noetic-qt-gui-cpp:amd64 (0.4.1-1focal.20200612.013014), ros-noetic-rqt-bag:amd64 (0.4.13-1focal.20200613.043147), ros-noetic-rqt-shell:amd64 (0.4.10-1focal.20200613.043315), ros-noetic-rqt-dep:amd64 (0.4.10-1focal.20200613.043407), ros-noetic-rosbag:amd64 (1.15.7-1focal.20200529.063008), ros-noetic-rqt-launch:amd64 (0.4.8-1focal.20200613.043540), ros-noetic-rqt-gui:amd64 (0.5.2-1focal.20200613.042207), ros-noetic-rqt-reconfigure:amd64 (0.5.3-1focal.20200615.142604), ros-noetic-rqt-publisher:amd64 (0.4.9-1focal.20200613.042853), ros-noetic-rosunit:amd64 (1.15.4-1focal.20200529.055729), ros-noetic-rqt-action:amd64 (0.4.9-1focal.20200613.043629), ros-noetic-rosnode:amd64 (1.15.7-1focal.20200529.063935), ros-noetic-rqt-gui-py:amd64 (0.5.2-1focal.20200613.042533), ros-noetic-rqt-msg:amd64 (0.4.9-1focal.20200613.043546), python3-rosdep-modules:amd64 (0.19.0-1), ros-noetic-rqt-graph:amd64 (0.4.14-1focal.20200613.043132), ros-noetic-rostest:amd64 (1.15.7-1focal.20200529.062051), ros-noetic-rostopic:amd64 (1.15.7-1focal.20200529.063544), ros-noetic-roslib:amd64 (1.15.4-1focal.20200529.055538), ros-noetic-rosbag-storage:amd64 (1.15.7-1focal.20200529.062400), ros-noetic-rqt-bag-plugins:amd64 (0.4.13-1focal.20200613.043434), ros-noetic-rosmsg:amd64 (1.15.7-1focal.20200529.063551), ros-noetic-rospack:amd64 (2.6.2-1focal.20200529.055340), ros-noetic-rqt-srv:amd64 (0.4.8-1focal.20200613.043637), ros-noetic-rqt-py-common:amd64 (0.5.2-1focal.20200613.042121), ros-noetic-rosservice:amd64 (1.15.7-1focal.20200529.063848), ros-noetic-rosbash ...