Netatalk fails to install

Bug #158076 reported by Ian Weisser
8
Affects Status Importance Assigned to Milestone
netatalk (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: netatalk

ian@cheesebot-supremo:~$ aptitude
Selecting previously deselected package netatalk.
(Reading database ... 202964 files and directories currently installed.)
Preparing to replace netatalk 2.0.3-6ubuntu1 (using .../netatalk_2.0.3-6ubuntu1_i386.deb) ...
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.

------
Fixed by changing two files:
1) /etc/default/netatalk
FROM: ATALK_NAME=`/bin/hostname --short`
TO: ATALK_NAME=`/bin/hostname`

2) /etc/init.d/netatalk
FROM: ATALK_NAME=`/bin/hostname --short`
TO: ATALK_NAME=`/bin/hostname`

-----
After the changes, seems to work normally: (Hooray!)

ian@cheesebot-supremo:~$ sudo apt-get upgrade netatalk
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up netatalk (2.0.3-6ubuntu1) ...
Starting Netatalk services (this will take a while): eth1: disabled.
 atalkd afpd papd.

ian@cheesebot-supremo:~$

ProblemType: Bug
Architecture: i386
Date: Sun Oct 28 10:27:41 2007
DistroRelease: Ubuntu 7.10
Uname: Linux cheesebot-supremo 2.6.22-14-generic #1 SMP Sun Oct 14 23:05:12 GMT 2007 i686 GNU/Linux

Tags: apport-bug
Revision history for this message
Efrain Valles (effie-jayx) wrote :

I can confirm this bug. It fails to install.

Changed in netatalk:
status: New → Confirmed
Revision history for this message
Fredrik Bränström (branstrom) wrote :

Hmm. netatalk runs on my box - only, it shows "localhost" to the clients, and then Finder on OS X thinks every server is the same computer.

Fixed it by changing /bin/hostname --short to /bin/hostname, though.

Is there a reason this hasn't been made the default behavior yet?

Revision history for this message
Ian Weisser (ian-weisser) wrote :

This particular bug has already been reported and is a duplicate of bug 109917, so it is being marked as such. Any further discussion regarding the bug should occur in the other report.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.