我正在使用 wifi 连接。我在 Ubuntu 上顺利使用互联网。直接从服务器下载,一切顺利,但当我打开终端窗口下载 VLC(其他软件也一样)时,出现以下错误:
Failed to download repository information.
Check your Internet connection.
No address associated with hostname
W:Failed to fetch Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname)
W:Failed to fetch Something wicked happened resolving 'security.ubuntu.com:http' (-5 - No address associated with hostname)
W:Failed to fetch Something wicked happened resolving 'extras.ubuntu.com:http' (-5 - No address associated with hostname)
您能帮我解决这个错误吗?
答案1
如果您已经设置了静态 IP 地址,则可能必须查找在接口配置中设置的 DNS 服务器,但如果您将其保留为动态 (DHCP),则请检查 resolv 配置(不要修改 resolv.conf,因为您的设置将不会保留。按照我在上述链接中的建议修改 BASE 文件。
如果您需要进一步帮助,请发表评论