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

Reply via email to