LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   failed to configure, remove and install package after cancelling configuration (https://www.linuxquestions.org/questions/debian-26/failed-to-configure-remove-and-install-package-after-cancelling-configuration-760492/)

umarzuki 10-08-2009 03:34 AM

failed to configure, remove and install package after cancelling configuration
 
during installing and configuring arno-iptables-firewall, i pressed ctrl+c to cancel it and almost everything related to debconf and package management not working anymore. Examples:
Code:

# aptitude remove arno-iptables-firewall
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
Reading package lists... Done
Building dependency tree     
Reading state information... Done
Reading extended state information     
Initializing package states... Done
Reading task descriptions... Done 
W: Could not lock the cache file; this usually means that dpkg or another apt tool is already installing packages.  Opening in read-only mode; any changes you make to the states of packages will NOT be preserved!
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.

Code:

# dpkg --configure -a
Setting up arno-iptables-firewall (1.8.8.o-2) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing arno-iptables-firewall (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 arno-iptables-firewall

I googled a bit and most of the posters haven't got any real answer for this problem.

kaz2100 10-08-2009 04:29 AM

Hya

I am wondering if this thread helps.

Happy Penguins!

umarzuki 10-09-2009 02:36 AM

Quote:

Originally Posted by kaz2100 (Post 3712049)
Hya

I am wondering if this thread helps.

Happy Penguins!

thanks for trying to help but in my case, sending sigkill to frontend doesn't work.

AlucardZero 10-09-2009 09:01 AM

lsof | grep config.dat

Then kill the process that has it open?

umarzuki 10-09-2009 09:17 AM

Code:

...
The following NEW packages will be installed:
  arno-iptables-firewall lynx{a} lynx-cur{a}
0 packages upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/2150kB of archives. After unpacking 5132kB will be used.
Do you want to continue? [Y/n/?]
Writing extended state information... Done
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
Selecting previously deselected package arno-iptables-firewall.
(Reading database ... 30955 files and directories currently installed.)
Unpacking arno-iptables-firewall (from .../arno-iptables-firewall_1.8.8.o-2_all.deb) ...
Selecting previously deselected package lynx-cur.
Unpacking lynx-cur (from .../lynx-cur_2.8.7dev9-2.1_i386.deb) ...
Selecting previously deselected package lynx.
Unpacking lynx (from .../lynx_2.8.7dev9-2.1_all.deb) ...
Processing triggers for man-db ...
Setting up arno-iptables-firewall (1.8.8.o-2) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing arno-iptables-firewall (--configure):
 subprocess post-installation script returned error exit status 1
Setting up lynx-cur (2.8.7dev9-2.1) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing lynx-cur (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of lynx:
 lynx depends on lynx-cur (>= 2.8.7dev9-2.1); however:
  Package lynx-cur is not configured yet.
dpkg: error processing lynx (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 arno-iptables-firewall
 lynx-cur
 lynx
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up arno-iptables-firewall (1.8.8.o-2) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing arno-iptables-firewall (--configure):
 subprocess post-installation script returned error exit status 1
Setting up lynx-cur (2.8.7dev9-2.1) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing lynx-cur (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of lynx:
 lynx depends on lynx-cur (>= 2.8.7dev9-2.1); however:
  Package lynx-cur is not configured yet.
dpkg: error processing lynx (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 arno-iptables-firewall
 lynx-cur
 lynx
Reading package lists... Done           
Building dependency tree     
Reading state information... Done
Reading extended state information     
Initializing package states... Done
Writing extended state information... Done
Reading task descriptions... Done

# lsof | grep config.dat
frontend  12667      root    4rW    REG        3,1  58875    188587 /var/cache/debconf/config.dat

if i killed frontend, it will come back to live again. I don't know if this is Debian 5's bug or something...


All times are GMT -5. The time now is 02:21 AM.