Reputation: 41
I am attempting to set up ROS noetic for Linux Mint 20. However, "sudo apt search ros-noetic" does not return anything. I ran the most similar package I could find, "ros-desktop-full," and followed the rest of the wiki's installation instructions from there, but can't figure out how to finish environment setup, since /etc/ros/noetic/setup.bash was not created.
sudo find / -name ros:
/opt/ros
/etc/ros
/usr/include/ros
/home/thomas/Documents/school_stuff/internship/dependencies/DynamixelSDK/ros
ls /usr/include/ros:
advertise_options.h publisher_link.h
advertise_service_options.h rate.h
assert.h roscpp_serialization_macros.h
builtin_message_traits.h ...etc
ls /etc/ros:
genmsg rosdep
ls ~/Documents/school_stuff/internship/dependencies/DynamixelSDK/ros:
dynamixel_sdk dynamixel_sdk_examples
/opt/ros is empty (this directory was not created automatically; I created it manually)
sudo find / -name setup.bash:
/home/thomas/catkin_ws/build/catkin_generated/installspace/setup.bash
/home/thomas/catkin_ws/build/atomic_configure/setup.bash
/home/thomas/catkin_ws/devel/setup.bash
Upvotes: 0
Views: 1598
Reputation: 9
try to run roscore command if ROS is installed correctly, this command should start the ROS master without any errors
Environment Setup Script: Since /etc/ros/noetic/setup.bash was not created, you can manually create and configure the environment setup script. You can do this by creating a new setup script. Run the following commands:
$echo "source /opt/ros/noetic/setup.bash" >> ~/.bashrc $source ~/.bashrc
solution 2: uninstall and reinstall ros Uninstall ROS Noetic:
First, you need to uninstall ROS Noetic and any related packages that you have installed. $sudo apt remove ros-noetic-* $sudo apt autoremove This will remove all ROS Noetic related packages from your system.
Remove ROS Related Environment Variables: Next, remove any ROS-related environment variables from your .bashrc file. $nano ~/.bashrc Look for lines similar to source /opt/ros/noetic/setup.bash and remove them. Then save the file and exit.
Delete ROS Related Directories: Remove any remaining ROS related directories. $sudo rm -rf /opt/ros/noetic $sudo rm -rf /etc/ros/noetic
Update Package Lists: Update the package lists to reflect the changes. $sudo apt update
Reinstall ROS Noetic:
Now, reinstall ROS Noetic following the official installation instructions for Ubuntu. Since you're using Linux Mint, which is based on Ubuntu, the instructions should work similarly. First, add the ROS repository to your sources list: $sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
Then, set up your keys: $sudo apt install curl # if you haven't already installed curl $curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -
Finally, install ROS Noetic: $sudo apt update $sudo apt install ros-noetic-desktop-full
Initialize ROS Environment: Initialize the ROS environment. $echo "source /opt/ros/noetic/setup.bash" >> ~/.bashrc $source ~/.bashrc
Test installation: $roscore
Upvotes: 0
Reputation: 4843
ros-desktop-full
isn't what you want. Instead you want the noetic specific version; which is why the noetic setup file is missing. When installing on Mint your apt sources will be trying to use the Mint name(Ulyana) and not the Ubuntu name ROS uses(Focal). To fix this you can simply edit your ros apt listing in /etc/apt/sources.list.d/ros-latest.list
. If you don't want to append manually you can run
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu focal main" > /etc/apt/sources.list.d/ros-latest.list'
Then after an apt update
you should be able to successfully install via sudo apt install ros-noetic-desktop-full
Upvotes: 4