I run a daily script to get updates and upgrades - the following terminal output describes the actions and errors arising
//=========================================================================
apt-get dist-upgrade running
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
clamav-daemon
1 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
23 not fully installed or removed.
Need to get 0 B/195 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
(Reading database ... 356607 files and directories currently installed.)
Preparing to unpack .../clamav-daemon_0.99+dfsg-1ubuntu1.2_amd64.deb ...
Failed to stop clamav-daemon.socket: Unit clamav-daemon.socket not loaded.
dpkg: warning: subprocess old pre-removal script returned error exit status 5
dpkg: trying script from the new package instead ...
Failed to stop clamav-daemon.socket: Unit clamav-daemon.socket not loaded.
dpkg: error processing archive /var/cache/apt/archives/clamav-daemon_0.99+dfsg-1ubuntu1.2_amd64.deb (--unpack):
subprocess new pre-removal script returned error exit status 5
insserv: script virtualbox: service vboxdrv already provided!
insserv: script virtualbox: service virtualbox already provided!
Failed to start clamav-daemon.service: Unit clamav-daemon.socket is not loaded properly: Invalid argument.
See system logs and 'systemctl status clamav-daemon.service' for details.
invoke-rc.d: initscript clamav-daemon, action "start" failed.
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/clamav-daemon_0.99+dfsg-1ubuntu1.2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
apt-get dist-upgrade complete
apt-get upgrade running
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
clamav-daemon
1 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
23 not fully installed or removed.
Need to get 0 B/195 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Preconfiguring packages ...
(Reading database ... 356607 files and directories currently installed.)
Preparing to unpack .../clamav-daemon_0.99+dfsg-1ubuntu1.2_amd64.deb ...
Failed to stop clamav-daemon.socket: Unit clamav-daemon.socket not loaded.
dpkg: warning: subprocess old pre-removal script returned error exit status 5
dpkg: trying script from the new package instead ...
Failed to stop clamav-daemon.socket: Unit clamav-daemon.socket not loaded.
dpkg: error processing archive /var/cache/apt/archives/clamav-daemon_0.99+dfsg-1ubuntu1.2_amd64.deb (--unpack):
subprocess new pre-removal script returned error exit status 5
insserv: script virtualbox: service vboxdrv already provided!
insserv: script virtualbox: service virtualbox already provided!
Failed to start clamav-daemon.service: Unit clamav-daemon.socket is not loaded properly: Invalid argument.
See system logs and 'systemctl status clamav-daemon.service' for details.
invoke-rc.d: initscript clamav-daemon, action "start" failed.
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/clamav-daemon_0.99+dfsg-1ubuntu1.2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
apt-get upgrade complete
apt-get autoclean running
Reading package lists... Done
Building dependency tree
Reading state information... Done
apt-get autoclean complete
apt-get autoremove running
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
clamav-daemon
Suggested packages:
clamav-docs daemon
The following packages will be upgraded:
clamav-daemon
1 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
23 not fully installed or removed.
Need to get 0 B/195 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
(Reading database ... 356607 files and directories currently installed.)
Preparing to unpack .../clamav-daemon_0.99+dfsg-1ubuntu1.2_amd64.deb ...
Failed to stop clamav-daemon.socket: Unit clamav-daemon.socket not loaded.
dpkg: warning: subprocess old pre-removal script returned error exit status 5
dpkg: trying script from the new package instead ...
Failed to stop clamav-daemon.socket: Unit clamav-daemon.socket not loaded.
dpkg: error processing archive /var/cache/apt/archives/clamav-daemon_0.99+dfsg-1ubuntu1.2_amd64.deb (--unpack):
subprocess new pre-removal script returned error exit status 5
insserv: script virtualbox: service vboxdrv already provided!
insserv: script virtualbox: service virtualbox already provided!
Failed to start clamav-daemon.service: Unit clamav-daemon.socket is not loaded properly: Invalid argument.
See system logs and 'systemctl status clamav-daemon.service' for details.
invoke-rc.d: initscript clamav-daemon, action "start" failed.
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/clamav-daemon_0.99+dfsg-1ubuntu1.2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
autoremove complete
Refresh ClamAV sigs and restart the deamon
stopping daemons
daemons stopped
running freshclam
ClamAV update process started at Thu Sep 1 09:49:12 2016
WARNING: Your ClamAV installation is OUTDATED!
WARNING: Local version: 0.99 Recommended version: 0.99.2
DON'T PANIC! Read http://www.clamav.net/support/faq
main.cvd is up to date (version: 57, sigs: 4218790, f-level: 60, builder: amishhammer)
daily.cld is up to date (version: 22165, sigs: 570750, f-level: 63, builder: neo)
bytecode.cld is up to date (version: 283, sigs: 53, f-level: 63, builder: neo)
starting daemon
Done
//============================================================================
Thu Sep 01 09:51 /home/alan => systemctl status clamav-daemon.service
● clamav-daemon.service - Clam AntiVirus userspace daemon
Loaded: loaded (/lib/systemd/system/clamav-daemon.service; enabled; vendor pr
Active: active (running) since Thu 2016-09-01 08:48:44 BST; 1h 3min ago
Docs: man:clamd(8) man:clamd.conf(5) http://www.clamav.net/lang/en/doc/
Main PID: 3032 (clamd)
CGroup: /system.slice/clamav-daemon.service
└─3032 /usr/sbin/clamd --foreground=true
Sep 01 08:49:14 DALEK-UB clamd[3032]: Archive support enabled.
Sep 01 08:49:14 DALEK-UB clamd[3032]: Algorithmic detection enabled.
Sep 01 08:49:14 DALEK-UB clamd[3032]: Portable Executable support enabled.
Sep 01 08:49:14 DALEK-UB clamd[3032]: ELF support enabled.
Sep 01 08:49:14 DALEK-UB clamd[3032]: Mail files support enabled.
Sep 01 08:49:14 DALEK-UB clamd[3032]: OLE2 support enabled.
Sep 01 08:49:14 DALEK-UB clamd[3032]: PDF support enabled.
Sep 01 08:49:14 DALEK-UB clamd[3032]: SWF support enabled.
Sep 01 08:49:14 DALEK-UB clamd[3032]: HTML support enabled.
Sep 01 08:49:14 DALEK-UB clamd[3032]: Self checking every 3600 seconds.
I run a daily script to get updates and upgrades - the following terminal output describes the actions and errors arising ======= ======= ======= ======= ======= ======= ======= ======= ======= =====
//=====
apt-get dist-upgrade running
Reading package lists... Done daemon_ 0.99+dfsg- 1ubuntu1. 2_amd64. deb ... daemon. socket: Unit clamav- daemon. socket not loaded. daemon. socket: Unit clamav- daemon. socket not loaded. apt/archives/ clamav- daemon_ 0.99+dfsg- 1ubuntu1. 2_amd64. deb (--unpack): daemon. service: Unit clamav- daemon. socket is not loaded properly: Invalid argument. daemon. service' for details. apt/archives/ clamav- daemon_ 0.99+dfsg- 1ubuntu1. 2_amd64. deb
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
clamav-daemon
1 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
23 not fully installed or removed.
Need to get 0 B/195 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
(Reading database ... 356607 files and directories currently installed.)
Preparing to unpack .../clamav-
Failed to stop clamav-
dpkg: warning: subprocess old pre-removal script returned error exit status 5
dpkg: trying script from the new package instead ...
Failed to stop clamav-
dpkg: error processing archive /var/cache/
subprocess new pre-removal script returned error exit status 5
insserv: script virtualbox: service vboxdrv already provided!
insserv: script virtualbox: service virtualbox already provided!
Failed to start clamav-
See system logs and 'systemctl status clamav-
invoke-rc.d: initscript clamav-daemon, action "start" failed.
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)
apt-get dist-upgrade complete
apt-get upgrade running
Reading package lists... Done daemon_ 0.99+dfsg- 1ubuntu1. 2_amd64. deb ... daemon. socket: Unit clamav- daemon. socket not loaded. daemon. socket: Unit clamav- daemon. socket not loaded. apt/archives/ clamav- daemon_ 0.99+dfsg- 1ubuntu1. 2_amd64. deb (--unpack): daemon. service: Unit clamav- daemon. socket is not loaded properly: Invalid argument. daemon. service' for details. apt/archives/ clamav- daemon_ 0.99+dfsg- 1ubuntu1. 2_amd64. deb
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
clamav-daemon
1 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
23 not fully installed or removed.
Need to get 0 B/195 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Preconfiguring packages ...
(Reading database ... 356607 files and directories currently installed.)
Preparing to unpack .../clamav-
Failed to stop clamav-
dpkg: warning: subprocess old pre-removal script returned error exit status 5
dpkg: trying script from the new package instead ...
Failed to stop clamav-
dpkg: error processing archive /var/cache/
subprocess new pre-removal script returned error exit status 5
insserv: script virtualbox: service vboxdrv already provided!
insserv: script virtualbox: service virtualbox already provided!
Failed to start clamav-
See system logs and 'systemctl status clamav-
invoke-rc.d: initscript clamav-daemon, action "start" failed.
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)
apt-get upgrade complete
apt-get autoclean running
Reading package lists... Done
Building dependency tree
Reading state information... Done
apt-get autoclean complete
apt-get autoremove running
Reading package lists... Done daemon_ 0.99+dfsg- 1ubuntu1. 2_amd64. deb ... daemon. socket: Unit clamav- daemon. socket not loaded. daemon. socket: Unit clamav- daemon. socket not loaded. apt/archives/ clamav- daemon_ 0.99+dfsg- 1ubuntu1. 2_amd64. deb (--unpack): daemon. service: Unit clamav- daemon. socket is not loaded properly: Invalid argument. daemon. service' for details. apt/archives/ clamav- daemon_ 0.99+dfsg- 1ubuntu1. 2_amd64. deb
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
clamav-daemon
Suggested packages:
clamav-docs daemon
The following packages will be upgraded:
clamav-daemon
1 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
23 not fully installed or removed.
Need to get 0 B/195 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
(Reading database ... 356607 files and directories currently installed.)
Preparing to unpack .../clamav-
Failed to stop clamav-
dpkg: warning: subprocess old pre-removal script returned error exit status 5
dpkg: trying script from the new package instead ...
Failed to stop clamav-
dpkg: error processing archive /var/cache/
subprocess new pre-removal script returned error exit status 5
insserv: script virtualbox: service vboxdrv already provided!
insserv: script virtualbox: service virtualbox already provided!
Failed to start clamav-
See system logs and 'systemctl status clamav-
invoke-rc.d: initscript clamav-daemon, action "start" failed.
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)
autoremove complete
Refresh ClamAV sigs and restart the deamon
stopping daemons
daemons stopped
running freshclam
ClamAV update process started at Thu Sep 1 09:49:12 2016 www.clamav. net/support/ faq
WARNING: Your ClamAV installation is OUTDATED!
WARNING: Local version: 0.99 Recommended version: 0.99.2
DON'T PANIC! Read http://
main.cvd is up to date (version: 57, sigs: 4218790, f-level: 60, builder: amishhammer)
daily.cld is up to date (version: 22165, sigs: 570750, f-level: 63, builder: neo)
bytecode.cld is up to date (version: 283, sigs: 53, f-level: 63, builder: neo)
starting daemon
Done
//===== ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= = daemon. service daemon. service - Clam AntiVirus userspace daemon system/ clamav- daemon. service; enabled; vendor pr
man: clamd.conf( 5) www.clamav. net/lang/ en/doc/ slice/clamav- daemon. service
Thu Sep 01 09:51 /home/alan => systemctl status clamav-
● clamav-
Loaded: loaded (/lib/systemd/
Active: active (running) since Thu 2016-09-01 08:48:44 BST; 1h 3min ago
Docs: man:clamd(8)
http://
Main PID: 3032 (clamd)
CGroup: /system.
└─3032 /usr/sbin/clamd --foreground=true
Sep 01 08:49:14 DALEK-UB clamd[3032]: Archive support enabled.
Sep 01 08:49:14 DALEK-UB clamd[3032]: Algorithmic detection enabled.
Sep 01 08:49:14 DALEK-UB clamd[3032]: Portable Executable support enabled.
Sep 01 08:49:14 DALEK-UB clamd[3032]: ELF support enabled.
Sep 01 08:49:14 DALEK-UB clamd[3032]: Mail files support enabled.
Sep 01 08:49:14 DALEK-UB clamd[3032]: OLE2 support enabled.
Sep 01 08:49:14 DALEK-UB clamd[3032]: PDF support enabled.
Sep 01 08:49:14 DALEK-UB clamd[3032]: SWF support enabled.
Sep 01 08:49:14 DALEK-UB clamd[3032]: HTML support enabled.
Sep 01 08:49:14 DALEK-UB clamd[3032]: Self checking every 3600 seconds.