Score:0

ldap-account-manager problem

in flag

I have a problem about ldap-account-manager remove.

Here is errors.

$ sudo apt-get remove ldap-account-manager -y
Reading package lists... Done
Building dependency tree  
Reading state information... Done
The following packages were automatically installed and are no longer required:
  fonts-dejavu php-ldap php-monolog php7.4-ldap

Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  ldap-account-manager
0 upgraded, 0 newly installed, 1 to remove and 7 not upgraded.

1 not fully installed or removed.

After this operation, 74,7 MB disk space will be freed.

(Reading database ... 357061 files and directories currently installed.)
Removing ldap-account-manager (7.7-1) ...
apache2.service is not active, cannot reload.
invoke-rc.d: initscript apache2, action "reload" failed.
dpkg: error processing package ldap-account-manager (--remove):
 installed ldap-account-manager package post-removal script subprocess returned error exit status 1
dpkg: too many errors, stopping

Errors were encountered while processing:
 ldap-account-manager

Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)

Linux hozer 5.11.0-25-generic #27~20.04.1-Ubuntu SMP Tue Jul 13 17:41:23 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

$ apt-cache policy ldap-account-manager
ldap-account-manager: 
Installed: 7.7-1 
Candidate: 7.7-1 
Version table: 
*** 7.7-1 100 100 /var/lib/dpkg/status 
    6.7-1 500 
       500 http://tr.archive.ubuntu.com/ubuntu focal/universe amd64 Packages 
       500 http://tr.archive.ubuntu.com/ubuntu focal/universe i386 Packages
N0rbert avatar
zw flag
What is your Ubuntu version? How did you got 7.7 version of [the package](https://packages.ubuntu.com/search?suite=all&searchon=names&keywords=ldap-account-manager)?
hsyn avatar
in flag
Linux hozer 5.11.0-25-generic #27~20.04.1-Ubuntu SMP Tue Jul 13 17:41:23 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
N0rbert avatar
zw flag
Please add output of `apt-cache policy ldap-account-manager` to the question by editing it.
hsyn avatar
in flag
```ldap-account-manager: Installed: 7.7-1 Candidate: 7.7-1 Version table: *** 7.7-1 100 100 /var/lib/dpkg/status 6.7-1 500 500 http://tr.archive.ubuntu.com/ubuntu focal/universe amd64 Packages 500 http://tr.archive.ubuntu.com/ubuntu focal/universe i386 Packages```
Score:0
zw flag

You have to remove this problematic package forcibly by

sudo dpkg -P --force-all ldap-account-manager
sudo apt-get autoremove
hsyn avatar
in flag
```$ sudo dpkg -P --force-all ldap-account-manager (Reading database ... 357061 files and directories currently installed.) Removing ldap-account-manager (7.7-1) .. apache2.service is not active, cannot reload. invoke-rc.d: initscript apache2, action "reload" failed. dpkg: error processing package ldap-account-manager (--purge): installed ldap-account-manager package post-removal script subprocess returned error exit status 1 Errors were encountered while processing: ldap-account-manager ```
hsyn avatar
in flag
I can start apache2.service btw
N0rbert avatar
zw flag
Then install normal official package by `sudo apt-get install --reinstall ldap-account-manager=6.7-1` and then retry removal.
hsyn avatar
in flag
Ok i install 6.7.1 but still can't remove 7.7-1
hsyn avatar
in flag
Thanks for help solved.
Rami Sedhom avatar
in flag
@hsyn can you share how did you resolve this, I'm having same issue...
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.