Command ‘roscore’ not found, but can be installed with:
sudo apt install python-roslaunch
Install Python Ross launch as prompted,
Error reporting: e: unable to correct problems, you have held broken packages
According to the online search, the binary executable named “roscore” may not exist in the folder “/opt/ROS/indigo/bin/”, and there will be no problem after having it
Solution:
1. First check whether there is a binary executable named roscore in the folder. If it does not exist, execute step 2. If it does exist, execute step 3
cd /opt/ros/melodic/bin
ls -l
2. If it does not exist, execute the following code, and then execute the first step to see if the roscore file exists. If it does, execute the third step
sudo apt-get install ros-melodic-desktop
3. If the roscore file is found in the first step, find the file named setup.sh under melody (the version of ROS you installed) and source its path
source /opt/ros/melodic/setup.sh
Enter roscore at the terminal, the problem is solved and the execution is successful.
Read More:
- Ubuntu sub process/usr/bin/dpkg returned an error code (1) solution
- Fastplanner compilation error: Could not find a package configuration file provided by “cmake_modules”
- [Solved] Ubuntu18.04 Px4 (xtdrone) gazebo joint simulate error
- [Solved] NameError: name ‘reload’ is not defined on ROS melody terminal
- [Solved] Docker Staratup Error: Failed to start Docker Application Container Engineadsafdsad.
- How to Fix Linux sub process /usr/bin/dpkg returned an error code (1)
- Linux: How to Solve vim ~/.bashrc Execute Error
- Ubuntu20.04 install the ROS noetic version in catkin_Problems in make compilation
- How to Solve Ubuntu “Failed to fetch” Error
- How to Solve dyn_small_obs_avoidance Compile Error (eigen version Issue)
- Opensuse12.3 installation of VirtualBox error resolution
- Apex library Install Error: amp not installed error [How to Solve]
- [Solved] Centos error: collect2: fatal error: cannot find ‘ld‘
- [Solved] ImportError:lib***.so–cannot open shared object file: No such…(pycharm/clion Error but shell No Error)
- [Solved] Jenkins+Ant Error: Error reading project file xxxxx
- How to Use Apt get Command Under Mac OSX
- [Solved] docker: Error response from daemon: OCI runtime create failed: container_linux.go:380
- [Solved] Linux installation pillow error: ValueError: jpeg is required unless explicitly disabled using –disable-jpeg, aborting
- Failed to find Qt component “Widgets“ [How to Solve]