Hi Christian, Thanks for the response. Since my understanding of all this is next to null, I have just followed the steps you recommended, without results. Here are the outputs.
1. At first the outputs were different and did not change anything. I eventually stopped the process of the update manager, restarted a few times and finally got the response that the file was no more present. 2. Entered $ apt-get upgradeand the return was: pdate-initramfs: Generating /boot/initrd.img-4.10.0-24-generic Processing triggers for libc-bin (2.24-9ubuntu2.2) ... Errors were encountered while processing: libc6-dev:amd64 E: Sub-process /usr/bin/dpkg returned an error code (1) W: Operation was interrupted before it could finish 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: 3. Uninstalled libc6-dev:amd64 including dependencies using sudo apt-get remove --auto-remove libc6-dev-amd64 There was an error message 4. Reinstalled using sudo apt-get install libc6-dev-amd64 and got this output Get:1 http://archive.ubuntu.com/ubuntu zesty/main i386 gcc-6-base i386 6.3.0-12ubuntu2 [17.4 kB] Get:2 http://archive.ubuntu.com/ubuntu zesty/main i386 libgcc1 i386 1:6.3.0-12ubuntu2 [48.0 kB] Get:3 http://archive.ubuntu.com/ubuntu zesty-updates/main i386 libc6 i386 2.24-9ubuntu2.2 [2,277 kB] Get:4 http://archive.ubuntu.com/ubuntu zesty-updates/main i386 libc6-amd64 i386 2.24-9ubuntu2.2 [2,623 kB] Get:5 http://archive.ubuntu.com/ubuntu zesty-updates/main i386 linux-libc-dev i386 4.10.0-24.28 [918 kB] Get:6 http://archive.ubuntu.com/ubuntu zesty-updates/main i386 libc6-dev i386 2.24-9ubuntu2.2 [1,869 kB] Get:7 http://archive.ubuntu.com/ubuntu zesty-updates/main i386 libc6-dev-amd64 i386 2.24-9ubuntu2.2 [1,770 kB] Fetched 9,521 kB in 2min 25s (65.3 kB/s) Preconfiguring packages ... Selecting previously unselected package gcc-6-base:i386. (Reading database ... 226683 files and directories currently installed.) Preparing to unpack .../0-gcc-6-base_6.3.0-12ubuntu2_i386.deb ... Unpacking gcc-6-base:i386 (6.3.0-12ubuntu2) ... Selecting previously unselected package libgcc1:i386. Preparing to unpack .../1-libgcc1_1%3a6.3.0-12ubuntu2_i386.deb ... Unpacking libgcc1:i386 (1:6.3.0-12ubuntu2) ... Selecting previously unselected package libc6:i386. Preparing to unpack .../2-libc6_2.24-9ubuntu2.2_i386.deb ... Unpacking libc6:i386 (2.24-9ubuntu2.2) ... Selecting previously unselected package libc6-amd64:i386. Preparing to unpack .../3-libc6-amd64_2.24-9ubuntu2.2_i386.deb ... Unpacking libc6-amd64:i386 (2.24-9ubuntu2.2) ... Replaced by files in installed package libc6:amd64 (2.24-9ubuntu2.2) ... Selecting previously unselected package linux-libc-dev:i386. Preparing to unpack .../4-linux-libc-dev_4.10.0-24.28_i386.deb ... Unpacking linux-libc-dev:i386 (4.10.0-24.28) ... Selecting previously unselected package libc6-dev:i386. Preparing to unpack .../5-libc6-dev_2.24-9ubuntu2.2_i386.deb ... Unpacking libc6-dev:i386 (2.24-9ubuntu2.2) ... Selecting previously unselected package libc6-dev-amd64:i386. Preparing to unpack .../6-libc6-dev-amd64_2.24-9ubuntu2.2_i386.deb ... Unpacking libc6-dev-amd64:i386 (2.24-9ubuntu2.2) ... Processing triggers for mime-support (3.60ubuntu1) ... Processing triggers for desktop-file-utils (0.23-1ubuntu2) ... Setting up gcc-6-base:i386 (6.3.0-12ubuntu2) ... Setting up linux-libc-dev:i386 (4.10.0-24.28) ... Processing triggers for bamfdaemon (0.5.3+17.04.20170406-0ubuntu1) ... Rebuilding /usr/share/applications/bamf-2.index... Processing triggers for libc-bin (2.24-9ubuntu2.2) ... Processing triggers for man-db (2.7.6.1-2) ... Processing triggers for gnome-menus (3.13.3-6ubuntu5) ... Processing triggers for ca-certificates (20161130) ... Updating certificates in /etc/ssl/certs... 0 added, 0 removed; done. Running hooks in /etc/ca-certificates/update.d... updates of cacerts keystore disabled. done. dpkg: error processing package libc6-dev:amd64 (--configure): package is in a very bad inconsistent state; you should reinstall it before attempting configuration Setting up libc6:i386 (2.24-9ubuntu2.2) ... Setting up libc6-amd64:i386 (2.24-9ubuntu2.2) ... Setting up libc6-dev:i386 (2.24-9ubuntu2.2) ... Setting up libgcc1:i386 (1:6.3.0-12ubuntu2) ... Setting up libc6-dev-amd64:i386 (2.24-9ubuntu2.2) ... Processing triggers for libc-bin (2.24-9ubuntu2.2) ... Errors were encountered while processing: libc6-dev:amd64 E: Sub-process /usr/bin/dpkg returned an error code (1) 5. Ran an update command (there were none) 6. Tried reinstalling Clam from software centre. It satalled again. 7. Tried removing Clamav: $ 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' is not installed, so not removed Package 'clamav-daemon' is not installed, so not removed The following packages will be REMOVED clamav-base* clamav-freshclam* 0 to upgrade, 0 to newly install, 2 to remove and 0 not to upgrade. 2 not fully installed or removed. Need to get 0 B/2,276 kB of archives. After this operation, 346 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 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) 8. Restarted the whole process you recommended getting: ll /var/cache/debconf/config.dat -rw-r--r-- 1 root root 5475 Jun 23 19:42 /var/cache/debconf/config.dat sudo lsof /var/cache/debconf/config.dat lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs Output information may be incomplete. COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME dpkg-prec 26601 root 4uW REG 8,1 5475 14952473 /var/cache/debconf/config.dat 9. Tried to kill the process but PID 26601 was not showing in the list of processes. 10. Started again and now I'm getting $ ll /var/cache/debconf/config.dat ls: cannot access '/var/cache/debconf/config.dat': No such file or directory bernard@bernard-Lenovo-Flex-2-14:~$ sudo lsof /var/cache/debconf/config.dat lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs Output information may be incomplete. lsof: status error on /var/cache/debconf/config.dat: No such file or directory lsof 4.89 latest revision: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/ latest FAQ: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/FAQ latest man page: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_man usage: [-?abhKlnNoOPRtUvVX] [+|-c c] [+|-d s] [+D D] [+|-E] [+|-e s] [+|-f[gG]] [-F [f]] [-g [s]] [-i [i]] [+|-L [l]] [+m [m]] [+|-M] [-o [o]] [-p s] [+|-r [t]] [-s [p:s]] [-S [t]] [-T [t]] [-u s] [+|-w] [-x [fl]] [--] [names] Use the ``-h'' option to get more help information. 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 debconf: DbDriver "passwords" warning: /var/cache/debconf/passwords.dat is locked by another process: Resource temporarily unavailable debconf: DbDriver "templatedb": /var/cache/debconf/templates.dat is locked by another process: Resource temporarily unavailable 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) I'm of course lost... Thanks in advance for your help. Regards Bernard On 23/06/17 12:38, ChristianEhrhardt wrote: > Hi, > so your upgrade in background is stalling at the config > root 4113 0.0 1.2 299464 104388 ? SNl Jun20 0:04 > /usr/bin/python3 /usr/sbin/aptd > root 4751 0.0 1.1 300584 94612 pts/0 SNs+ Jun20 0:00 \_ > /usr/bin/python3 /usr/sbin/aptd > root 4779 0.0 0.0 4496 792 pts/0 SN+ Jun20 0:00 \_ > /bin/sh -c /usr/sbin/dpkg-preconfigure --apt || true > root 4780 0.0 0.2 75664 19520 pts/0 SN+ Jun20 0:00 \_ > /usr/bin/perl -w /usr/sbin/dpkg-preconfigure --apt > root 4782 0.0 0.0 0 0 pts/0 ZN+ Jun20 0:00 > \_ [dpkg-preconfigu] <defunct> > > > The related error we already saw before int he log being: > debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by > another process: Resource temporarily unavailable > > Now there are a few things one can do trying to clean up, steps are: > 1. ensure all currently active related processes are really gone > 2. clean up the files > 3. retry upgrade/install > > #1.1 If the upgrades in your system never stop (I assume the prompt you > somewhere, but you can't see) please kill the related processes > #1.1 check if the lock files are still there > $ ll /var/cache/debconf/config.dat > #1.2 check who (if any) still has a hold on these files > $ sudo lsof /var/cache/debconf/config.dat > If there is any check what the reported PID is and end them gracefully if > possible, and hard if > needed > #2 now that really no active update should be going on the file should be > gone, but it isn't in > your case, so remove it > $ sudo rm /var/cache/debconf/config.dat > #3 run the upgrade from a console, so if any user interaction is needed you > can see, handle and in the worst case report it here > $ apt-get upgrade > $ apt install clamav > > Please report back if you had success cleaning up that concurrent > locking issue due to background apt activity. > -- 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
