TechSpot

Avast error in Ubuntu 9.10

By ravisunny2
May 21, 2010
  1. The Avast! for Linux installation went through without any error (in Ubuntu 9.10), and Avast appeared in the Applications menu.

    But, when I ran Avast, I got the following error message.

    Any help or suggestions would be appreciated.
     
  2. Leeky

    Leeky TS Evangelist Posts: 4,378   +99

    Is this error being caused when you try to start it from the program menu?
     
  3. ravisunny2

    ravisunny2 TS Ambassador Topic Starter Posts: 2,062   +8

    Yes, and also from the command prompt in a terminal.
     
  4. Leeky

    Leeky TS Evangelist Posts: 4,378   +99

    What command are you issuing to start avast?

    Were you able to start the application so you could register it before it died?

    I just start mine with the command:

    Code:
    avastgui
    or
    Code:
    avast
    from terminal.

    Its possible something hasnt been pulled in as a dependancy when it installed. It would be worth a re-installation to ensure this is not the cause.

    EDIT: I'm now getting the same problem, after having completed an update for definitions. I'll have a more detailed look shortly and let you know the outcome.

    I have a feeling one of the files in ~/home/*user*/.avast is playing up...
     
  5. Leeky

    Leeky TS Evangelist Posts: 4,378   +99

    A nice and simple fix:

    Open terminal, and type the following as root (sudo)

    Code:
    sysctl -w kernel.shmmax=100000000
    No credit to me, the information was found here via google: http://forum.avast.com/index.php?topic=57764.msg486924#msg486924

    Mines now working. :D

    EDIT:

    Not after a reboot. I'll explain how to do it properly shortly. Bear with me while I finish figuring it out, and then explain please. lol.


    The Solution for Ubuntu 9.10/10.04:

    fire up terminal.

    type the following:

    Code:
    cd /etc/init.d/
    sudo gedit rcS
    Enter your password, and then gedit will open the file.

    Below the lines starting with # add the following comment:

    Code:
    sysctl -w kernel.shmmax=100000000
    As an example, my rcS file now reads the following information.

    Code:
    #! /bin/sh
    #
    # rcS
    #
    # Call all S??* scripts in /etc/rcS.d/ in numerical/alphabetical order
    #
    
    sysctl -w kernel.shmmax=100000000
    
    exec /etc/init.d/rc S
    Save the file open in gedit, and then close the window.

    Restart your computer and log back into your user account.

    fire up terminal again:

    Code:
    avastgui
    It should now be working. :)
     
  6. ravisunny2

    ravisunny2 TS Ambassador Topic Starter Posts: 2,062   +8

    Thanks, Leeky.

    sysctl -w kernel.shmmax=124000000, fixed the problem for me (fingers crossed). :)
     
Topic Status:
Not open for further replies.


Add New Comment

TechSpot Members
Login or sign up for free,
it takes about 30 seconds.
You may also...


Get complete access to the TechSpot community. Join thousands of technology enthusiasts that contribute and share knowledge in our forum. Get a private inbox, upload your own photo gallery and more.