[mythtv-users] HELP! Unable to remove apcd package ubuntu edgy.

Stef Coene stef.coene at docum.org
Thu May 10 20:10:00 UTC 2007


On Thursday 10 May 2007, William Munson wrote:
> David Campbell wrote:
> > William Munson wrote:
> >> I mistakenly installed the apcd package from ubuntu universe and now
> >> need to remove it however apt-get gives me an error when trying to
> >> remove it. Now I am unable to install the correct package to
> >> control/monitor my APC ups supply. HELP!!!!!!!
> >>
> >> I even tried to force the removal with no luck. What can I do other than
> >> erase the drive and start over?
> >
> > what is the error?
>
> That would help wouldn't it?
>
> root at mythtv:/dev/mapper# apt-get -f remove apcd
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> The following packages were automatically installed and are no longer
> required:
>   apcd
> Use 'apt-get autoremove' to remove them.
> The following packages will be REMOVED:
>   apcd
> 0 upgraded, 0 newly installed, 1 to remove and 18 not upgraded.
> Need to get 0B of archives.
> After unpacking 127kB disk space will be freed.
> Do you want to continue [Y/n]?
> (Reading database ... 165000 files and directories currently installed.)
> Removing apcd ...
> Stopping APC Smart UPS Daemon: apcdinvoke-rc.d: initscript apcd, action
> "stop" failed.
> dpkg: error processing apcd (--remove):
>  subprocess pre-removal script returned error exit status 1
> Starting APC Smart UPS Daemon: apcd.
> Errors were encountered while processing:
>  apcd
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> root at mythtv:/dev/mapper#
A quick hack: put exit as the second line in the start apc script 
in /etc/init.d/  (I don't know the exact name of the script).  That way stop 
will succeed.


Stef



More information about the mythtv-users mailing list