PDA

View Full Version : [ubuntu] uninstalling with Terminal



TXbirder
June 24th, 2010, 02:05 PM
I installed the free AVG anti-virus. Just thought I'd give it a try. It's too much work- no GUI. So I want to get rid of it.

Following the uninstall instructions in the AVG manual I enter: sudo dpkg -r avg85flx-r812-a3371.i386.deb. Terminal's response is: dpkg: you must specify packages by their own names, not by quoting the names of the files they come in.

To make sure I got the name right I started a download, without clicking OK.
The downloader says: You have chosen to open avg85flx-r812-a3371.i386.deb which is a: Software package from...... etc etc.

If this is not the name of the package, how do I find the name? I don't want to leave this unused program in my computer indefinitely. Is there an entry that says "What is the name of the package that contains the software package avg85flx-r812-a3371.i386.deb?"

John

radddi
June 24th, 2010, 02:24 PM
When uninstalling you need to use the package's name which is used in your system, not the file it comes from. You can find the package name in Synaptic: System >> Administration >> Synaptic Package Manager. The package should be listed there even if does not come from the Ubuntu repositories.

.:CheerS:.

Javich
June 24th, 2010, 04:40 PM
The actual .deb file it's just not how the package manager finds it; as radddi said I'd recommend using synaptic.

Just open a console, type
sudo synaptic, then search for "avg", on the leftmost column (the ones that indicate if it's installed) click on it's title to make the installed packages go on top (or bottom), find AVG, then kill it!

Another approach would be to use only the command line to do so:
Step 1: find the package:

go to a terminal, then
sudo dpkg --get-selections | grep -i avg the left column will tell the package name. If it shows in there, just type
sudo dpkg --remove <the_package_name_in_here where "the_package_name_in_here" may be something like "avg_server" or "avg something"

Cheers,
Javier

ThesaurusRex
June 24th, 2010, 08:43 PM
Does it show up with aptitude?
sudo aptitude remove avgIt'll probably say "avg not found," but then give you a list of avg-like names you could remove.

TXbirder
June 24th, 2010, 09:41 PM
I found it. It is named avg85flx. When I type sudo dpkg --remove avg85flx . Terminal responds: dpkg: status database area is locked by another process.

I exited Terminal and tried again and got the same response. What other process is locking it? I'm the only user and the only thing I'm doing is this.

John

TXbirder
June 24th, 2010, 09:46 PM
Never mind. I think I got it. I had the Synaptic Package Manager open while doing this so I'd be sure to get the name right. I closed the SPM and the removal ran.

Thanks to you all.
John