Loads of trouble trying to ./configure clamav on ubuntu

Soldato
Joined
4 Nov 2003
Posts
5,738
Location
Edinburgh
So i've finally got into all this linux lark, been at this most of the day and still can't get the blumin thing to configure. I'm at my wits end with it right now, i'm not on the linux box anymore but when i boot it back up again in a bit i'll edit this and paste the config.log into here so you can tell me what i'm doing wrong.

Basically the error is saying i dont have zlib or zlib-devel or something like that. I've googled till i drop but even apt-get installing i get a cannot lock some place error. I;ve installed the build essential and something else but i still can't get this to compile. Arg! :mad:

Will report back later when i can be bothered with that dodgy operating system :p (no its not the user ;)).

Just needed to vent, cheers!
 

Una

Una

Associate
Joined
26 Nov 2004
Posts
2,471
Location
Reading / Lake District
I take it your using breezy, (Im on dapper atm but its likely to be in a package repository if you dont feel like building it from source).

To reconfigure it once its installed as a package run this command.
$ sudo dpkg-reconfigure clamav-base

The cannot open lock error is when you are either not running apt as root, or there already is a package manager or something locking it.

As for zlib-devel if you install from a package it should handle all dependancies for you. Otherwise your going to have to compile and install them by hand as well.
 
Soldato
OP
Joined
4 Nov 2003
Posts
5,738
Location
Edinburgh
Right i'll break this down as most of that went right voer my head, this is basically my first little go at installing a real linux distro. Previously i've just used IPcop, Clarkconnect and some other hardware firewall linux distro i can't remember the anme of.
Una said:
I take it your using breezy, (Im on dapper atm but its likely to be in a package repository if you dont feel like building it from source).
I am using breezy indeedy.
Una said:
To reconfigure it once its installed as a package run this command.
$ sudo dpkg-reconfigure clamav-base
Totally lost me, reconfigure what, to run as a package, huh? :D:confused:
Una said:
The cannot open lock error is when you are either not running apt as root, or there already is a package manager or something locking it.
Your probably right on that one, by this time i was getting a little lost and frustrated repeating myself i may have forgot to run as root.
Una said:
As for zlib-devel if you install from a package it should handle all dependancies for you. Otherwise your going to have to compile and install them by hand as well.
Right this sentence is related to the the reconfigure bit up there, but again, your way over my head.

On a side not, yes i am totally rubbish, and its really annoying that i can't do this by myself, i hate things getting the better of me :mad:! But i've given up searching on my own trying to do this!!


What i plan to do is set up all this:
Clamav
Shorewall
Squid
Squidguard
Snort
Portsentry
Dansguardian
Webmin
logwatch
P3scan
Spamassasin.
SSH

Eventually use it as a hardware firewall, virus scanner spam filter etc for my whole home network. But i was stumped by the first on that list, go me :cool:.

Kinda off topic are there any books i can buy, or magazines that are good for people totally new to this? Starter kits?
 

Una

Una

Associate
Joined
26 Nov 2004
Posts
2,471
Location
Reading / Lake District
Well what im not sure is how you are trying to install clamav. Are you trying to install it using apt-get or building from source?

irc.freenode.net / #ubuntu and numerous other irc chan's are pretty useful once you master the basics. You might find people will tell you to RTFM, but usualy there's a few people who will help noobs :)

www.tldp.org and www.ubuntuforums.org have lots of howto documents on there.
 
Soldato
OP
Joined
4 Nov 2003
Posts
5,738
Location
Edinburgh
Thats the thing you see, i don't like asking for help on such basic things because i hate it when other people do so within areas i'm actually competent. RTFM is probably pretty true here ;)

I didn't realise i could use the debian stuff, *slaps self* since its based on debian i should have thought ahead. I'll have a shot later, and yes i was trying to compile (failing miserably none-the-less :D)
 
Associate
Joined
16 May 2005
Posts
380
Location
Glasgow
What can be confusing is that to run pre-made packages, you need the standard libs but if your compiling then you'll need the xxx-dev packages aswell. Yep Ubuntu and Debian can use the same packages for 3rd party apps, just don't mix the main base packages (leads to major dependency issues since both use different version of lib files).
 
Soldato
OP
Joined
4 Nov 2003
Posts
5,738
Location
Edinburgh
Your flying way over my head again with that dependancies talk :(.

I've just had a bash at the debian binaries (http://www.clamav.net/binary.html), managed to load gedit up as root, edited sources.list added:
from the terminal used:
apt-cache search clamav
it returned:
W: Couldn't stat source package list http://ftp.uk.debian.org sarge/volatile/main Packages (/var/lib/apt/lists/ ftp.uk.debian.org_debian-volatile_dists_sarge_volatile_main_binary-i386_Packages) - stat (2 No such file or dir ectory)
Now i'm lost again.
 
Soldato
OP
Joined
4 Nov 2003
Posts
5,738
Location
Edinburgh
I'm getting closer, heres the latest from the terminal:
alex@DIYRouter:~$ sudo apt-get update
Get:1 http://ftp.uk.debian.org sarge/volatile Release.gpg [189B]
Hit http://ftp.uk.debian.org sarge/volatile Release
Ign http://ftp.uk.debian.org sarge/volatile Release
Hit http://ftp.uk.debian.org sarge/volatile/main Packages
Fetched 189B in 7s (25B/s)
Reading package lists... Done
W: GPG error: http://ftp.uk.debian.org sarge/volatile Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7EF7FFF4276981F4
W: You may want to run apt-get update to correct these problems
alex@DIYRouter:~$ sudo atp-get install clamav
sudo: atp-get: command not found
alex@DIYRouter:~$ sudo apt-get install clamav
Reading package lists... Done
Building dependency tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
clamav: Depends: libclamav1 (>= 0.88) but it is not going to be installed
Depends: libgmp3 but it is not installable
E: Broken packages

Why cant it install that package?
It's late i'm giving up, i'll check this thread when i get back from work about 6:30 tomorrow. Hopefully someone can hold my hand every step of the way :p:D.
 
Last edited:
Soldato
Joined
18 Oct 2002
Posts
7,175
Location
Sussex
apt-get remove <packagename>

or dpkg -u <packagename>

you can also try running apt-get install -f (i think)

this seems to tidy up any broken APT sessions
 
Associate
Joined
16 May 2005
Posts
380
Location
Glasgow
First remove ALL references to Debian in the sources.list file, that will cripple any Ubuntu install. Very very bad idea since apt will get very confused about package versions and you probably won't be able to install anything (as is the case). Make sure you only have Ubuntu repositories in your sources.list file. Once you've done that, make sure you reload the package list by typing sudo apt-get update .

According to Ubuntu package db, clamAV is in the 'universe' repository (v0.87) - http://packages.ubuntu.com/breezy/utils/clamav. However to enable the universe repository, you'll need to edit sources.list (make sure the following line is in your sources.list:

'deb http://gb.archive.ubuntu.com/ubuntu/ breezy main restricted universe' and 'deb http://gb.archive.ubuntu.com/ubuntu/ breezy-updates main restricted universe' (both without the single quotes).

So from the command line it should be a case of: sudo apt-get install clamav and enter Y when it mentions about dependencies (install the package and it's dependencies).

I think whats confusing you is the fact that Debian and Ubuntu use the same package system and that Ubuntu is based on Debian (unstable repos iirc) so when it comes to using packages from one in another, dependency hell starts. A good rule of thumb is if it's in Debian stable, then Ubuntu is likely to have it's own package for it.
 
Last edited:
Soldato
OP
Joined
4 Nov 2003
Posts
5,738
Location
Edinburgh
Cheers dunky, i'll have a mash at all that in a bit then, looks like i may have fubared stuff up with the debain stuff no doubt. I didn't thin i was a good idea doing that, thought id read somewhere it could cause trouble.
 
Back
Top Bottom