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

Unable to uninstall ros-indigo before re-intall from the beginning

asked 2019-02-19 12:38:14 -0500

kkulkarn gravatar image

Greetings,

I'm a newbie and have an Ubuntu 14.04 computer with ROS indigo loaded on it. I was trying to install ros-indigo-navigation, where I encountered dependency issues. I tried various suggestions and nothing worked. So, I decided to uninstall ROS and reinstall the full desktop version from the beginning. I am having trouble even uninstalling ROS.

for sudo apt-get remove ros-* or for sudo apt-get purge ros-* I get the error saying that Unable to locate package ros-apt.txt and couldn't find any package by regex 'ros-apt.txt'

I did find a file by that name in my home directory though. Any suggestions on how to overcome this and help me reinstall ROS-indigo is very much appreciated.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2019-02-19 13:25:03 -0500

ahendrix gravatar image

updated 2019-02-19 15:52:48 -0500

The shell will expand * as a file wildcard, so it doesn't get passed to apt.

If you don't want the shell to do any file expansions, use single quotes around the arguments you don't want expanded:

sudo apt-get remove '^ros-*'
edit flag offensive delete link more

Comments

Brilliant. I don't know why I didn't think of this even though I'm from the UNIX world! Thanks, it worked.

kkulkarn gravatar image kkulkarn  ( 2019-02-19 13:42:23 -0500 )edit
1

You may want to use '^ros-*' to make sure that you only uninstall things starting with ros. I'm not 100% sure about this but I've seen it recommended on this site before

jayess gravatar image jayess  ( 2019-02-19 15:35:33 -0500 )edit

Question Tools

Stats

Asked: 2019-02-19 12:38:14 -0500

Seen: 282 times

Last updated: Feb 19 '19