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

How to restore a stack installed from debian

asked 2011-06-09 03:29:39 -0600

Khiya gravatar image

updated 2014-01-28 17:09:49 -0600

ngrennan gravatar image

Hi, I accidentally completely deleted all the packages in my diamondback/stacks directory - the packages like [common] and [vision_opencv] and [openni_kinect] and all those important things. It was a tremendously stupid thing to do, I know, but there it is. Can anyone explain to me how to get back all those packages? I tried installing diamondback again in the hopes that it would reinstall the whole stack, but it didn't work. Then I tried things like "sudo apt-get install common" to try to install the packages back one by one, manually, but that didn't work either, so apparently I'm missing a lot of the fine details about installing packages. I really don't understand ROS or Ubuntu well enough yet to work my way back out of this - any help please? Thanks, Khiya

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
1

answered 2011-06-09 05:19:51 -0600

dornhege gravatar image

updated 2011-06-09 05:20:22 -0600

You can also use the reinstall option, i.e. sudo apt-get --reinstall install ros-diamondback-<whatever you need>

edit flag offensive delete link more
2

answered 2011-06-09 03:40:56 -0600

Reinstalling should work. Try removing first:

sudo apt-get remove ros-diamondback-*

And then installing from binaries (more detailed instructions here):

sudo apt-get install ros-diamondback-desktop
edit flag offensive delete link more
0

answered 2011-06-09 05:54:10 -0600

Khiya gravatar image

Thanks for the quick responses! The --reinstall option worked perfectly for reinstalling the individual packages, so now I just have to hunt them all down again.

One more question, though: when I tried sudo apt-get --reinstall install ros-diamondback-desktop-full to try to reinstall the entire distribution, the response was

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  python-sip4-dev
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 3 not upgraded.
Need to get 0B/1,110B of archives.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 196424 files and directories currently installed.)
Preparing to replace ros-diamondback-desktop-full 1.0.0-s1306677492~lucid (using .../ros-diamondback-desktop-full_1.0.0-s1306677492~lucid_i386.deb) ...
Unpacking replacement ros-diamondback-desktop-full ...
Setting up ros-diamondback-desktop-full (1.0.0-s1306677492~lucid) ...

Could someone be so kind as to explain why this did not make all the core packages magically reappear in the diamondback/stacks directory where they had been installed when I first installed diamondback? Thanks, Khiya

edit flag offensive delete link more

Comments

I guess that package is only a metapackage that depends the others. You can grep the list from `dpkg -l|grep diamondback`. Alternately you can try ros-diamondback-*, but that might install all packages. Or just remove and reinstall the metapackage as Ivan suggested.
dornhege gravatar image dornhege  ( 2011-06-09 06:27:32 -0600 )edit

Question Tools

Stats

Asked: 2011-06-09 03:29:39 -0600

Seen: 594 times

Last updated: Jun 13 '11