Estou em Devuan Daedalus usando internet via roteador WiFi.
Eu consigo acessar a internet em um navegador, baixar regularmente usando yt-dlp
e instalar/atualizar usando pipx
no terminal. Mas quando eu instalo/atualizo/atualizo pacotes usando apt
ou synaptic
, isso não funciona.
Parece muito estranho, mas por que não consigo apt
acessar synaptic
a internet?
Alguém pode ajudar? Alguma outra informação necessária?
~$ 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 Aqui está meusources.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 O resultado denslookup
~$ 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 Não, não há proxy.
4 Mensagem de erro
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 Outros detalhes
$ 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
~$
A primeira coisa que chama a atenção é o seu nslookup:
que 192.168.0.1 não é um endereço IP global e normalmente só é encontrado dentro da sua rede doméstica/laboratório/empresarial.
Há um fluxograma gráfico para ajudar a resolver o "IP ruim que está sendo fornecido a você".
Mais detalhes sobre como determinar qual das cinco maneiras
/etc/resolv.conf
pode ser configurada corretamente.https://tailscale.com/blog/sisyphean-dns-client-linux
Houve um problema ao acessar deb.devuan.org. (Não sei os detalhes; alguém disse que tem a ver com servidores round robin)
Quando troquei o espelho para
http://dev1.ipacct.in/
, tudo funcionou bem.Obrigado a todos pelas suas contribuições! Aprendi algumas coisas com seus comentários e respostas...
Cumprimentos.