1

I am trying to install clamav in kali for removal of viruses in PC and USB.and I did:

root@kali:~# apt-get install clamav
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package clamav is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'clamav' has no installation candidate

Any Help??

  • Have you run apt-get update before that? – Svetlin Tonchev Nov 24 '15 at 8:13
  • yes, i have tried it again after reading ur comment @Svetlin_Tonchev – Aevi Nov 24 '15 at 8:18
  • I have no problem installing the package. Maybe problem in sources.lists? – Svetlin Tonchev Nov 24 '15 at 8:37
  • Check my another [thread ](unix.stackexchange.com/questions/245088/… the problem of this installation. – Aevi Nov 24 '15 at 8:57
3

Check your repos: http://docs.kali.org/general-use/kali-linux-sources-list-repositories

Update the local cache using: apt-get update (as Svetlin Tonchev said.)

try again with: apt-get install clamav

Optional: Search for it using: apt-cache search clamav

  • I noticed that usually on debian based you need to also explicitly install freshclam package, which is the tool that updates the virus database. So the command would become apt-get install clamav clamav-freshclam, because it does not automatically propose it – lese Nov 24 '15 at 8:43
  • Thanks! I remember. I installed it once over a year ago. there i had to install freshclam too. – Spanguel Nov 24 '15 at 8:49
  • What is installation candidate for installing ClamAV @lese – Aevi Nov 24 '15 at 8:54
  • I don't remember honestly, I just remember each time I installed clamav on Debian based freshclam was missing – lese Nov 24 '15 at 8:59
  • @Aevo did you check you have the required repository configured in your /etc/apt/sources.list as Spanguel suggested? and if you do, did you apt-get update before retry to install clamav clamav-freshclam ? – lese Nov 24 '15 at 9:01
1

Official guide from clamav site:

ClamAV can be found in the apt repository. Run this command to install ClamAV:

apt-get install clamav

If you need clamd, you may also want to run:

apt-get install clamav-daemon

For the stable release, the packages are updated via the StableUpdates mechanism.

If you require support for scanning compressed RAR files you first need to enable the non-free archive and then you can install the RAR-plugin using:

apt-get install libclamunrar6

To test the installation, you can try to scan the test files in the clamav-testfiles package.

The package maintainers can be reached at clamav-devel at lists.alith.debian.org. More info at tracker.debian.org/pkg/clamav.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.