ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

How do I update ROS?

asked 2011-06-27 16:00:10 -0500

I just received my Kinect. I am in the process of installing ubuntu 11.04. I had a prior version of ROS installed... Is there a simple way to upgrade the current installation?

Sorry, this is a very newbie question. I've spent a little time searching for the answer but it hasn't jumped out at me.


edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2011-06-27 16:19:52 -0500

liuhuanjim013 gravatar image


If you got ROS from package manager, try

sudo apt-get update
sudo apt-get dist-upgrade


edit flag offensive delete link more


Exactly. Before doing that however, you should have a look at the file /etc/apt/sources.list.d/ros-latest.list and uncomment the lines starting with "deb" (remove the #). They are commented out automatically during upgrade. (I am assuming you are upgrading from Ubuntu 10.10 to 11.04?)
Martin Günther gravatar image Martin Günther  ( 2011-06-28 00:31:25 -0500 )edit
Is 'apt-get dist-upgrade' only for upgrade ROS version or it will also upgrade ubuntu? And how to only update ROS packages?
sam gravatar image sam  ( 2011-07-20 01:36:19 -0500 )edit
No, 'dist-upgrade' will not upgrade ubuntu. You can also just do a normal 'apt-get upgrade' instead. (The difference between 'upgrade' and 'dist-upgrade' is that 'dist-upgrade' does some stuff to handle changed dependencies etc. correctly.)
Martin Günther gravatar image Martin Günther  ( 2011-07-20 01:42:47 -0500 )edit
I figured out that dist-upgrade is not only for ROS. Why dist-upgrade can upgrade the ROS version not just upgrade all the packages of ROS?
sam gravatar image sam  ( 2011-07-20 01:52:30 -0500 )edit
My last opinion maybe incorrect. I have tried on cturtle with dist-upgrade,it doesn't upgrade to diamondback, but only upgrade all the cturtle packages. So how to upgrade cturtle to diamondback?Thank you~
sam gravatar image sam  ( 2011-07-20 02:03:12 -0500 )edit
Simple: use Synaptic or aptitude or whatever to remove the ros-cturtle-* packages and install the ros-diamondback-* packages you need.
Martin Günther gravatar image Martin Günther  ( 2011-07-20 02:08:29 -0500 )edit

Question Tools


Asked: 2011-06-27 16:00:10 -0500

Seen: 26,433 times

Last updated: Jun 27 '11