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

apt-get to install ros package with specific version?

asked 2018-11-15 04:27:02 -0600

kevin.kuei.0321@gmail.com gravatar image

Hi,

Is it possible to use apt-get install command to install ros package with specific version? for example, I would like to try move_base 1.14.2. But the current version in ubuntu repo is 1.14.4 (for kinetic)

Thanks!

edit retag flag offensive close merge delete

Comments

To the best of my knowledge only the most recent release is available via apt-get if you want any other version you will have to build it from source yourself.

PeteBlackerThe3rd gravatar image PeteBlackerThe3rd  ( 2018-11-15 05:14:32 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-11-15 05:59:08 -0600

gvdhoorn gravatar image

updated 2018-11-19 01:42:19 -0600

Is it possible to use apt-get install command to install ros package with specific version?

yes, but only the current version.

That is not what you were looking for, of course.

for example, I would like to try move_base 1.14.2. But the current version in ubuntu repo is 1.14.4 (for kinetic)

So the question really seems to be: can I install an older version of a ROS package by using apt?

Then the answer is: no, as the ROS package repositories don't retain those whenever an update is synced from the staging server.


We've had a similar question some time ago, and there it turned out that the real problem was actually an incompatibility with a particular driver that had to be resolved. Installing an older version of a specific package there was merely a work-around.

To avoid an xy-problem, could you please explain why you want to install an older version of move_base?


Edit:

I encountered a move_base bug and I figured out it is fixed in 1.14.4. So, I did a "apt-get install ros-kinetic-move-base" to installed 1.14.4. Then I found the move_base crashed when it started. So, I would like to try downgrade move_base to 1.14.2.

If you realy only upgraded move_base then it would be very likely that the real issue you are running into is an ABI incompatibility between the upgraded move_base and your other packages that are still using previous versions of files.

So assuming that is the actual problem (mixing updated packages with old versions), the solution would be to upgrade all (ROS) packages, not downgrade one.

https://github.com/ros-planning/navig... . This is the bug I encountered.

That ticket is from June (almost 5 months ago). Many upgrades have been released since then.

Question: How to upgrade installed ros packages? "apt-get upgrade" or "apt-get dist-upgrade" seems upgrade not only installed ros packages, but also other non-ros packages.

In most cases making sure you have an up-to-date system would be preferable over updating only a limited set of packages.

If you really want to upgrade only installed ROS packages, then the following command would do that:

sudo apt-get update && sudo apt-get install --only-upgrade ros-kinetic*

But again: in general I would try to maintain a consistent up-to-date system.

edit flag offensive delete link more

Comments

Thanks for the reply. I encountered a move_base bug and I figured out it is fixed in 1.14.4. So, I did a "apt-get install ros-kinetic-move-base" to installed 1.14.4 Then I found the move_base crashed when it started. So, I would like to try downgrade move_base to 1.14.2.

kevin.kuei.0321@gmail.com gravatar image kevin.kuei.0321@gmail.com  ( 2018-11-18 21:53:10 -0600 )edit

https://github.com/ros-planning/navig... This is the bug I encountered.

kevin.kuei.0321@gmail.com gravatar image kevin.kuei.0321@gmail.com  ( 2018-11-18 21:54:48 -0600 )edit

Question: How to upgrade installed ros packages? "apt-get upgrade" or "apt-get dist-upgrade" seems upgrade not only installed ros packages, but also other non-ros packages.

kevin.kuei.0321@gmail.com gravatar image kevin.kuei.0321@gmail.com  ( 2018-11-19 01:33:37 -0600 )edit

Thank you!

kevin.kuei.0321@gmail.com gravatar image kevin.kuei.0321@gmail.com  ( 2018-11-19 01:48:28 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2018-11-15 04:27:02 -0600

Seen: 2,315 times

Last updated: Nov 19 '18