Skip to main content

Thread: How To Rebuild Your Debconf Database


hello gurus,

had error start cropping when upgrading packages:

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
i found disturbing, there no other processes running associated package maintenance.

next followed by:

code:
error: cannot find question <some debconf key>
after running dpkg-get-selections, found debconf database empty! entries listed ldap packages. other entries had been deleted.

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:
code:
dpkg-reconfigure debconf
then, rebuild debconf database else:
code:
for pkg in $(dpkg-query --show | awk '{print $1}'); echo ; echo "--> $pkg" ; echo ; dpkg-reconfigure --frontend=noninteractive --priority=critical $pkg < /dev/null ; done
press return , watch stuff scroll by.

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

Popular posts from this blog

Joomla 3.3 Installation Error message - Joomla! Forum - community, help and support

Multilanguage infinite redirect loop error. - Joomla! Forum - community, help and support

trim media limit reached