LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 05-20-2007, 11:04 AM   #1
vargadanis
Member
 
Registered: Sep 2006
Posts: 248

Rep: Reputation: 30
Can't remove an app: error code 3 for DPKG


Hi!

I accidentally installed clvm and it also installed some other dependencies such as redhat-cluster-management or something similar. When trying to remove it I get an error message:

Quote:
dani@dani-laptop:~$ sudo aptitude remove clvm
Password:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
The following packages have been kept back:
app-install-data-commercial apport apport-gtk capplets-data
gnome-control-center gnome-panel gnome-panel-data
libgnome-window-settings1 libmetacity0 libpanel-applet2-0 libslab0
libsmbclient metacity metacity-common python-apport python-problem-report
rdesktop samba-common smbclient tzdata update-manager update-manager-core
The following packages will be REMOVED:
clvm
0 packages upgraded, 0 newly installed, 1 to remove and 22 not upgraded.
Need to get 0B of archives. After unpacking 492kB will be freed.
Writing extended state information... Done
(Reading database ... 94043 files and directories currently installed.)
Removing clvm ...
Stopping Cluster LVM Daemon invoke-rc.d: initscript clvm, action "stop" failed.
dpkg: error processing clvm (--remove):
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
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
dani@dani-laptop:~$
The syslog:

Quote:
May 19 20:02:02 dani-laptop ccsd[4032]: Unable to connect to cluster infrastructure after 120 seconds.
May 19 20:02:33 dani-laptop ccsd[4032]: Unable to connect to cluster infrastructure after 150 seconds.
May 19 20:03:02 dani-laptop ccsd[4032]: Unable to connect to cluster infrastructure after 180 seconds.
May 19 20:03:32 dani-laptop ccsd[4032]: Unable to connect to cluster infrastructure after 210 seconds.
May 19 20:04:02 dani-laptop ccsd[4032]: Unable to connect to cluster infrastructure after 240 seconds.
May 19 20:04:32 dani-laptop ccsd[4032]: Unable to connect to cluster infrastructure after 270 seconds.
May 19 20:04:46 dani-laptop clvmd: Can't open cluster manager socket: No such file or directory
May 19 20:05:02 dani-laptop ccsd[4032]: Unable to connect to cluster infrastructure after 300 seconds.
I tried dpkg-reconfigure but it also didn't work at all. How could I remove it than? I need to install some other softwares but aptitude or DPKG or apt-get doesn't let me as long as I have a broken package. Pls help!

Thx...
 
Old 05-21-2007, 11:56 PM   #2
vxc69
Member
 
Registered: Jul 2004
Distribution: Ubuntu
Posts: 387

Rep: Reputation: 33
Hello,

First do this:
sudo rm /etc/init.d/clvm

Then:
sudo apt-get --purge -f remove clvm


Should work.



vxc
 
Old 05-22-2007, 12:18 AM   #3
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
You might also want to try dpkg --force-remove-reinstreq clvm if the above does not work.
 
Old 05-26-2007, 11:22 AM   #4
vargadanis
Member
 
Registered: Sep 2006
Posts: 248

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by vxc69
Hello,

First do this:
sudo rm /etc/init.d/clvm

Then:
sudo apt-get --purge -f remove clvm


Should work.



vxc

Awesome!! It did really work. Wow.. LoL. That thing made my life a little bit more complicated but worked out. I knew that there is a solution.

Dan
 
Old 06-16-2007, 10:07 AM   #5
cfrivas
LQ Newbie
 
Registered: Jun 2007
Posts: 1

Rep: Reputation: 0
Unhappy removing clvm

Quote:
Originally Posted by vargadanis
Awesome!! It did really work. Wow.. LoL. That thing made my life a little bit more complicated but worked out. I knew that there is a solution.

Dan

I tried the same thing and this is what was spit back:

cfrivas@cfrivas-desktop:~$ sudo rm /etc/init.d/clvm
cfrivas@cfrivas-desktop:~$ sudo apt-get --purge -f remove clvm
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libmpich1.0c2 libgdk-pixbuf-gnome2 lvm2 librdf0 adept-installer cdda2wav
adept-updater gconf libqt4-qt3support libqt4-core libgal23 libglade-gnome0
adept-batch wv librasqal0 gcc-3.4-base libgnome-vfs-common
libgnomeprint-data python-ipy libdlm2 adept lvm-common libqt4-gui libfltk1.1
libwv-1.2-3 libxine-main1 oaf libxml1 libntfs8 libtunepimp3 libqt4-sql
sfftw2 libgdk-pixbuf2 libcrypto++5.2c2a libgnome-vfs0 libhamlib2 libpq4
liblog4cxx9c2a libcman2 python-elementtree libclalsadrv1 libg2c0 libgconf11
adept-notifier libglade0 libclucene0 mdadm libgnomeprint15 liboaf0
mozilla-firefox strigi-daemon libgnomeprint-bin
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
clvm*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 492kB disk space will be freed.
Do you want to continue [Y/n]? y
Abort.
 
Old 11-17-2007, 04:32 AM   #6
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291

Rep: Reputation: 52
Quote:
Originally Posted by vxc69 View Post
Hello,

First do this:
sudo rm /etc/init.d/clvm

Then:
sudo apt-get --purge -f remove clvm


Should work.



vxc
Thankyou, that method also worked on a broken install of spamass-milter.

edit: I removed the --purge option first as it would have removed beryl and all sorts of other stuff too

edit2: Actually that would have removed stuff too, so I used the synaptic package manager after having removed the init.d file for spamass-milter

Last edited by Tuttle; 11-17-2007 at 04:40 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
Sub-Process /usr/bin/dpkg returned an error code (1) Bookspoppa Debian 39 11-12-2013 01:21 PM
Input/Output Error; dpkg sub-process /usr/bin/dpkg returned and error code (2) NosLycn Linux - Software 7 12-12-2011 02:50 AM
Sub-process /usr/bin/dpkg returned an error code (1) adrian1979 Debian 1 11-12-2006 09:14 PM
dpkg returned an error code (1) Segmentation fault questionman Debian 6 11-02-2004 12:04 AM
Synaptic error: "sub-process /usr/bin/dpkg returned an error code (2)" firefly2442 Linux - Software 3 02-04-2004 06:41 PM

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

All times are GMT -5. The time now is 09:48 PM.

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