Installed Avast antivirus on Ubuntu, well actually Kubuntu 64-bit, via a deb package from the Avast website: avast4workstation_1.3.0-2_i386.deb.
For some reason the wrapper-script.sh file couldn’t locate the binaries and was giving an error at line 178 like so:
/usr/bin/avastgui: 178: /usr/lib/avast4workstation/bin/avastgui: not found
Turns out that all I needed to do was install ia32-libs, which can be done with
sudo apt-get install ia32-libs
at the command line, although I used aptitude.
The app can now be run from the command line or via the K-menu / Krunner by executing “avast” or “avastgui”.
You may also need to alter a system setting like so:
sudo sysctl -w kernel.shmmax=128000000
Which can be made permanent by either adding to the wrapper-script.sh script or by adding to a startup script like so:
echo kernel.shmmax = 128000000|sudo tee -a /etc/sysctl.conf
Once I’d installed ia32-libs and the associated dependencies and set this system setting I was able to update avast, which took several minutes without feedback, and run the application both at the command line and from the gui.
Happy hacking!
Stumbled accross your page while searching on Google. Thanks for the help. I know that this post is over a year old, but I wanted to share that this method also works on Ubuntu 13.04 and Mint 15 x64. I really appreciated the extra kernel.shmmax fix too. Thanks.
To give a little bit of context to this issue; this package contains runtime libraries for the ia32/i386 architecture, configured for use on an amd64 or ia64 Debian system running a 64-bit kernel. The kernel.shmmax parameter is shared memory that you’re going to allow the 32-bit program to run in. The minimum recommended it 1GB. For Windows users switching to Linux who read this, think of it as Windows on Windows (WoW) environment for older programs.
Installing the ia32-libs package is also beneficial for other 32-bit programs trying to run on 64-bit architecture! Woot!
Two birds, one stone.
Thanks again.
Great, glad it helped you & thanks for the extra info on shmmax.
Thanks for confirming that this method works for Kubuntu, not just straight Ubunutu!