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

Madison Kelly linux-5ZoueyuiTZhBDgjK7y7TUQ at public.gmane.org
Tue Nov 3 21:24:06 UTC 2009


William O'Higgins Witteman 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.

Madi
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list