update-rc.d: error: unable to read /etc/init.d/clamav-freshclam

Ralf Mardorf kde.lists at yahoo.com
Mon Jan 15 12:14:20 UTC 2024


On Mon, 2024-01-15 at 10:48 +0100, Mario Marietto wrote:
> Point here is that I never installed clamav.

Hi,

even if clamav should be a dependency of another package, so that it
wasn't directly installed by you, by running "install clamav", you were
the one who installed it, maybe by running an "upgrade".
If an upgrade does list 1000 package, then you should check each of the
1000 packages. If you don't know what libfoo is good for, you need to
learn what it is good for. This doesn't mean you need to understand each
detail about each package, you just need to get an rough idea about what
it is good for.

If I would read that something on my machine tries to install a
dependency for another package, that is described as "anti-virus utility
for Unix - command-line interface", which for my taste translates to
"snakeoil for Unix - command-line interface", I would answer "no" (not
"yes") when the upgrade does ask, if it should install the packages.

However try running

sudo apt --purge remove clamav clamav-freshclam
sudo apt update
sudo apt full-upgrade
sudo apt autoremove

If you really never explicitly installed it, the above commands might
not allow to uninstall clamav and to fix your install. If so, you might
need to purge the package/s that depend/s on clamav, too.

Regards,
Ralf



More information about the ubuntu-users mailing list