Deleting a program and it's configuration

Asked by Mauricio A

On windows if a program is not working properly and if I can't think of anything else I would simply uninstall the program and install it again.

But on Ubuntu that doesn't seem to work. I changed the options of a program I installed using apt-get, and now I can't put them back to default, so I just removed it with apt-get remove or even --purge, but when I install it back everything is the way I left it before removing it, instead of back to default.

It happened with Wicd, K9Copy, and maybe some other program, I can't remember.

Is there any way to remove a program installed with apt completely?
I'm asking because the default Network Manager never worked fine with wi-fi (disconnects after a while), but Wicd worked perfectly fine, but now Wicd stopped working and can't even connect, so I thought of reinstalling it, but it doesn't work.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
Mauricio A
Solved:
Last query:
Last reply:

This question was reopened

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

if you use:

sudo apt-get --purge remove packagename

it will remove the config in the system files but you will need to manually delete the settings in $HOME which is where each apps config is stored per user. If you run:

cd ~; ls -a

You will see some of the config files. If you also run:

cd ~/.config; ls -a

You will see some more

If you remove those folders and rerun the app, you will get vanilla settings.

Revision history for this message
Mauricio A (mauricio-alfonso-88) said :
#2

Thanks, that worked. Took me a while to find the k9copy folder.

Revision history for this message
Mauricio A (mauricio-alfonso-88) said :
#3

Sorry, but it isn't solved yet.
It worked with K9Copy, but it doesn't work with Wicd. No matter how many times I --purge remove, delete the .wicd directory, and reinstall, it always remembers my settings.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

hmm

are there any folders in ~/.config for it?

Revision history for this message
Mauricio A (mauricio-alfonso-88) said :
#5

No, this are the files in .config:

. brasero emesene1.0 geany gtk-2.0 softwarecenter Trolltech.conf
.. compiz Empathy gnome-disk-utility indicators tomboy user-dirs.dirs
arora-browser.org deluge enchant gnome-session menus totem user-dirs.locale
autostart desktop-couch f-spot google-chrome smplayer transmission vlc

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#6

ok, uninstall wicd and remove the config folder in $HOME then run:

sudo find / -name "wicd*"

see what it finds. Lets go all out on this mutha

Revision history for this message
Mauricio A (mauricio-alfonso-88) said :
#7

It found all this:

alfonso@alfonso-desktop:~$ sudo find / -name "wicd*"
/home/alfonso/.local/share/Trash/info/wicd-tray.desktop.trashinfo
/home/alfonso/.local/share/Trash/files/wicd-tray.desktop
/home/alfonso/.config/autostart/wicd-tray.desktop
/etc/xdg/autostart/wicd-tray.desktop
/etc/default/wicd
/etc/init.d/wicd
/etc/dbus-1/system.d/wicd.conf
/etc/wicd
/var/run/wicd
/var/log/wicd
/var/log/wicd/wicd.log.1
/var/log/wicd/wicd.log
/var/log/wicd/wicd.log.3
/var/log/wicd/wicd.log.2
/var/lib/update-rc.d/wicd
/var/lib/dpkg/info/wicd-daemon.list
/var/lib/dpkg/info/wicd-gtk.list
/var/lib/dpkg/info/wicd-gtk.postrm
/var/lib/dpkg/info/wicd-daemon.postrm
/var/lib/wicd
/var/cache/apt/archives/wicd_1.7.0+ds1-2_all.deb
/var/cache/apt/archives/wicd-daemon_1.7.0+ds1-2_all.deb
/var/cache/apt/archives/wicd-gtk_1.7.0+ds1-2_all.deb
/usr/share/app-install/desktop/wicd.desktop
/usr/share/app-install/icons/wicd-gtk.png

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#8

/etc/dbus-1/system.d/wicd.conf
/etc/wicd

look highly suspect, open them with a text editor, do they hold your settings?

Revision history for this message
Mauricio A (mauricio-alfonso-88) said :
#9

There were files with the program's settings on /etc/wicd
I removed the /etc/wicd directory and installed wicd again, but now it doesn't open. I tried reinstalling again and it doesn't work, I don't know what happened.

Revision history for this message
Mauricio A (mauricio-alfonso-88) said :
#10

After removing and reinstalling about 10 times Wicd is working again and with default settings, so my problem is solved.
I still have wi-fi problems, so I'll make another question.