>If the init script is complaining, it is probably for a good reason. >You don't need to unpack the package. Instead, you should identify >why the init script is failing (perhaps due to misconfiguration?) by >running it manually and checking log files. Once that is cleaned up, >you should be able to get rid of it cleanly. Working around the >protective measures put in place by the package authors is a sure way >to get unintended consequences. Good luck!
>-M DAMN! Why don't you just admit you don't know anything about this instead of writing that crap? You sound like an old woman fretting about the mysterious unknown workings of her magic box. I know I know.. if YOU break your computer you can't email your grandkids. "working around the protective measures put in place by the package authors?" WHAT? am I going to break CLVM??? I don't care! I NEVER HAD CLVM INSTALLED IN THE FIRST PLACE! I don't want to have to configure something properly in order to not install it. I know exactly how to fix this problem(clear the pre-removal script, and it won't break anything. (though I would hope there's another way) If you say it will then you don't know what you're talking about. Yeah, linux is kind of bloated, but it's not so poorly designed that screwing up a non-running service/process will lead to "unintended consequences." I realized that a more direct way to avoid the problem of a package not being able to be removed because a service can't be stopped would be to make the init script think it had stopped it. So only one line needs to be removed from /etc/init.d/clvm. STILL hackish and not what I was asking for, but I did it to illustrate that nothing would be broken by not doing it by the book. Clearing the pre-removal script from the clvm .deb would have accomplished the same thing. THE FACT IS, THE PACKAGE MANAGER IS WRONG ON THIS ONE. Don't think that's possible? Try "aptitude remove totem" Apparently it is IMPOSSIBLE to run gnome without totem. Damn, I haven't seen extraneous binding like that since microsoft made IE part of the OS. Sometimes package managers are wrong, which is why a --force or --no-deps would be great for apt. [EMAIL PROTECTED]:/etc/init.d# sed 's/start-stop-daemon.*$//' clvm > clvm2 ; mv clvm2 clvm [EMAIL PROTECTED]:/etc/init.d# aptitude remove clvm Reading package lists... Done Building dependency tree... Done Reading extended state information Initializing package states... Done Reading task descriptions... Done Building tag database... Done The following packages have been kept back: pr0nfs The following packages will be REMOVED: clvm 0 packages upgraded, 0 newly installed, 1 to remove and 4 not upgraded. Need to get 0B of archives. After unpacking 487kB will be freed. Writing extended state information... Done (Reading database ... 192351 files and directories currently installed.) Removing clvm ... Stopping Cluster LVM Daemon done. [EMAIL PROTECTED]:/etc/init.d# echo booya booya Now, if I wanted the 5 minute google answer I would have used google. It's cool to not know much, but when someone asks a question that you don't know the answer to just keep your mouth shut. I asked if there was a non-hackish way to do this besides the official way. I didn't say, "could someone give me a lecture about proper package manager usage?" On 10/30/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Send CWE-LUG mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.firepipe.net/listinfo/cwe-lug > or, via email, send a message with subject or body 'help' to > [EMAIL PROTECTED] > > You can reach the person managing the list at > [EMAIL PROTECTED] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of CWE-LUG digest..." > > > Today's Topics: > > 1. M3U creation advice? (Lamp) > 2. removing stuck packages in ubuntu (Lamp) > 3. Re: removing stuck packages in ubuntu (AgentM) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sun, 29 Oct 2006 04:18:47 -0800 > From: Lamp <[EMAIL PROTECTED]> > Subject: [cwe-lug] M3U creation advice? > To: [EMAIL PROTECTED] > Message-ID: > <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > "I've also been reading through the man pages for lame, and they don't > cover the creation of streaming audio files, so those aren't of any > help, either. I know that anything at all that can be done using > KDE, Gnome, what have you, can be done from the command line, so I'm > fine with using that too if that's my only option, but I can't even > seem to find any help there, either." > > re: streaming audio files > > you don't want to create files so much as you want to send the music > in real time to the mp3 players? I think you want to use shoutcast or > icecast to do this. Icecast2 is good. It just takes a tiny bit of > configuration. Unless you re-encode(transcode?) it then it will > stream at the bit rate you recorded it at. > > -- > [EMAIL PROTECTED] > > > > ------------------------------ > > Message: 2 > Date: Mon, 30 Oct 2006 18:56:25 +1800 > From: Lamp <[EMAIL PROTECTED]> > Subject: [cwe-lug] removing stuck packages in ubuntu > To: [EMAIL PROTECTED] > Message-ID: > <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > # aptitude search clvm > Cd clvm - Cluster LVM Daemon for lvm2 > > --- > > Can anyone tell me how to remove a package in debian/ubuntu(6.06) w/o > having to configure it? > > For some reason clvm is installed, or was trying to be installed. I > don't want it... but when I do something like "aptitude remove clvm" > it says: > > 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: > > > Is there no way to force this to occur? I don't want to have to setup > clvm or, as I've done in the past, unpacked the .deb from the package > cache, cleared out the pre-removal script so that it will run > successfully then REpack it and put it back in the cache. It seems > like there would be an option to get around this or at least some > "correct", non-hackish way. it's been annoying the piss out of me > since it tries to re-run the script everytime I do anything w/ a > package. > > > > -- > [EMAIL PROTECTED] > > > > ------------------------------ > > Message: 3 > Date: Mon, 30 Oct 2006 00:14:28 -0500 > From: AgentM <[EMAIL PROTECTED]> > Subject: Re: [cwe-lug] removing stuck packages in ubuntu > To: Central West End Linux Users Group <[EMAIL PROTECTED]> > Message-ID: > <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed > > > On Oct 29, 2006, at 19:56 , Lamp wrote: > > > # aptitude search clvm > > Cd clvm - Cluster LVM Daemon for lvm2 > > > > --- > > > > Can anyone tell me how to remove a package in debian/ubuntu(6.06) w/o > > having to configure it? > > > > For some reason clvm is installed, or was trying to be installed. I > > don't want it... but when I do something like "aptitude remove clvm" > > it says: > > > > 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 > > If the init script is complaining, it is probably for a good reason. > You don't need to unpack the package. Instead, you should identify > why the init script is failing (perhaps due to misconfiguration?) by > running it manually and checking log files. Once that is cleaned up, > you should be able to get rid of it cleanly. Working around the > protective measures put in place by the package authors is a sure way > to get unintended consequences. Good luck! > > -M > > > > ------------------------------ > > _______________________________________________ > CWE-LUG mailing list > [email protected] > http://lists.firepipe.net/listinfo/cwe-lug > > > End of CWE-LUG Digest, Vol 35, Issue 16 > *************************************** > -- [EMAIL PROTECTED] _______________________________________________ CWE-LUG mailing list [email protected] http://www.cwelug.org/ http://www.cwelug.org/archives/ http://www.cwelug.org/mailinglist/
