How do I uninstall AVG anti-virus

Asked by Thomas

I need instructions on removing AVG anti-virus

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Thomas
Solved:
Last query:
Last reply:
Revision history for this message
Alan Pope 🍺🐧🐱 πŸ¦„ (popey) said :
#1

I am sorry but I do not understand. Do you have an issue with Ubuntu we can help with? Can you explain further?

Revision history for this message
Thomas (jtx472) said :
#2

Thank you for your reply. First of all I just recently switched over from
Windows and am having a lot of trouble with all the proper commands. I
downloaded AVG 7.5.45 for Linux from the Grisoft website. I've been using
it for years in Windows and I am on a dual boot with XP. Anyway I never
could get it to update, either scheduled or manually, so I decided to just
uninstall it and just use Aegis which seems to work fine. AVG is no good to
me if it can't be updated. The problem is I can't get it removed. I type
in "sudo apt-get remove AVG" and it tells me there is no such file. But I
can go in the file system and see all kinds of AVG files. I don't get it.

On 3/25/07, Alan Pope <email address hidden> wrote:
>
> Your question #4392 on Ubuntu changed:
> https://answers.beta.launchpad.net/ubuntu/+ticket/4392
>
> Status: Open => Needs information
>
> Alan Pope requested for more information:
> I am sorry but I do not understand. Do you have an issue with Ubuntu we
> can help with? Can you explain further?
>
> _______________________________________________________________________
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.beta.launchpad.net/ubuntu/+ticket/4392
>

Revision history for this message
Ralph Janke (txwikinger) said :
#3

How did you install avg? Did you use a .deb package or install it with apt-get, or did you install it from a .tar.gz file?

In the first case, you might use a different package name.

Use the command

dpkg-query -l '*avg*'

to find the right one. The result gives you the name to use with

sudo dpkg --remove <packagename>

In the second case, you would need to look in the INSTALL or README file from the .tar.gz file if there is a removal functionality.

I hope this helps

Revision history for this message
Thomas (jtx472) said :
#4

This is what I'm talking about. You asked me to use the command

dpkg-query -1 '*avg*'

This is what I get

jtx472@Northgate:~$ dpkg-query -1 '*avg*'
dpkg-query: unknown option -1

Use --help for help about querying packages;
Use --license for copyright license and lack of warranty (GNU GPL).

jtx472@Northgate:~$

Thanks

Revision history for this message
Thomas (jtx472) said :
#5

Also, it was a deb file installed with gdebi-gtk

Revision history for this message
Peter Enzerink (ubuntu-enzerink) said :
#6

This is really a question for GriSoft.

You were asked to use:

dpkg-query -l '*avg*'

not:

dpkg-query -1 '*avg*'

Assuming the correct command lists an avg package, you can remove the package using:

sudo dpkg -r packagename

Where packagename is whatever is returned in the Name column from the dpkg-query command.

Cheers

Revision history for this message
Thomas (jtx472) said :
#7

Oh I see...but how do I get that line in there? I can't find it on my keyboard. And goodnight my friend.

Revision history for this message
Thomas (jtx472) said :
#8

Never mind. I got it.

jtx472@Northgate:~$ dpkg-query -l '*avg*'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==============-==============-============================================
un avg71fld <none> (no description available)
ii avg75fld 7.5.45_a0973 Free edition of antivirus solution with GUI.
un avggui <none> (no description available)
un avglinux <none> (no description available)
un wmavgload <none> (no description available)
jtx472@Northgate:~$

Can you tell me the package name from that? Thanks

Revision history for this message
Ralph Janke (txwikinger) said :
#9

Yep... it is avg75fld.

You need to give the following command

sudo dpkg --remove avg75fld

I hope this helps

Revision history for this message
Thomas (jtx472) said :
#10

Sorry to bother you again my friend but this is what I got:

jtx472@Northgate:~$ sudo dpkg --remove avg75fld
Password:
(Reading database ... 128877 files and directories currently installed.)
Removing avg75fld ...
 * Stopping avgdkill: 246: Illegal number: -
local: 246: 4183: bad variable name
( not running)
 * [fail]
invoke-rc.d: initscript avgd, action "stop" failed.
dpkg: error processing avg75fld (--remove):
 subprocess pre-removal script returned error exit status 150
Errors were encountered while processing:
 avg75fld
jtx472@Northgate:~$

Revision history for this message
Ralph Janke (txwikinger) said :
#11

You might need to start it first, since the removal script seem to fail otherwise:

Do first:

sudo /etc/init.d/avg start

and then:

sudo dpkg --remove avg75fld

Revision history for this message
Thomas (jtx472) said :
#12

I did as you said:

jtx472@Northgate:~$ sudo /etc/init.d/avg start
sudo: /etc/init.d/avg: command not found
jtx472@Northgate:~$ sudo dpkg --remove avg75fld
(Reading database ... 131758 files and directories currently installed.)
Removing avg75fld ...
 * Stopping avgdkill: 246: Illegal number: -
local: 246: 4183: bad variable name
( not running)
 *
[fail]
invoke-rc.d: initscript avgd, action "stop" failed.
dpkg: error processing avg75fld (--remove):
 subprocess pre-removal script returned error exit status 150
Errors were encountered while processing:
 avg75fld
jtx472@Northgate:~$

On 3/27/07, txwikinger <email address hidden> wrote:
>
> Your support request #4392 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+ticket/4392
>
> Status: Open => Answered
>
> txwikinger proposed the following answer:
> You might need to start it first, since the removal script seem to fail
> otherwise:
>
> Do first:
>
> sudo /etc/init.d/avg start
>
> and then:
>
> sudo dpkg --remove avg75fld
>
> _______________________________________________________________________
> If this answers your request, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+ticket/4392/+confirm?answer_id=10
>
> If you still need support, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+ticket/4392
>

Revision history for this message
Alan Pope 🍺🐧🐱 πŸ¦„ (popey) said :
#13

Personally I would forcably rip that sucker out.

sudo dpkg --remove --force-all avg75fld

Revision history for this message
Thomas (jtx472) said :
#14

jtx472@Northgate:~$ sudo dpkg --remove --force-all avg75fld
(Reading database ... 131758 files and directories currently installed.)
Removing avg75fld ...
 * Stopping avgdkill: 246: Illegal number: -
local: 246: 4183: bad variable name
( not running)
 * [fail]
invoke-rc.d: initscript avgd, action "stop" failed.
dpkg: error processing avg75fld (--remove):
 subprocess pre-removal script returned error exit status 150
Errors were encountered while processing:
 avg75fld
jtx472@Northgate:~$

Revision history for this message
Thomas (jtx472) said :
#15

Seems like nobody can figure out how to remove this bugger from my computer. My real problem with it is that I cannot update it. And no virus scanner is any good without regular updates. So if you can't figure out how to remove it maybe you can figure out how to update it.

http://www.picsoup.com/images/84799Screenshot.png

Revision history for this message
Alan Pope 🍺🐧🐱 πŸ¦„ (popey) said :
#16

Ok, here's another way.

We can stop dpkg running the shutdown script (which is clearly broken).

sudo gedit /var/lib/dpkg/info/avg75fld.prerm

In that text file (which I don't have a copy of because I dont have avg installed), you should find one or more lines that have the following at the start:-

invoke-rc.d
or
/etc/init.d/avg75fld

Or very similar

Go to the start of those two lines (or how ever many there are) and put a "#" (hash/pound/gate) symbol at the start.

Then save the file and repeat:-

sudo dpkg --remove --force-all avg75fld

Revision history for this message
Thomas (jtx472) said :
#17

http://www.picsoup.com/images/64079Screenshot-2.png

http://www.picsoup.com/images/99179Screenshot.png

On 3/28/07, Alan Pope <email address hidden> wrote:
>
> Your question #4392 on Ubuntu changed:
> https://answers.beta.launchpad.net/ubuntu/+ticket/4392
>
> Status: Open => Answered
>
> Alan Pope proposed the following answer:
> Ok, here's another way.
>
> We can stop dpkg running the shutdown script (which is clearly broken).
>
> sudo gedit /var/lib/dpkg/info/avg75fld.prerm
>
> In that text file (which I don't have a copy of because I dont have avg
> installed), you should find one or more lines that have the following at
> the start:-
>
> invoke-rc.d
> or
> /etc/init.d/avg75fld
>
> Or very similar
>
> Go to the start of those two lines (or how ever many there are) and put
> a "#" (hash/pound/gate) symbol at the start.
>
> Then save the file and repeat:-
>
> sudo dpkg --remove --force-all avg75fld
>
> _______________________________________________________________________
> If this answers your question, please go to the following page to let us
> know that it is solved:
>
> https://answers.beta.launchpad.net/ubuntu/+ticket/4392/+confirm?answer_id=15
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.beta.launchpad.net/ubuntu/+ticket/4392
>

Revision history for this message
Alan Pope 🍺🐧🐱 πŸ¦„ (popey) said :
#18

You commented the wrong bit.

The line

if which ...

should not have a comment in it..

The line immediately after it should.

Revision history for this message
Thomas (jtx472) said :
#19

http://www.picsoup.com/images/77695Screenshot.png

http://www.picsoup.com/images/21818Screenshot-1.png

On 3/28/07, Alan Pope <email address hidden> wrote:
>
> Your question #4392 on Ubuntu changed:
> https://answers.beta.launchpad.net/ubuntu/+ticket/4392
>
> Status: Open => Answered
>
> Alan Pope proposed the following answer:
> You commented the wrong bit.
>
> The line
>
> if which ...
>
> should not have a comment in it..
>
> The line immediately after it should.
>
> _______________________________________________________________________
> If this answers your question, please go to the following page to let us
> know that it is solved:
>
> https://answers.beta.launchpad.net/ubuntu/+ticket/4392/+confirm?answer_id=17
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.beta.launchpad.net/ubuntu/+ticket/4392
>

Revision history for this message
Alan Pope 🍺🐧🐱 πŸ¦„ (popey) said :
#20

Again, you have not commented out correctly.

You need a # in front of the line that *starts* with

invoke-rc.d

(which you have not done)

and the line that starts

/etc/init.d/avg

(which you have done correctly)

Revision history for this message
Thomas (jtx472) said :
#21

I'm confused. Would you show me exactly where you want th "#" marks or is
the following correct? Thank you

case "$1" in

   remove|deconfigure|upgrade)

       if which #invoke-rc.d >/dev/null 2>&1; then
           #invoke-rc.d avgd stop
       else
           #/etc/init.d/avgd stop
       fi

cp /opt/grisoft/avg7/data/set_vers.cfg /opt/grisoft/avg7/data/upd_vers.cfg

       ;;

   failed-upgrade)

       # just try again

       if which invoke-rc.d >/dev/null 2>&1; then
           invoke-rc.d avgd stop
       else
           /etc/init.d/avgd stop
       fi

cp /opt/grisoft/avg7/data/set_vers.cfg /opt/grisoft/avg7/data/upd_vers.cfg

       ;;

   *)

On 3/28/07, Alan Pope <email address hidden> wrote:
>
> Your question #4392 on Ubuntu changed:
> https://answers.beta.launchpad.net/ubuntu/+ticket/4392
>
> Status: Open => Answered
>
> Alan Pope proposed the following answer:
> Again, you have not commented out correctly.
>
> You need a # in front of the line that *starts* with
>
> invoke-rc.d
>
> (which you have not done)
>
> and the line that starts
>
> /etc/init.d/avg
>
> (which you have done correctly)
>
> _______________________________________________________________________
> If this answers your question, please go to the following page to let us
> know that it is solved:
>
> https://answers.beta.launchpad.net/ubuntu/+ticket/4392/+confirm?answer_id=19
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.beta.launchpad.net/ubuntu/+ticket/4392
>

Revision history for this message
Alan Pope 🍺🐧🐱 πŸ¦„ (popey) said :
#22

Almost.. there are two more further down...

case "$1" in

   remove|deconfigure|upgrade)

       if which #invoke-rc.d >/dev/null 2>&1; then
           #invoke-rc.d avgd stop
       else
           #/etc/init.d/avgd stop
       fi

cp /opt/grisoft/avg7/data/set_vers.cfg /opt/grisoft/avg7/data/upd_vers.cfg

       ;;

   failed-upgrade)

       # just try again

       if which invoke-rc.d >/dev/null 2>&1; then
           #invoke-rc.d avgd stop
       else
           #/etc/init.d/avgd stop
       fi

cp /opt/grisoft/avg7/data/set_vers.cfg /opt/grisoft/avg7/data/upd_vers.cfg

       ;;

   *)

Revision history for this message
Thomas (jtx472) said :
#23

#! /bin/sh
# prerm script for AVG for Linux

set -e

# possible arguments: remove, upgrade, deconfigure, failed-upgrade

case "$1" in

   remove|deconfigure|upgrade)

       if which #invoke-rc.d >/dev/null 2>&1; then
           #invoke-rc.d avgd stop
       else
           #/etc/init.d/avgd stop
       fi

cp /opt/grisoft/avg7/data/set_vers.cfg /opt/grisoft/avg7/data/upd_vers.cfg

       ;;

   failed-upgrade)

       # just try again

       if which #invoke-rc.d >/dev/null 2>&1; then
           #invoke-rc.d avgd stop
       else
           #/etc/init.d/avgd stop
       fi

cp /opt/grisoft/avg7/data/set_vers.cfg /opt/grisoft/avg7/data/upd_vers.cfg

       ;;

   *)

       echo "prerm called with unknown argument \`$1'" >&2
       exit 1
       ;;

esac

Still the same??

jtx472@Northgate:~$
jtx472@Northgate:~$ sudo dpkg --remove --force-all avg75fld
(Reading database ... 131758 files and directories currently installed.)
Removing avg75fld ...
/var/lib/dpkg/info/avg75fld.prerm: 14: Syntax error: "else" unexpected
(expecting "then")
dpkg: error processing avg75fld (--remove):
 subprocess pre-removal script returned error exit status 2
Errors were encountered while processing:
 avg75fld
jtx472@Northgate:~$

On 3/28/07, Alan Pope <email address hidden> wrote:
>
> Your question #4392 on Ubuntu changed:
> https://answers.beta.launchpad.net/ubuntu/+ticket/4392
>
> Status: Open => Answered
>
> Alan Pope proposed the following answer:
> Almost.. there are two more further down...
>
> case "$1" in
>
> remove|deconfigure|upgrade)
>
> if which #invoke-rc.d >/dev/null 2>&1; then
> #invoke-rc.d avgd stop
> else
> #/etc/init.d/avgd stop
> fi
>
> cp /opt/grisoft/avg7/data/set_vers.cfg
> /opt/grisoft/avg7/data/upd_vers.cfg
>
> ;;
>
> failed-upgrade)
>
> # just try again
>
> if which invoke-rc.d >/dev/null 2>&1; then
> #invoke-rc.d avgd stop
> else
> #/etc/init.d/avgd stop
> fi
>
> cp /opt/grisoft/avg7/data/set_vers.cfg
> /opt/grisoft/avg7/data/upd_vers.cfg
>
> ;;
>
> *)
>
> _______________________________________________________________________
> If this answers your question, please go to the following page to let us
> know that it is solved:
>
> https://answers.beta.launchpad.net/ubuntu/+ticket/4392/+confirm?answer_id=21
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.beta.launchpad.net/ubuntu/+ticket/4392
>

Revision history for this message
Alan Pope 🍺🐧🐱 πŸ¦„ (popey) said :
#24

Aaaaargh :)

This isn't nice is it? :) Seems my changes have caused an error in that script.

Remove the lines

       else
           #/etc/init.d/avgd stop

completely. They appear twice. Then try again. This is file butchery but it should work.

Revision history for this message
Thomas (jtx472) said :
#25

#! /bin/sh
# prerm script for AVG for Linux

set -e

# possible arguments: remove, upgrade, deconfigure, failed-upgrade

case "$1" in

   remove|deconfigure|upgrade)

       if which #invoke-rc.d >/dev/null 2>&1; then
           #invoke-rc.d avgd stop

       fi

cp /opt/grisoft/avg7/data/set_vers.cfg /opt/grisoft/avg7/data/upd_vers.cfg

       ;;

   failed-upgrade)

       # just try again

       if which #invoke-rc.d >/dev/null 2>&1; then
           #invoke-rc.d avgd stop

       fi

cp /opt/grisoft/avg7/data/set_vers.cfg /opt/grisoft/avg7/data/upd_vers.cfg

       ;;

   *)

       echo "prerm called with unknown argument \`$1'" >&2
       exit 1
       ;;

esac

jtx472@Northgate:~$ sudo dpkg --remove --force-all avg75fld
(Reading database ... 131758 files and directories currently installed.)
Removing avg75fld ...
/var/lib/dpkg/info/avg75fld.prerm: 15: Syntax error: "fi" unexpected
(expecting "then")
dpkg: error processing avg75fld (--remove):
 subprocess pre-removal script returned error exit status 2
Errors were encountered while processing:
 avg75fld
jtx472@Northgate:~$

I don't know about you Alan but I'm becoming brain dead. I think I'll give
it a break for a while. Thanks much for all your efforts.

On 3/28/07, Alan Pope <email address hidden> wrote:
>
> Your question #4392 on Ubuntu changed:
> https://answers.beta.launchpad.net/ubuntu/+ticket/4392
>
> Status: Open => Answered
>
> Alan Pope proposed the following answer:
> Aaaaargh :)
>
> This isn't nice is it? :) Seems my changes have caused an error in that
> script.
>
> Remove the lines
>
> else
> #/etc/init.d/avgd stop
>
> completely. They appear twice. Then try again. This is file butchery but
> it should work.
>
> _______________________________________________________________________
> If this answers your question, please go to the following page to let us
> know that it is solved:
>
> https://answers.beta.launchpad.net/ubuntu/+ticket/4392/+confirm?answer_id=23
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.beta.launchpad.net/ubuntu/+ticket/4392
>

Revision history for this message
Alan Pope 🍺🐧🐱 πŸ¦„ (popey) said :
#26

Hmm, add a line after the

           #invoke-rc.d avgd stop

and before the

          fi

saying something like..

          echo "stopping"

Revision history for this message
Best Thomas (jtx472) said :
#27

I got tired of messin' with it. I just uninstalled Ubuntu and re-installed. I already have most everything as was before AVG. Thanks very much for all your efforts. And because of your efforts, even though we never did find a solution, I did learn quite a few things about Ubuntu in the process. So your time was not wasted. And it was kinda fun tryin' to figure it out.

Revision history for this message
JT (spikyjt) said :
#28

Just in case anyone else stumbles across this and wants to sort it out without going to the drastic lengths of re-installing, they were on the right track.
I commented all lines beginning with invoke-rc.d or /etc/init.d/avgd and added a line after as echo stopping. This did the trick. My advice is don't bother with avg on linux. It maybe good (relatively) on windows, but its crap on linux. clamav is the way forward IMHO. if you even need an anti virus of course.
I'd just like to say well done to Alan Pope for patience and perseverance. And well done to Thomas for sticking with it and learning. There's nothing like a nasty config problem to get your teeth in to linux :-)

Revision history for this message
Thomas (jtx472) said :
#29

Thanks for the info JT. Thomas

On 4/29/07, JT <email address hidden> wrote:
>
> Your question #4392 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/4392
>
> JT posted a new comment:
> Just in case anyone else stumbles across this and wants to sort it out
> without going to the drastic lengths of re-installing, they were on the
> right track.
> I commented all lines beginning with invoke-rc.d or /etc/init.d/avgd and
> added a line after as echo stopping. This did the trick. My advice is don't
> bother with avg on linux. It maybe good (relatively) on windows, but its
> crap on linux. clamav is the way forward IMHO. if you even need an anti
> virus of course.
> I'd just like to say well done to Alan Pope for patience and perseverance.
> And well done to Thomas for sticking with it and learning. There's nothing
> like a nasty config problem to get your teeth in to linux :-)
>

Revision history for this message
Mike P (mike-parfitt) said :
#30

Thank you guys for working through this. I had exactly the same issue and have just come across the posts. I commented out the invoke.... lines, the /etc.....lines. I also needed to comment out the fi command and added the the echo stopping command as stated in the previous posts. It all worked fine.
Thanks again for the help Alan and JT. Like Thomas I am new to Linux. I find some parts ofthe operating system absolutely fantastic (the quality of most of the software is great), while some parts (like drivers or lack thereof) painful. I am learning to love it though!!!!!
:-)

Revision history for this message
Dincer Celik (dincercelik) said :
#31

Just edit the file /etc/init.d/avgd and replace exit $? with exit 0 at the and of the file.

roadboy@bozhane:~$ sudo apt-get --purge autoremove avg75fld
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  avg75fld*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 118297 files and directories currently installed.)
Removing avg75fld ...
 * Stopping avgdkill: 246: Illegal number: -
( not running)
 * [fail]
Uninstalling 'avgd' service initscripts...
Unregistering 'avgd' service ...
 Removing any system startup links for /etc/init.d/avgd ...
   /etc/rc0.d/K20avgd
   /etc/rc1.d/K20avgd
   /etc/rc2.d/S20avgd
   /etc/rc3.d/S20avgd
   /etc/rc4.d/S20avgd
   /etc/rc5.d/S20avgd
   /etc/rc6.d/K20avgd
Purging configuration files for avg75fld ...
dpkg - warning: while removing avg75fld, directory `/opt/grisoft/avggui/config' not empty so not removed.
dpkg - warning: while removing avg75fld, directory `/opt/grisoft/avggui/prog' not empty so not removed.
dpkg - warning: while removing avg75fld, directory `/opt/grisoft/avggui' not empty so not removed.
dpkg - warning: while removing avg75fld, directory `/opt/grisoft/avg7/data' not empty so not removed.
dpkg - warning: while removing avg75fld, directory `/opt/grisoft/avg7/var/update/backup' not empty so not removed.
dpkg - warning: while removing avg75fld, directory `/opt/grisoft/avg7/var/update/download' not empty so not removed.
dpkg - warning: while removing avg75fld, directory `/opt/grisoft/avg7/var/update/log' not empty so not removed.
dpkg - warning: while removing avg75fld, directory `/opt/grisoft/avg7/var/update' not empty so not removed.
dpkg - warning: while removing avg75fld, directory `/opt/grisoft/avg7/var' not empty so not removed.
dpkg - warning: while removing avg75fld, directory `/opt/grisoft/avg7' not empty so not removed.
dpkg - warning: while removing avg75fld, directory `/opt/grisoft' not empty so not removed.
dpkg - warning: while removing avg75fld, directory `/opt' not empty so not removed.

Revision history for this message
drden (drden2000) said :
#32

Oh my god,
How am I to do this when I have no idea what the heck your talking about?

Hello, Im new to Ubuntu and Linux in general.
I know XP but not this OS.
I installed AVG for the same reason, i used it on Windows and it worked good but now I cannot update it.
I guess I had to be logged in as root even though I installed it with sudo?

I used the install package .deb and it automatically came up with "Synaptic Package installer"
As far as I can tell everything worked properly but now I get the "I don't have permission to get update" error message

Is there an easy way to get rid of this AVG for beginners?
Like an uninstall with the Synaptic Package installer? Please say yes?
AVG I assume does not care about this issue since it still has nothing about it on the site where I got the download.
It seems that they could have said "install as ROOT! or something. Point is: they don't support this version so they don't care.
I think I will not upgrade my AVG for windows next time... What do u think about that AVG?

If uninstalling and re-installing Ubuntu is easiest then I will do it. God knows, I installed and re-installed windows so many times trying
to get it working again that I have experience in that at least. That is why I went to Ubuntu in the first place.

If anyone can help me let me know before I remove Ubuntu!

Revision history for this message
Phill Whiteside (phillw) said :
#33

With Many thanks to all above.

With the new version of AVG, I had to alter steps a little bit ... Below please find a set of instructions that should apply to 7.5 and 8.0

Removing AVG

Firstly, lets find out which version you have ...

~$ dpkg-query -l '*avg*'

You'll get something along the lines of....

un avg71fld <none> (no description available)
ii avg75fld 7.5.45_a0973 Free edition of antivirus solution with GUI.
un avggui <none> (no description available)
un avglinux <none> (no description available)
un wmavgload <none> (no description available)

or

un avg71 <none> (no description available)
un avg75 <none> (no description available)
ii avg85flx 8.5.287 AVG Anti-Virus for Linux
un avglinux <none> (no description available)
un wmavgload <none> (no description available)

the bit we're after is the one beginning ii

now edit the file /etc/init.d/avgd and replace exit $? with exit 0 at the and of the file.

e.g.

~$ sudo gedit /etc/init.d/avgd

finally ...

~$ sudo apt-get --purge autoremove avg75fld

OR

~$ sudo apt-get --purge autoremove avg85flx

(Or whatever is reported after ii above)

For version 7.5 you should get something like this

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  avg75fld*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 118297 files and directories currently installed.)
Removing avg75fld ...
 * Stopping avgdkill: 246: Illegal number: -
( not running)
 * [fail]
Uninstalling 'avgd' service initscripts...
Unregistering 'avgd' service ...
 Removing any system startup links for /etc/init.d/avgd ...
   /etc/rc0.d/K20avgd
   /etc/rc1.d/K20avgd
   /etc/rc2.d/S20avgd
   /etc/rc3.d/S20avgd
   /etc/rc4.d/S20avgd
   /etc/rc5.d/S20avgd
   /etc/rc6.d/K20avgd
Purging configuration files for avg75fld ...
dpkg - warning: while removing avg75fld, directory `/opt/grisoft/avggui/config' not empty so not removed.
dpkg - warning: while removing avg75fld, directory `/opt/grisoft/avggui/prog' not empty so not removed.
dpkg - warning: while removing avg75fld, directory `/opt/grisoft/avggui' not empty so not removed.
dpkg - warning: while removing avg75fld, directory `/opt/grisoft/avg7/data' not empty so not removed.
dpkg - warning: while removing avg75fld, directory `/opt/grisoft/avg7/var/update/backup' not empty so not removed.
dpkg - warning: while removing avg75fld, directory `/opt/grisoft/avg7/var/update/download' not empty so not removed.
dpkg - warning: while removing avg75fld, directory `/opt/grisoft/avg7/var/update/log' not empty so not removed.
dpkg - warning: while removing avg75fld, directory `/opt/grisoft/avg7/var/update' not empty so not removed.
dpkg - warning: while removing avg75fld, directory `/opt/grisoft/avg7/var' not empty so not removed.
dpkg - warning: while removing avg75fld, directory `/opt/grisoft/avg7' not empty so not removed.
dpkg - warning: while removing avg75fld, directory `/opt/grisoft' not empty so not removed.
dpkg - warning: while removing avg75fld, directory `/opt' not empty so not removed.

for version 8, it should look something like this..

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED
  avg85flx*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 101MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 191786 files and directories currently installed.)
Removing avg85flx ...
 * Stopping avgd | [ ok ]
Uninstalling 'avgd' service initscripts...
Unregistering 'avgd' service ...
 Removing any system startup links for /etc/init.d/avgd ...
   /etc/rc0.d/K20avgd
   /etc/rc1.d/K20avgd
   /etc/rc2.d/S20avgd
   /etc/rc3.d/S20avgd
   /etc/rc4.d/S20avgd
   /etc/rc5.d/S20avgd
   /etc/rc6.d/K20avgd
Purging configuration files for avg85flx ...
Processing triggers for man-db ...

Now, the original article this is based on seemed to point to you still having some remnants of avg left in /opt with version 7.5 -- so, let's have a quick look

~$ cd /opt
~$ ls

if you see either an entry for either grisoft or avg - you need to remove them manually

~$ sudo rm -r grisoft

OR

~$ sudo rm -r avg

PLEASE BE CAREFUL sudo rm -r is EXTREMELY powerful - and you get no 2nd chance. If you are a little unsure - leave the files where they are until you are SURE you are happy with what you are typing.

Regards,

Phill.

Revision history for this message
martin suchanek (martin-suc) said :
#34

thank you, helped me as well.

Revision history for this message
John0278 (jjg6908) said :
#35

TY Popey! Post #13

I am running a Web/Mail Server on Ubuntu 14.04.1LTS on a low end PC - 2.8GHz P4 HT 1.2GB RAM 80GB HDD.

I had everything setup and ready to go and then I realized I needed anti-virus so I installed AVG 2013 FLX deb. Before the install of AVG I was using less than 300 MB or RAM. After the install I was over 800MB.

I had to simply rip it out using:

sudo dpkg --remove --force -all avg2013flx

Success! TY.