我正在使用Ubuntu 10.04 LTS,当我键入命令时hostname --fqdn
,收到消息:hostname: Name or service not known
。
因此,我无法global
成功安装,并且在尝试时出现以下错误:
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
在下面。
# /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
是否有人对这意味着什么以及如何解决这个问题有任何想法?