我安装了 Ubuntu 22.04,我想使用 GNOME 的在线帐户管理器,但是收到了这个奇怪的消息:
经过一番研究,我发现它可能与 DNS /etc/hosts 和 /etc/hostname 文件有关:-
#etc/hosts file's content
127.0.0.1 localhost
127.0.1.1 VM
127.0.0.1 felix
# 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
# This server name is used by several labs, including
# XSS, CSRF, SQL injection, Shellshock, Hash length extension labs
10.9.0.5 www.seed-server.com
# Added by Docker Desktop
# To allow the same kube context to work on the host and the container:
127.0.0.1 kubernetes.docker.internal
# End of section
etc/host 文件
felix
但是 IP“10.20.205.124”不在这些文件中。甚至奇怪的是,当我尝试通过 Ubuntu 软件应用程序安装任何软件时,我都会收到同样的错误
当我尝试使用以下 2 个命令安装 flatpak 时,在一个看似不相关的地方出现了相同的错误:
sudo apt install flatpak
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
error: Can't load uri https://flathub.org/repo/flathub.flatpakrepo: Error resolving “10.20.205.124 ”: Name or service not known
令人惊讶的是,当我赋予它 sudo 权限时,这个错误消失了!
能猜一下问题是什么或者在哪里吗?
编辑#1 这是我的代理设置:
$ echo $http_proxy
http://10.20.205.124 :8080/