ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org
Ask Your Question
0

Apt autoremove uninstalled rosbash now rosrun does not work properly

asked 2021-03-27 20:16:36 -0500

Gates gravatar image

Hello,

Yesterday, I installed some not-ROS-related software on my Ubuntu 18.04 and did sudo apt update after a long time (maybe 2 weeks). Then I saw there were a few unused packages and I did sudo apt autoremove afterwards.

I didn't pay attention when the first autoremove was suggested since I didn't do any drastic changes recently but while autoremove was proceeding there were some interesting things going on. I copied the terminal output here.

Today, I cannot point out any other reason than this why rosrun might have been removed from my PC (if you know why it can be please let me know). when I type ros and tab-autocomplete, there were few ros-commands but rosrun was not one of them. I computed sudo apt install rosbash and now I have a long list of ros-commands back (including rosrun) yet I cannot autocomplete anything beginning with rosrun. Ridiculously, roslaunch, roscore works just fine.

Is there anyone who might have any idea what I possibly did wrong and how to reverse it?

Thanks in advance

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-03-28 05:56:02 -0500

Gates gravatar image

updated 2021-03-28 05:57:21 -0500

I solved the problem by reinstalling ros-melodic-desktop-full. I didn't uninstall ros before because I am so close to a delivery and I don't have time to deal with other possible dependency errors with my already running packages. I wanted to try installing removed packages and hope that sudo apt install ros-melodic-desktop-full would only install the missing ones. I was lucky I guess to have some sort of working setup again.

I want to enter this way around to overcome this issue but I still don't know why autoremove removed my necessary packages (if that's the case). Therefore, I don't want to choose this as an accepted answer yet. Hopefully, someone else can answer better what is going on.

edit flag offensive delete link more

Comments

This sounds more like an Ubuntu systems configuration issue or something with the usage of apt than anything ROS specific. You may want to try asking this on the Ubuntu forums instead.

gvdhoorn gravatar image gvdhoorn  ( 2021-03-29 01:39:19 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2021-03-27 20:16:36 -0500

Seen: 176 times

Last updated: Mar 28 '21