LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   dirmngr issue (https://www.linuxquestions.org/questions/debian-26/dirmngr-issue-721138/)

ndlarsen 04-23-2009 07:32 AM

[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.

jdkaye 04-23-2009 01:59 PM

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

roseway 04-23-2009 04:43 PM

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.

ndlarsen 04-24-2009 05:37 AM

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.

zhjim 04-24-2009 05:54 AM

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.

ndlarsen 04-24-2009 09:16 AM

Quote:

Originally Posted by zhjim (Post 3519411)
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.

ndlarsen 04-24-2009 09:33 AM

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.


All times are GMT -5. The time now is 09:06 AM.