I'm using Ubuntu 10.04 LTS, and when I type the command
hostname --fqdn, I get the message:
hostname: Name or service not known.
Because of this, I cannot install
global successfully, and get the following error when I try:
Setting up global (5.7.1-1) ... hostname: Name or service not known dpkg: error processing global (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: global E: Sub-process /usr/bin/dpkg returned an error code (1)
/etc/nsswitch.conf is below.
# /etc/nsswitch.conf # # Example configuration of GNU Name Service Switch functionality. # If you have the `glibc-doc-reference' and `info' packages installed, try: # `info libc "Name Service Switch"' for information about this file. passwd: compat group: compat shadow: compat hosts: files dns networks: files protocols: db files services: db files ethers: db files rpc: db files netgroup: nis
Does anyone have any ideas on what this means and how I can fix this?