Thursday, February 28, 2008

Ubuntu Bug #158706 Verified

A couple months ago I submitted a bug. Today they confirmed it. (I made a good report)

When installing the package netatalk 2.0.3-6ubuntu1 on Ubuntu 7.10, the following errors occur:

hostname: Unknown host
invoke-rc.d: initscript netatalk, action "stop" failed.
dpkg: warning - old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
hostname: Unknown host
invoke-rc.d: initscript netatalk, action "stop" failed.
dpkg: error processing /var/cache/apt/archives/netatalk_2.0.3-6ubuntu1_i386.deb (--unpack):
 subprocess new pre-removal script returned error exit status 1
hostname: Unknown host
invoke-rc.d: initscript netatalk, action "start" failed.
dpkg: error while cleaning up:
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/netatalk_2.0.3-6ubuntu1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
dpkg: error processing netatalk (--configure):
 Package is in a very bad inconsistent state - you should
 reinstall it before attempting configuration.
Errors were encountered while processing:
 netatalk
Press return to continue.


How to fix it:

  1. edit /etc/default/netatalk

    FROM: ATALK_NAME=`/bin/hostname --short`

    TO: ATALK_NAME=`/bin/hostname`
  2. edit /etc/init.d/netatalk

    FROM: ATALK_NAME=`/bin/hostname --short`

    TO: ATALK_NAME=`/bin/hostname`


Updates:

  • Submitted Feb 28, 2008
  • Marked as a duplicate of Bug 109917 on October 10, 2010

No comments: