Package remove problem

Asked by Livenicely

livenicely@DigitalMedia:~$ sudo apt-get install -f
Password:
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 116 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Setting up clvm (2.02.06-2ubuntu9) ...
Starting Cluster LVM Daemon clvmd could not connect to cluster manager
Consult syslog for more information
invoke-rc.d: initscript clvm, action "start" failed.
dpkg: error processing clvm (--configure):
 subprocess post-installation script returned error exit status 3
Errors were encountered while processing:
 clvm
E: Sub-process /usr/bin/dpkg returned an error code (1)
livenicely@DigitalMedia:~$

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Andrea Corbellini
Solved:
Last query:
Last reply:
Revision history for this message
Andrea Corbellini (andrea.corbellini) said :
#1

Try to remove it using
sudo dpkg --purge --force-all clvm
If it doesn't work, open /var/lib/dpkg/status as root and remove the package manually.

Revision history for this message
Livenicely (livenicely-deactivatedaccount) said :
#2

root@DigitalMedia:/home/livenicely# sudo dpkg --purge --force-all clvm
(Reading database ... 104624 files and directories currently installed.)
Removing clvm ...
Stopping Cluster LVM Daemon invoke-rc.d: initscript clvm, action "stop" failed.
dpkg: error processing clvm (--purge):
 subprocess pre-removal script returned error exit status 1
Starting Cluster LVM Daemon clvmd could not connect to cluster manager
Consult syslog for more information
invoke-rc.d: initscript clvm, action "start" failed.
dpkg: error while cleaning up:
 subprocess post-installation script returned error exit status 3
Errors were encountered while processing:
 clvm
root@DigitalMedia:/home/livenicely#

Revision history for this message
Best Andrea Corbellini (andrea.corbellini) said :
#3

Open /var/lib/dpkg/status as root and remove the package manually.
sudo gedit /var/lib/dpkg/status

Revision history for this message
Livenicely (livenicely-deactivatedaccount) said :
#4

Thanks Andrea Corbellini, that solved my question.

Revision history for this message
Ahmad Amr (aamr) said :
#5

Thanks a lot, that solved my problem too

Revision history for this message
Deo Favente (deofavente1) said :
#6

Thank you this helped me as well. I broke my postgresql and dpkg wouldn't reove it cause it needed to run some pre/post/idk install scripts and the scripts didnt like the way i smelled or somthing and dpkg would no longer allow me to install any new software or update anything! I looked all over the web and people kept on saying things that including these words in no particular order: dpkg, force, remove, purge, all, -r, -i
but none of them FORCED the uninstall since something still asked posgresql politely to uninstall itself, and it kept on refusing. This method actually did work YAY! I should probably do some clean up but i figure if I don't touch anything with the word postgresql on it, me and my system should get along fine.

Revision history for this message
Jan Tijssen (tijssen-jan) said :
#7

You don't wan to know how much time I spent to find this with positive results. The only "but" is, what did I do.....Is there something wrong which now is hidden....?