Public bug reported: Hi, my Ubuntu version is 17.04 cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=17.04 DISTRIB_CODENAME=zesty DISTRIB_DESCRIPTION="Ubuntu 17.04"
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://help.ubuntu.com/community/PackageManagerTroubleshootingProcedure 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-certificates-java java-common linux-headers-4.10.0-19 linux-headers-4.10.0-19-generic linux-image-4.10.0-19-generic linux-image-extra-4.10.0-19-generic openjdk-9-jre-headless python3-dateutil qtdeclarative5-accounts-plugin qtdeclarative5-ubuntu-download-manager0.1 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://archive.ubuntu.com/ubuntu zesty/main amd64 clamav-base all 0.99.2+dfsg-6 [57.8 kB] Fetched 57.8 kB in 1s (48.3 kB/s) debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable 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. No apport report written because the error message indicates its a followup error from a previous failure. dpkg: error processing package clamav (--configure): 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. Errors were encountered while processing: 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-certificates-java java-common libclamav7 libcommon-sense-perl libjson-perl libjson-xs-perl libllvm3.9 libmspack0 libtext-csv-perl libtext-csv-xs-perl libtfm1 libtypes-serialiser-perl linux-headers-4.10.0-19 linux-headers-4.10.0-19-generic linux-image-4.10.0-19-generic linux-image-extra-4.10.0-19-generic openjdk-9-jre-headless python3-dateutil qtdeclarative5-accounts-plugin qtdeclarative5-ubuntu-download-manager0.1 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/debconf/config.dat is locked by another process: Resource temporarily unavailable (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 ProcVersionSignature: Ubuntu 4.10.0-22.24-generic 4.10.15 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:clamav-base: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 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) PackageArchitecture: all ProcCmdline: BOOT_IMAGE=/boot/vmlinuz-4.10.0-22-generic root=UUID=811193d3-95a3-465a-b071-f85243b21ca2 ro quiet splash vt.handoff=7 RelatedPackageVersions: 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) ** Affects: clamav (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-package zesty -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1698772 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 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/clamav/+bug/1698772/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs