clamav upgrade bug stops other upgrades prcessing correctly
A recent (reported yesterday) bug in the CLAMAV upgrade process seems to have made it impossible to upgrade any part of my system.
One thing that might be relevant - once my upgrade to 16:04 was completed the CLAMAV Daemon and Freshclam Daemon would not be started, and would no longer longer run if run by command. However this did not seem to affect the operation of CLAMAV malware system either as a email malware detector or as a standard file malware checker.
The errors coming from my startup script (reproduced below) would indicate that the CLAMAV upgrade process expects these daemons to be running, and the errors seem to start when the process cannot detect/stop the daemons.
I have reported / confirmed the bug.
I would appreciate any advice on this issue.
Thanks
Alan
My System:
/======
Fri Sep 02 10:39 /home/alan => hostnamectl status
Static hostname: DALEK-UB
Icon name: computer-laptop
Chassis: laptop
Machine ID: b4fa9fa1ef2f208
Boot ID: 7e8a0d8c22c04c4
Operating System: Ubuntu 16.04.1 LTS
Kernel: Linux 4.4.0-36-generic
Architecture: x86-64
//=====
The update script I run every morning:
//=====
## Bash shell
## APDW 5/9/2015 startup
# run updates and cleanup
echo
echo Startup script running
echo apt-get update running
echo
apt-get update
echo
echo apt-get update complete
echo
echo apt-get dist-upgrade running
echo
apt-get dist-upgrade
echo
echo apt-get dist-upgrade complete
echo
echo apt-get upgrade running
echo
apt-get upgrade
echo
echo apt-get upgrade complete
echo
echo apt-get autoclean running
echo
apt-get autoclean
echo
echo apt-get autoclean complete
echo
echo apt-get autoremove running
echo
apt-get autoremove
echo
echo autoremove complete
echo
# stop daemons including nessus daemon, refresh ClamAV sigs and restart Clamav daemons
echo Refresh ClamAV sigs and restart the deamon
echo
echo stopping daemons
echo
# stop nessus it starts automatically
service nessusd stop
#service clamav-daemon stop no longer needed clamav daemon doesnt run under 16.04
#service freshclam-daemon stop no longer needed daemon doesnt run under 16.04
service clamav-freshclam stop
echo
echo daemons stopped
echo
echo running freshclam
echo
freshclam
echo
echo starting daemon
service clamav-freshclam start
#service clamav-daemon start no longer needed
#service freshclam-daemon start no longer needed
echo
echo Done
echo
echo starting unclutter
unclutter &
echo
echo All Done
echo
//=====
Terminal output from the script
//=====
Fri Sep 02 10:25 /home/alan => sudo ./startup
[sudo] password for alan:
Startup script running
apt-get update running
Ign:1 http://
Ign:2 http://
Ign:3 http://
Get:4 http://
Ign:5 http://
Hit:6 http://
Ign:7 http://
Hit:8 http://
Ign:9 http://
Ign:10 http://
Ign:11 http://
Ign:12 http://
Ign:3 http://
Ign:5 http://
Ign:7 http://
Ign:9 http://
Ign:10 http://
Ign:11 http://
Ign:12 http://
Ign:3 http://
Ign:5 http://
Ign:7 http://
Ign:9 http://
Ign:10 http://
Ign:11 http://
Ign:12 http://
Ign:3 http://
Ign:5 http://
Ign:7 http://
Ign:9 http://
Ign:10 http://
Ign:11 http://
Ign:12 http://
Ign:3 http://
Ign:5 http://
Ign:7 http://
Ign:9 http://
Ign:10 http://
Ign:11 http://
Ign:12 http://
Err:3 http://
404 Not Found
Ign:5 http://
Ign:7 http://
Ign:9 http://
Ign:10 http://
Ign:11 http://
Ign:12 http://
Fetched 94.5 kB in 1s (54.1 kB/s)
Reading package lists... Done
W: The repository 'http://
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://
E: Some index files failed to download. They have been ignored, or old ones used instead.
apt-get update complete
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 gnome-sudoku
2 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
1 not fully installed or removed.
Need to get 754 kB/949 kB of archives.
After this operation, 65.5 kB disk space will be freed.
Do you want to continue? [Y/n] y
Get:1 http://
Fetched 754 kB in 1s (609 kB/s)
Preconfiguring packages ...
(Reading database ... 356701 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
Preparing to unpack .../gnome-
Unpacking gnome-sudoku (1:3.18.4-0ubuntu2) over (1:3.18.2-1) ...
Processing triggers for libglib2.0-0:amd64 (2.48.1-
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for bamfdaemon (0.5.3~
Rebuilding /usr/share/
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
Processing triggers for man-db (2.7.5-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
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.
2 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 ... 356701 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
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.
2 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 ... 356701 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 Fri Sep 2 10:27:15 2016
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: 22171, sigs: 573036, f-level: 63, builder: neo)
bytecode.cld is up to date (version: 283, sigs: 53, f-level: 63, builder: neo)
starting daemon
Done
starting unclutter
All Done
Fri Sep 02 10:27 /home/alan =>
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Alan
- Solved:
- Last query:
- Last reply:
This question was reopened
- by Alan