Robotics StackExchange | Archived questions

apt-get autoremove removes ROS

Hi

I just ran apt-get autoremove and it appears to have completely wiped out my entire ROS install >:( Luckily this happened on my laptop which is just my dev environment and not my Robot, but still this is quite annoying. If i'm understanding autoremove correctly, apt-get identified ROS as something another package depended on at one point but has since been removed. So it deleted all of ROS. Has anyone else had this issue?

Asked by shoemakerlevy9 on 2017-03-02 14:33:44 UTC

Comments

I've had it remove a bunch of ROS packages, but never all of ROS. That's definitely a command I avoid these days - along with anything involving Nvidia, as much as possible.

Asked by AndyZe on 2017-03-03 12:30:38 UTC

As you write, this typically happens if ROS (probably one of the top-level metapackages) is a dependency of something that got removed. Without more info (logs? try /var/log/apt) this is going to be difficult to diagnose.

Asked by gvdhoorn on 2017-03-04 05:32:59 UTC

Answers

Hopefully this answer helps someone, even though its an old question. If you see many ros packages in your autoremove list, before you run the autoremove command you could run sudo apt-mark manual ros-noetic*. This command will mark all ros noetic packages as manually installed, so it won't add those to the autoremove list.

Asked by seqwalt on 2023-01-17 00:21:24 UTC

Comments