我在 Devuan Daedalus 上通过 WiFi 路由器使用互联网。
我可以通过浏览器访问互联网,在终端中使用 定期下载yt-dlp
并使用 安装/升级。但是当我使用或安装/更新/升级软件包时,它不起作用。pipx
apt
synaptic
看起来很奇怪,但是为什么无法 apt
访问synaptic
互联网?
有人能帮忙吗?还需要其他信息吗?
~$ ping www.duckduckgo.com
PING duckduckgo.com (20.204.244.192) 56(84) bytes of data.
64 bytes from 20.204.244.192 (20.204.244.192): icmp_seq=1 ttl=115 time=159 ms
64 bytes from 20.204.244.192 (20.204.244.192): icmp_seq=2 ttl=115 time=41.2 ms
64 bytes from 20.204.244.192 (20.204.244.192): icmp_seq=3 ttl=115 time=49.6 ms
64 bytes from 20.204.244.192 (20.204.244.192): icmp_seq=4 ttl=115 time=40.6 ms
64 bytes from 20.204.244.192 (20.204.244.192): icmp_seq=5 ttl=115 time=44.9 ms
64 bytes from 20.204.244.192 (20.204.244.192): icmp_seq=6 ttl=115 time=41.5 ms
^C
--- duckduckgo.com ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5007ms
rtt min/avg/max/mdev = 40.573/62.843/159.275/43.234 ms
1 这是我的sources.list
###############
# local repos #
###############
deb [trusted=yes] file:///home/vrgovinda/offline-backup/daedalus-deb-files/ ./
deb [trusted=yes] file:///media/devuan-dvd-1/ daedalus main non-free contrib non-free-firmware
##################
# standard repos #
##################
deb http://deb.devuan.org/merged daedalus main contrib non-free non-free-firmware
deb http://deb.devuan.org/merged daedalus-updates main contrib non-free non-free-firmware
deb http://deb.devuan.org/merged daedalus-security main contrib non-free non-free-firmware
2 结果nslookup
~$ nslookup deb.devuan.org
Server: 192.168.0.1
Address: 192.168.0.1#53
Non-authoritative answer:
deb.devuan.org canonical name = deb.rr.devuan.org.
Name: deb.rr.devuan.org
Address: 195.85.215.180
Name: deb.rr.devuan.org
Address: 125.228.189.120
Name: deb.rr.devuan.org
Address: 46.4.50.2
Name: deb.rr.devuan.org
Address: 106.178.112.231
Name: deb.rr.devuan.org
Address: 131.188.12.211
Name: deb.rr.devuan.org
Address: 147.78.194.22
Name: deb.rr.devuan.org
Address: 130.225.254.116
Name: deb.rr.devuan.org
Address: 95.216.15.86
Name: deb.rr.devuan.org
Address: 202.61.197.17
Name: deb.rr.devuan.org
Address: 5.161.180.234
Name: deb.rr.devuan.org
Address: 103.146.168.12
Name: deb.rr.devuan.org
Address: 67.219.104.166
Name: deb.rr.devuan.org
Address: 198.58.118.8
Name: deb.rr.devuan.org
Address: 160.16.137.156
Name: deb.rr.devuan.org
Address: 185.183.113.131
Name: deb.rr.devuan.org
Address: 200.236.31.1
Name: deb.rr.devuan.org
Address: 94.16.114.15
Name: deb.rr.devuan.org
Address: 141.84.43.19
Name: deb.rr.devuan.org
Address: 185.178.192.43
Name: deb.rr.devuan.org
Address: 185.236.240.103
Name: deb.rr.devuan.org
Address: 190.64.49.124
;; Truncated, retrying in TCP mode.
;; ERROR: ID mismatch: expected ID 48572, got 6849
~$
3 不,没有代理。
4 错误消息
W: Failed to fetch http://deb.devuan.org/merged/dists/daedalus/InRelease Temporary failure resolving 'deb.devuan.org'
W: Failed to fetch http://deb.devuan.org/merged/dists/daedalus-updates/InRelease Temporary failure resolving 'deb.devuan.org'
W: Failed to fetch http://deb.devuan.org/merged/dists/daedalus-security/InRelease Temporary failure resolving 'deb.devuan.org'
5 其他细节
$ grep hosts: /etc/nsswitch.conf
hosts: files mdns4_minimal [NOTFOUND=return] dns
$ getent hosts deb.devuan.org
<The cursor just blinks continuously.And returns back to the prompt after a minute>
~$ apt-config dump | grep -i proxy
~$
首先引起注意的是你的 nslookup:
192.168.0.1 不是全局 IP 地址,通常仅在您的家庭/实验室/企业网络内找到。
有一个图形流程图可以帮助解决“给您错误的 IP”。
更详细的信息可帮助您确定哪五种方法
/etc/resolv.conf
可以得到正确设置。https://tailscale.com/blog/sisyphean-dns-client-linux
访问 deb.devuan.org 时出现问题。(我不清楚具体情况;有人说这与循环服务器有关)
当我将镜子换成 时
http://dev1.ipacct.in/
,一切都正常了。谢谢大家的意见!从你们的评论和回答中我学到了很多东西...
问候。