I have the same problem.  It occurred during an upgrade from gutsy to
hardy.  I used the trick above "dpkg --configure -a" to complete the
upgrade, but I continue to have this error any time I do anything with
apt.  I have found no way to remove this package or deselect it.   Any
ideas?

Error message
----------
~$ sudo apt-get purge tftpd-hpa
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libfaad2-0 liblzo1 libgoffice-0-common libmp4v2-0 libvte2.0-cil python-qt3 
libntfs9
  libgoffice-0-4 libxine1-gnome libungif4g
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  tftpd-hpa*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 152kB disk space will be freed.
Do you want to continue [Y/n]?
dpkg: error processing tftpd-hpa (--purge):
 Package is in a very bad inconsistent state - you should
 reinstall it before attempting a removal.
Errors were encountered while processing:
 tftpd-hpa
E: Sub-process /usr/bin/dpkg returned an error code (1)

/var/log/term.log
----------
Log started: 2008-06-30  11:19:43
Selecting previously deselected package tftpd-hpa.
(Reading database ... 241212 files and directories currently installed.)
Preparing to replace tftpd-hpa 0.43-1.1ubuntu1 (using 
.../tftpd-hpa_0.48-1ubuntu1_i386.deb)
...
Stopping HPA's tftpd: in.tftpdinvoke-rc.d: initscript tftpd-hpa, action "stop" 
failed.
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.48-1ubuntu1_i386.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.48-1ubuntu1_i386.deb
Log ended: 2008-06-30  11:19:46

Log started: 2008-06-30  11:20:01
dpkg: error processing tftpd-hpa (--purge):
 Package is in a very bad inconsistent state - you should
 reinstall it before attempting a removal.
Errors were encountered while processing:
 tftpd-hpa
Log ended: 2008-06-30  11:20:03

/var/log/dpkg.log
---------------------------------
2008-06-30 11:25:43 startup packages purge
2008-06-30 11:25:43 status half-configured tftpd-hpa 0.43-1.1ubuntu1



Regards

-- 
package tftpd-hpa 0.43-1ubuntu2 failed to install/upgrade: subprocess new 
pre-removal script returned error exit status 1
https://bugs.launchpad.net/bugs/147520
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to