Installation fails with "hostname: Name or service not known"

Bug #582191 reported by Sebastian Krysmanski on 2010-05-18
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
ssmtp (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: ssmtp

On my server I changed the server's hostname (in /etc/hostname) but forgot to update /etc/hosts. This then resulted in "hostname --fqdn" to fail which again led to ssmtp's installation script to fail. I suggest that there should be a fallback if "hostname" fails (in "postinst" line 22).

I'm using Ubuntu 10.04 with ssmtp 2.64-4fakesync1.

Chris Ingram (cingram) wrote :

I am seeing the same problem when trying to upgrade to Ubuntu 10.04, but for the dovecot-common package.

Ian Neubert (ianneub) wrote :

I am also seeing this issue using Precise (12.04) and Amazon EC2 inside a VPC (VPC's do not get FQDN hostnames).

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ssmtp (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers