Thread: How To Rebuild Your Debconf Database
hello gurus,
had error start cropping when upgrading packages:
i found disturbing, there no other processes running associated package maintenance.code:debconf: dbdriver "config": /var/cache/debconf/config.dat locked process: resource temporarily unavailable e: not lock /var/lib/dpkg/lock - open (11: resource temporarily unavailable) e: unable lock administration directory (/var/lib/dpkg/), process using it? debconf: dbdriver "templatedb": /var/cache/debconf/templates.dat locked process: resource temporarily unavailable
next followed by:
after running dpkg-get-selections, found debconf database empty! entries listed ldap packages. other entries had been deleted.code:error: cannot find question <some debconf key>
since mail server desperate find quick fix, quick forums search , quick google search failed me. there may indeed fast , easy fix type of problem out there, wasn't able find quick search. so, benefit of others, if should ever find in same boat 1 day, here how fix it:
first, rebuild debconf's own debconf database entries:
then, rebuild debconf database else:code:dpkg-reconfigure debconf
press return , watch stuff scroll by.code:for pkg in $(dpkg-query --show | awk '{print $1}'); echo ; echo "--> $pkg" ; echo ; dpkg-reconfigure --frontend=noninteractive --priority=critical $pkg < /dev/null ; done
receive errors packages whom debconf reconfiguration should done via package (ex: exim4-daemon-heavy). appears safe ignore those.
believe above command not restore debconf customization had set in past. merely restore database default configuration data. (at least, understanding.) still need use dpkg-reconfigure configure packages require custom settings.
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [SOLVED] How To Rebuild Your Debconf Database
Ubuntu
Comments
Post a Comment