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:
- CentOS: How to Solve Python File Run Error
- How to Solve Mujoco Install Error in Ubuntu (Pycharm Run Error)
- How to Solve Xmind Install Error in Ubuntu System
- How to Solve Ubuntu “Failed to fetch” Error
- Linux: How to Solve vim ~/.bashrc Execute Error
- Linux: How to Solve sudo operate Error
- How to Solve dyn_small_obs_avoidance Compile Error (eigen version Issue)
- How to Solve insufficent privileges error: Ora-01031
- How to Solve “Error: source file could not be loaded“ [Ubuntu Use LibreOffice]
- Linux: How to Solve pyperclip Module Error
- Ffmpeg: How to Solve error initializing filter ‘gltransition’
- How to Solve Error: “Hdaudio hdaudioc0d2: unable to bind codec”
- How to Solve labelme Install Error in Ubuntu
- How to Solve NPM Error 426 Upgrade Required
- How to Solve Error vim :call CompileRunGcc()
- mysqlclient in Ubuntu: How to Solve mysqlclient Install Error
- How to Solve NPM Error: listen EADDRINUSE 127.0.0.1:8080
- How to Solve Git Filename too long Error
- How to Solve Linux Error: -bash: unzip: command not found
- How to Solve A-LOAM Ceres Version Error