LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-08-2009, 03:34 AM   #1
umarzuki
Member
 
Registered: Aug 2008
Distribution: Debian
Posts: 61

Rep: Reputation: 15
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.
 
Old 10-08-2009, 04:29 AM   #2
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,832

Rep: Reputation: 108Reputation: 108
Hya

I am wondering if this thread helps.

Happy Penguins!
 
Old 10-09-2009, 02:36 AM   #3
umarzuki
Member
 
Registered: Aug 2008
Distribution: Debian
Posts: 61

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by kaz2100 View Post
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.
 
Old 10-09-2009, 09:01 AM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
lsof | grep config.dat

Then kill the process that has it open?
 
Old 10-09-2009, 09:17 AM   #5
umarzuki
Member
 
Registered: Aug 2008
Distribution: Debian
Posts: 61

Original Poster
Rep: Reputation: 15
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...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
the grub package failed to install (using debian) mrj Linux - Software 12 08-05-2007 03:24 PM
cannot remove, reinstall or configure libgnomeui-common package srf21c Ubuntu 5 11-09-2006 12:18 PM
freebsd, help with cancelling an apps install phinux *BSD 4 10-12-2006 08:27 AM
Remove all configuration files of a Package -- Ubuntu Drapper Drake Dimitriy Linux - Software 1 06-10-2006 01:58 AM
Netscape install failed how can remove old file and install again? nuwanguy Linux - Software 3 09-10-2003 07:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 06:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration