Hi Christian, Here are some updates.
FYI, since I started getting this problem I had set the update manager to never check for updates, so it could not have been an update going in the back ground. Also, since your first reply I had not restarted the computer as I prefered to have it all backed-up first. Today I did and straightaway check the package manager. It was like initially; Clamav was installed but unusable as all its config files etc were not installed. 1. I tried to remove via the package manager and got: "Detailed errors from the package manager follow: apt transaction returned result exit-failed" 2. tried via the terminal and got: bernard@bernard-Lenovo-Flex-2-14:~$ sudo apt-get --purge remove clamav clamav-base clamav-daemon clamav-freshclam libclamav2 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: libclamav7 libcommon-sense-perl libjson-perl libjson-xs-perl libllvm3.9 libmspack0 libtext-csv-perl libtext-csv-xs-perl libtfm1 libtypes-serialiser-perl Use 'sudo apt autoremove' to remove them. The following packages will be REMOVED clamav* clamav-base* clamav-freshclam* 0 to upgrade, 0 to newly install, 3 to remove and 0 not to upgrade. 4 not fully installed or removed. Need to get 0 B/2,276 kB of archives. After this operation, 1,914 kB disk space will be freed. Do you want to continue? [Y/n] Y (Reading database ... 227901 files and directories currently installed.) 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) bernard@bernard-Lenovo-Flex-2-14:~$ sudo apt autoremove Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED libclamav7 libcommon-sense-perl libjson-perl libjson-xs-perl libllvm3.9 libmspack0 libtext-csv-perl libtext-csv-xs-perl libtfm1 libtypes-serialiser-perl 0 to upgrade, 0 to newly install, 10 to remove and 0 not to upgrade. 2 not fully installed or removed. Need to get 0 B/2,334 kB of archives. After this operation, 49.2 MB disk space will be freed. Do you want to continue? [Y/n] Y (Reading database ... 227859 files and directories currently installed.) Removing libclamav7:amd64 (0.99.2+dfsg-6) ... Removing libjson-xs-perl (3.030-1) ... Removing libtypes-serialiser-perl (1.0-1) ... Removing libcommon-sense-perl (3.74-2) ... Removing libjson-perl (2.90-1) ... Removing libllvm3.9:amd64 (1:3.9.1-5ubuntu1) ... Removing libmspack0:amd64 (0.5-1) ... Removing libtext-csv-perl (1.33-2) ... Removing libtext-csv-xs-perl (1.26-1) ... Removing libtfm1:amd64 (0.13-4) ... Processing triggers for libc-bin (2.24-9ubuntu2.2) ... Processing triggers for man-db (2.7.6.1-2) ... dpkg: error processing package libc6-dev:amd64 (--configure): package is in a very bad inconsistent state; you should reinstall it before attempting configuration Errors were encountered while processing: libc6-dev:amd64 E: Sub-process /usr/bin/dpkg returned an error code (1) 3. Tried again to remove the libc6-dev:amd64 bernard@bernard-Lenovo-Flex-2-14:~$ sudo dpkg -r libc6-dev:amd64 dpkg: dependency problems prevent removal of libc6-dev:amd64: build-essential depends on libc6-dev | libc-dev; however: Package libc6-dev:amd64 is to be removed. Package libc-dev is not installed. Package libc6-dev:amd64 which provides libc-dev is to be removed. libstdc++-6-dev:amd64 depends on libc6-dev (>= 2.13-0ubuntu6). build-essential depends on libc6-dev | libc-dev; however: Package libc6-dev:amd64 is to be removed. Package libc-dev is not installed. Package libc6-dev:amd64 which provides libc-dev is to be removed. dpkg: error processing package libc6-dev:amd64 (--remove): dependency problems - not removing Errors were encountered while processing: libc6-dev:amd64 bernard@bernard-Lenovo-Flex-2-14:~$ sudo apt-get install libc6-dev:amd64 Reading package lists... Done Building dependency tree Reading state information... Done libc6-dev is already the newest version (2.24-9ubuntu2.2). libc6-dev set to manually installed. 0 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/2,334 kB of archives. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] Y dpkg: error processing package libc6-dev:amd64 (--configure): package is in a very bad inconsistent state; you should reinstall it before attempting configuration Errors were encountered while processing: libc6-dev:amd64 E: Sub-process /usr/bin/dpkg returned an error code (1) 4. Retried an upgrade just to check bernard@bernard-Lenovo-Flex-2-14:~$ sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done 0 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/2,334 kB of archives. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] Y dpkg: error processing package libc6-dev:amd64 (--configure): package is in a very bad inconsistent state; you should reinstall it before attempting configuration Errors were encountered while processing: libc6-dev:amd64 E: Sub-process /usr/bin/dpkg returned an error code (1) So it looks like libc6-dev:amd64 is the new cause of all evil... I saw that post here but not yet answered. Looks like it is a 17.04 specific issue. https://askubuntu.com/questions/928499/im-trying-to-install-many-apps-but-got-this-error-every-time-even-in-uninstallin Any good command to force its reinstallation? Thanks in advance and best regards Bernard On 26/06/17 12:29, ChristianEhrhardt wrote: > Hi Bernard, > thanks for following and trying to resolve. > > At the moment I'm puzzled as well - you clearly got rid of the offending > /var/cache/debconf/passwords.dat as confirmed by ll and lsof in step 10. > > Why it is then "in the way" on your retry to upgrade/install I have no idea > yet :-/ > Maybe it races with itself - does not make sense to me yet. > > Hmm - two things from here: > > First of all right after the restart there might indeed be an auto- > updater being started and running in the background - make sure this > isn't your issue. Check who owns the new file now and that the process > is completed. > > Furthermore you might follow some advice given on [1] - [3]. On top of > what I already suggested some users seem to have had success by removing > all these files. I'm usually not bold to remove a lot of things, maybe > move them away to your roots home so you can restore them in case you > need to? > > [1]: > https://askubuntu.com/questions/136881/debconf-dbdriver-config-config-dat-is-locked-by-another-process-resource-t > [2]: > https://wiki.edubuntu.org/DebuggingInstallationIssues#DbDriver_.22config.22_is_locked > [3]: https://ubuntuforums.org/showthread.php?t=1495612 > -- 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 [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
