Debian upgrade gone wrong - hostname: Name or service not known

William O'Higgins Witteman william.ohiggins-H217xnMUJC0sA/PxXw9srA at public.gmane.org
Tue Nov 3 21:35:54 UTC 2009


On Tue, Nov 03, 2009 at 04:24:06PM -0500, Madison Kelly wrote:
>>I have encountered one of the rare occasions where a Debian upgrade goes
>>wrong:
>>
>>(Reading database ... 76966 files and directories currently installed.)
>>Preparing to replace netatalk 2.0.4-1 (using
>>.../netatalk_2.0.4-2_i386.deb) ...
>>hostname: Name or service not known
>>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: Name or service not known
>>invoke-rc.d: initscript netatalk, action "stop" failed.
>>dpkg: error processing /var/cache/apt/archives/netatalk_2.0.4-2_i386.deb
>>(--unpack):
>>subprocess new pre-removal script returned error exit status 1
>>update-rc.d: warning: netatalk stop runlevel arguments (0 1 6) do not
>>match LSB Default-Stop values (1)
>>hostname: Name or service not known
>>invoke-rc.d: initscript netatalk, action "start" failed.
>>dpkg: error while cleaning up:
>>subprocess installed post-installation script returned error exit
>>status 1
>>Errors were encountered while processing:
>>/var/cache/apt/archives/netatalk_2.0.4-2_i386.deb
>>E: Sub-process /usr/bin/dpkg returned an error code (1)
>>
>>I am looking for solutions, but I could really use a hand if someone
>>knows how to fix this.  Thanks.
>
>Check that '/etc/hostname' contains just the name of your system
>followed by a new line and nothing else. Then try running 'hostname
><machinename>' and hit enter. Then try again.

There was a problem with the way that the /etc/init.d/netatalk was
calling hostname, but doing as you suggest didn't fix it.

However, I commented out everything in the script, and dpkg was then
able to unwedge itself enough to get through the rest of the upgrade.

I wasn't using netatalk, so I have removed it.  Thanks a bunch.
-- 

yours,

William

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: Digital signature
URL: <http://gtalug.org/pipermail/legacy/attachments/20091103/8734670a/attachment.sig>


More information about the Legacy mailing list