[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Broken Package: tftpd-hpa



On Fri, Mar 09, 2007 at 06:33:59PM +0100, Matt Miller wrote:
> During my latest "apt-get update" on etch the package tftpd-hpa became
> messed up.  Apparently the installation scripts were not able to stop
> the old daemon or start the new one.  If I now try to remove the package
> I'm advised that the package is in a "very bad inconsistent state," and
> I am told to reinstall the package first.  However, "apt-get --reinstall
> install" fails as described above.
> 
> I'd like to be able to see some detail on why the installation of the
> new package is failing.  I've attached what I'm seeing now.

I don't use this package, but here's my .02


> Preparing to replace tftpd-hpa 0.43-1 (using .../tftpd-hpa_0.43-1.1_amd64.deb) ...
> Stopping HPA's tftpd: in.tftpdinvoke-rc.d: initscript tftpd-hpa, action "stop" failed.

you've got to figure out why this initscript is failing. typical
reasons I've seen for initscripts failing to stop a process are: 1)
the process isn't running and the initscript is broken and doesn't
properly address this case; 2) the process has somehow changed pid's
and the initscript can't find it properly. 

there are probably multiple ways to work around this but they all
involve somehow fooling that initscript into thinking its working, or
bypassing that initscript altogether. I would confirm that the daemon
is running and if its not, start it and then try again. If that fails,
I'd probably manually kill it, mv the initscript out of the way and
replace it with one that always exits 0. You could also try removing
the package first (try using dpkg, you may have to --ignore stuff) and
then installing the new one. 

hth

A


> dpkg: warning - old pre-removal script returned error exit status 1
> dpkg - trying script from the new package instead ...
> Stopping HPA's tftpd: in.tftpdinvoke-rc.d: initscript tftpd-hpa, action "stop" failed.
> dpkg: error processing /var/cache/apt/archives/tftpd-hpa_0.43-1.1_amd64.deb (--unpack):
>  subprocess new pre-removal script returned error exit status 1
> Starting HPA's tftpd: in.tftpdinvoke-rc.d: initscript tftpd-hpa, action "start" failed.
> dpkg: error while cleaning up:
>  subprocess post-installation script returned error exit status 71
> Errors were encountered while processing:
>  /var/cache/apt/archives/tftpd-hpa_0.43-1.1_amd64.deb
> E: Sub-process /usr/bin/dpkg returned an error code (1)

Attachment: signature.asc
Description: Digital signature


Reply to: