public
Created

fqdn

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
thufir@dur:~$
thufir@dur:~$ sudo echo "hostname wrong"
sudo: unable to resolve host dur
hostname wrong
thufir@dur:~$
thufir@dur:~$ cat /etc/hostname
dur
thufir@dur:~$
thufir@dur:~$ cat /etc/hosts
127.0.0.1 localhost
#127.0.1.1 dur
127.0.1.1 dur.bounceme.net
 
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
thufir@dur:~$
thufir@dur:~$ hostname
dur
thufir@dur:~$
thufir@dur:~$ sudo aptitude install -y inn2
sudo: unable to resolve host dur
The following NEW packages will be installed:
inn2 inn2-inews{a} libconvert-binhex-perl{a} libmime-tools-perl{a}
0 packages upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/4,349 kB of archives. After unpacking 10.4 MB will be used.
Selecting previously deselected package inn2-inews.
(Reading database ... 185240 files and directories currently installed.)
Unpacking inn2-inews (from .../inn2-inews_2.5.2+20110413-1_i386.deb) ...
Selecting previously deselected package libconvert-binhex-perl.
Unpacking libconvert-binhex-perl (from .../libconvert-binhex-perl_1.119+pristine-3_all.deb) ...
Selecting previously deselected package libmime-tools-perl.
Unpacking libmime-tools-perl (from .../libmime-tools-perl_5.502-1_all.deb) ...
Processing triggers for man-db ...
Setting up inn2-inews (2.5.2+20110413-1) ...
Selecting previously deselected package inn2.
(Reading database ... 185334 files and directories currently installed.)
Unpacking inn2 (from .../inn2_2.5.2+20110413-1_i386.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up libconvert-binhex-perl (1.119+pristine-3) ...
Setting up libmime-tools-perl (5.502-1) ...
Setting up inn2 (2.5.2+20110413-1) ...
innconfval: hostname does not resolve or domain not set in inn.conf
dpkg: error processing inn2 (--configure):
subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already
Errors were encountered while processing:
inn2
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up inn2 (2.5.2+20110413-1) ...
innconfval: hostname does not resolve or domain not set in inn.conf
dpkg: error processing inn2 (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
inn2
thufir@dur:~$
thufir@dur:~$

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.