DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.