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 04-23-2009, 07:32 AM   #1
ndlarsen
LQ Newbie
 
Registered: Sep 2006
Posts: 6

Rep: Reputation: 0
[SOLVED] dirmngr issue (invoke-rc.d: initscript *, action "stop" failed)


Hey all.

Today I wanted to install KDE on my laptop running squeeze. I fully updated it prior to trying. Something went bad during the installation of KDE and I'm currently left with an otherwise fine system containing dirmngr (version 1.0.2-1) that I cannot remove.
Code:
lapslave:~# dpkg --purge dirmngr
(Reading database ... 142481 files and directories currently installed.)
Removing dirmngr ...
 * Stopping DirMngr dirmngr                                              [ OK ] 
invoke-rc.d: initscript dirmngr, action "stop" failed.
dpkg: error processing dirmngr (--purge):
 subprocess pre-removal script returned error exit status 1
 * Starting DirMngr dirmngr                                              [ OK ] 
invoke-rc.d: initscript dirmngr, action "start" failed.
dpkg: error while cleaning up:
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 dirmngr
Code:
lapslave:~# ls /var/lib/dpkg/info/ | grep dirmngr
dirmngr.conffiles
dirmngr.list
dirmngr.md5sums
dirmngr.postinst
dirmngr.postrm
dirmngr.prerm
Now, every file listed in dirmngr.conffiles and dirmngr.list exists in the system and the deamon starts, stops and restarts fine, so guessing that's not the reason. All I really want is to have this issue fixed so that I can install packages that depends on dirmngr. Any suggestion will be appreciated.
Cheers.

Last edited by ndlarsen; 04-24-2009 at 09:48 AM.
 
Old 04-23-2009, 01:59 PM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
You might try using aptitude to purge packages rather than using dpkg. I am also running Squeeze and I notice that dirmngr is automatically installed on my system. The version number is the same as yours: 1.0.2-1. I am also running kde. I'm not sure what your problem is or why you want to remove dirmngr.
jdk
 
Old 04-23-2009, 04:43 PM   #3
roseway
LQ Newbie
 
Registered: Oct 2004
Location: Kent, UK
Distribution: Debian Testing AMD64 KDE
Posts: 6

Rep: Reputation: 0
dpkg doesn't resolve dependencies on its own, so if removing a package requires that another package is removed at the same time, then dpkg will fail. As jdkaye suggested, try aptitude instead. Or simply leave dirmngr installed.
 
Old 04-24-2009, 05:37 AM   #4
ndlarsen
LQ Newbie
 
Registered: Sep 2006
Posts: 6

Original Poster
Rep: Reputation: 0
I appreciate your replies. Perhaps I didn't make myself properly clear on the matter. I don't want to remove dirmngr permanently, just in order to get the issue fixed. Trying to purge dirmngr through aptitude yields this:
Code:
ndlarsen@lapslave:~$ sudo aptitude
(Reading database ... 142481 files and directories currently installed.)
Removing dirmngr ...
 * Stopping DirMngr dirmngr                                                                                                             [ OK ] 
invoke-rc.d: initscript dirmngr, action "stop" failed.
dpkg: error processing dirmngr (--purge):
 subprocess pre-removal script returned error exit status 1
 * Starting DirMngr dirmngr                                                                                                             [ OK ] 
invoke-rc.d: initscript dirmngr, action "start" failed.
dpkg: error while cleaning up:
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 dirmngr
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Press return to continue.
Basically, any package related action yields this result.
 
Old 04-24-2009, 05:54 AM   #5
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Why not just install dirmngr and then remove it. Works wonders Try a dpkg -i --force dirmngr
Also look up the permissions of /etc/init.d/dirmngr. As stopping dirmngr yields an error. Make sure to have it executable.
 
Old 04-24-2009, 09:16 AM   #6
ndlarsen
LQ Newbie
 
Registered: Sep 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by zhjim View Post
Why not just install dirmngr and then remove it. Works wonders Try a dpkg -i --force dirmngr
Also look up the permissions of /etc/init.d/dirmngr. As stopping dirmngr yields an error. Make sure to have it executable.
Well, because I cannot neither remove nor install a package due to this.
Code:
ndlarsen@lapslave:~$ sudo dpkg -i --force-all /var/cache/apt/archives/dirmngr_1.0.2-1_i386.deb 
(Reading database ... 142481 files and directories currently installed.)
Preparing to replace dirmngr 1.0.2-1 (using .../dirmngr_1.0.2-1_i386.deb) ...
 * Stopping DirMngr dirmngr                                              [ OK ] 
invoke-rc.d: initscript dirmngr, action "stop" failed.
dpkg: warning - old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
 * Stopping DirMngr dirmngr                                              [ OK ] 
invoke-rc.d: initscript dirmngr, action "stop" failed.
dpkg: error processing /var/cache/apt/archives/dirmngr_1.0.2-1_i386.deb (--install):
 subprocess new pre-removal script returned error exit status 1
 * Starting DirMngr dirmngr                                              [ OK ] 
invoke-rc.d: initscript dirmngr, action "start" failed.
dpkg: error while cleaning up:
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/dirmngr_1.0.2-1_i386.deb
As stated before, all package management related actions I've done yield this result. And yes, /etc/init.d/dirmngr has the correct permissions.
 
Old 04-24-2009, 09:33 AM   #7
ndlarsen
LQ Newbie
 
Registered: Sep 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Well, so it turns out that dirmngr might not be the cause of this after all. I get the same error when dealing with hal.

EDIT

Turns out it's a bug in splashy causing this.
http://www.mail-archive.com/debian-b...msg634008.html

dpkg -P splashy-themes splashy solved it. Cheers all.

Last edited by ndlarsen; 04-24-2009 at 09:45 AM.
 
  


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
Ffmpeg and Xing header - iTunes issue and Duration issue JavaNinja Linux - Software 7 02-04-2009 09:14 AM
SuSE10.2 networking issue Inter. connect. issue LVSuSE Linux - Networking 3 08-31-2007 02:42 AM
Sendmail issue (did not issue MAIL/EXPNVRFY/ETRN ...) Blackout_08 Linux - Server 0 08-08-2007 01:10 PM
Slack 10.1 -- Mouse issue / X11 issue Pozican Linux - General 4 04-19-2005 03:44 AM
webmin issue, poss security issue bejiita Slackware 3 11-03-2004 06:07 AM

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

All times are GMT -5. The time now is 12:17 AM.

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