我的迷你服务器出问题了。
当我试图启动服务器时,minidlna给出以下错误。
Sudo: unable to resolve host .............. (本地服务器)
我找不到问题所在。
我用的是ubuntu 12.04
发布于 2013-10-07 20:53:35
您应该能够通过编辑/etc/hosts文件来修复它:
sudo nano /etc/hosts(来自航站楼)
我在这里写我的/etc/hosts:
127.0.0.1 localhost
127.0.1.1 CurrentHostname
# 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您至少应该在第二行中具有正确(当前)主机名的前两行。使用命令hostname获得正确的主机名。
过一段时间,这个问题就会消失。
编辑得很好!
https://askubuntu.com/questions/354964
复制相似问题