我可以打开火狐并且运行良好,但是当我尝试运行
sudo apt update
它返回
could not resolve archive.ubuntu.com
我尝试将 wifi 设置中的 dns 服务器更改为8.8.8.8
,并8.8.4.4
尝试编辑 resolv.conf
ip 路由的输出是
default via 192.168.18.1 dev wlo1 proto dhcp metric 2600
169.254.0.0/16 dev wlo1 scope link metric 1000
192.168.0.0/16 dev wlo1 proto kernel scope link src 192.168.18.120 metric 600
systemd-resolve --status 的输出有很多详细信息,但我认为问题出在 wlan 上,其详细信息如下
Current scope : DNS
LLMNR setting : Yes
multicastdns setting : no
DNSSEC setting : no
DNSSEC supported : no
DNS servers : 192.168.18.1 8.8.8.8 8.8.4.4
# dig @192.168.18.1 archive.ubuntu.com
; <<>> DiG 9.11.3-1ubuntu1-Ubuntu <<>> @192.168.18.1 archive.ubuntu.com
; (1 server found)
;; global options: +cmd
;; connection timed out
; no servers could be reached
# dig @8.8.8.8 archive.ubuntu.com gives
; <<>> DiG 9.11.3-1ubuntu1-Ubuntu <<>> @8.8.8.8 archive.ubuntu.com
; (1 server found)
;; global options: +cmd
;; connection timed out
; no servers could be reached
# sudo nmap -p 53 -sU 192.168.18.1|grep -P '(open|closed|filtered)'
53/udp open|filtered domain
sudo nmap -p 53 -sU 8.8.8.8|grep -P '(open|closed|filtered)'
不输出任何内容