package clamav-base 0.99.2+dfsg-6 failed to install/upgrade: package is in a very bad inconsistent state; you should reinstall it before attempting a removal
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
clamav (Ubuntu) |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
Hi, my Ubuntu version is 17.04
cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
Chronology
1. A fresh install of Ubuntu was done approx. 1 month ago by a non-expert.
2. Trying to install Screaming frog I noticed installation stalled (download was OK)
3. Tested software centre by installing ClamAv and it also stalled.
4 Now I went down the checklist mentioned here https:/
5. It looked like the main issue was around the ca certificates which apparently were not at all installed.
6. Reran command[LANG=C;sudo apt-get -f install] and got output:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
ca-certificat
linux-
linux-
qtdeclarative
unity-webapps-qml
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 20 not upgraded.
4 not fully installed or removed.
Need to get 57.8 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://
Fetched 57.8 kB in 1s (48.3 kB/s)
debconf: DbDriver "config": /var/cache/
dpkg: dependency problems prevent configuration of clamav-freshclam:
clamav-freshclam depends on clamav-base (>= 0.99.2+dfsg-6); however:
Package clamav-base is not installed.
dpkg: error processing package clamav-freshclam (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of clamav:
clamav depends on clamav-freshclam (>= 0.99.2+dfsg) | clamav-data; however:
Package clamav-freshclam is not configured yet.
Package clamav-data is not installed.
Package clamav-freshclam which provides clamav-data is not configured yet.
No apport report written because the error message indicates its a followup error from a previous failure.
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of clamtk:
clamtk depends on clamav (>= 0.95); however:
Package clamav is not configured yet.
clamtk depends on clamav-freshclam (>= 0.95) | clamav-data; however:
Package clamav-freshclam is not configured yet.
Package clamav-data is not installed.
Package clamav-freshclam which provides clamav-data is not configured yet.
dpkg: error processing package clamtk (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
clamav-freshclam
clamav
clamtk
E: Sub-process /usr/bin/dpkg returned an error code (1)
7. Tried removing Clamav from software centre -stalled
8. Tried via terminal using command [sudo apt-get --purge remove clamav clamav-base clamav-daemon clamav-freshclam libclamav2] and got output
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'libclamav2' is not installed, so not removed
Package 'clamav-daemon' is not installed, so not removed
The following packages were automatically installed and are no longer required:
ca-certificat
libjson-perl libjson-xs-perl libllvm3.9 libmspack0 libtext-csv-perl
libtext-
linux-
linux-
qtdeclarative
unity-webapps-qml
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
clamav* clamav-base* clamav-freshclam* clamtk*
0 upgraded, 0 newly installed, 4 to remove and 20 not upgraded.
4 not fully installed or removed.
After this operation, 2,895 kB disk space will be freed.
Do you want to continue? [Y/n] y
debconf: DbDriver "config": /var/cache/
(Reading database ... 261432 files and directories currently installed.)
Removing clamtk (5.24-1) ...
Removing clamav (0.99.2+dfsg-6) ...
Removing clamav-freshclam (0.99.2+dfsg-6) ...
dpkg: error processing package clamav-base (--remove):
package is in a very bad inconsistent state; you should
reinstall it before attempting a removal
Errors were encountered while processing:
clamav-base
E: Sub-process /usr/bin/dpkg returned an error code (1)
ProblemType: Package
DistroRelease: Ubuntu 17.04
Package: clamav-base 0.99.2+dfsg-6
ProcVersionSign
Uname: Linux 4.10.0-22-generic x86_64
ApportVersion: 2.20.4-0ubuntu4.1
Architecture: amd64
Date: Mon Jun 19 13:10:36 2017
DuplicateSignature:
package:
Removing clamav-freshclam (0.99.2+dfsg-6) ...
dpkg: error processing package clamav-base (--remove):
package is in a very bad inconsistent state; you should
ErrorMessage: package is in a very bad inconsistent state; you should reinstall it before attempting a removal
InstallationDate: Installed on 2017-05-17 (32 days ago)
InstallationMedia: Ubuntu 17.04 "Zesty Zapus" - Release amd64 (20170412)
PackageArchitec
ProcCmdline: BOOT_IMAGE=
RelatedPackageV
dpkg 1.18.10ubuntu2
apt 1.4
SourcePackage: clamav
Title: package clamav-base 0.99.2+dfsg-6 failed to install/upgrade: package is in a very bad inconsistent state; you should reinstall it before attempting a removal
UpgradeStatus: No upgrade log present (probably fresh install)
tags: | removed: need-duplicate-check |
Thanks for filing this bug in Ubuntu.
You seem to have an existing process trying to install or remove packages and that is conflicting with your other attempts.
Could you please attach the output of the following command to this bug:
ps fauxww
Thanks!