Problema de conexão? Erros ao rodar apt-get update [RESOLVIDO]

1. Problema de conexão? Erros ao rodar apt-get update [RESOLVIDO]

Joao Rafael Alves
joaorafaelalves

(usa Ubuntu)

Enviado em 25/01/2016 - 11:56h

Ola
Estou com o seguinte problema:
A conexao no navegador funciona, porem a conexao via terminal (quado mando 'sudo apt-get update', por exemplo) nao funciona.
O que devo fazer?
Entrei no arquivo /etc/resolv.conf e acrescentei
nameserver 8.8.8.8
nameserver 4.2.2.2
Vi isso num topico ai... antes de fazer isso, nem a conexao no navegador estava funcionando.


  


2. MELHOR RESPOSTA

Perfil removido
removido

(usa Nenhuma)

Enviado em 25/01/2016 - 14:25h

Neste caso, lhe recomendo fazer backup dos dados e atualizar seu ambiente para a atual versão LTS do Ubuntu, a 14.04.

https://www.vivaolinux.com.br/dica/Qual-Ubuntu-devo-usar

Caso não possa fazer a atualização neste momento e precise instalar algum software, tente seguir o tutorial abaixo (Note que seu ambiente não recebera atualizações de segurança ou correções de bugs, podendo ficar exposto a varias vulnerabilidades falhas descobertas apos fim do suporte a versão 14.10).
https://www.vivaolinux.com.br/dica/Como-usar-o-apt-get-em-versoes-antigas-do-Ubuntu

No seu caso, o codinome é utopic


------------------------------------------------------
KISS principle, RTFM and STFW = 42

3. Re: Problema de conexão? Erros ao rodar apt-get update [RESOLVIDO]

Bruno Ricardo Rodrigues
Brunorr

(usa CentOS)

Enviado em 25/01/2016 - 13:34h

Talvez alguma regra de firewall?? Digite o comando
iptables -L 


e poste o resultado.


4. Re: Problema de conexão? Erros ao rodar apt-get update [RESOLVIDO]

Joao Rafael Alves
joaorafaelalves

(usa Ubuntu)

Enviado em 25/01/2016 - 13:47h

Brunorr escreveu:

Talvez alguma regra de firewall?? Digite o comando
iptables -L 


e poste o resultado.


modprobe: ERROR: could not insert 'ip_tables': Operation not permitted
iptables v1.4.21: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.



5. Re: Conexao

Renan Arantes
R3nan

(usa Debian)

Enviado em 25/01/2016 - 14:05h

sua conexão passa por algum proxy antes de sair pra internet ? o comando iptables que amigo indicou no post anterior precisa ter antes o comando sudo ou estar logado como root para poder listar as regras. cole aqui pra gente tb a saida do comando sudo route -n


6. Re: Problema de conexão? Erros ao rodar apt-get update [RESOLVIDO]

Joao Rafael Alves
joaorafaelalves

(usa Ubuntu)

Enviado em 25/01/2016 - 14:09h

R3nan escreveu:

sua conexão passa por algum proxy antes de sair pra internet ? o comando iptables que amigo indicou no post anterior precisa ter antes o comando sudo ou estar logado como root para poder listar as regras. cole aqui pra gente tb a saida do comando sudo route -n


A saida do comando iptables:

Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Saida do comando route:

Tabela de Roteamento IP do Kernel
Destino Roteador MáscaraGen. Opções Métrica Ref Uso Iface
0.0.0.0 192.168.16.1 0.0.0.0 UG 0 0 0 wlan0
192.168.16.0 0.0.0.0 255.255.255.0 U 9 0 0 wlan0


7. Re: Conexao

Perfil removido
removido

(usa Nenhuma)

Enviado em 25/01/2016 - 14:17h

joaorafaelalves escreveu:

Ola
Estou com o seguinte problema:
A conexao no navegador funciona, porem a conexao via terminal (quado mando 'sudo apt-get update', por exemplo) nao funciona.
O que devo fazer?
Entrei no arquivo /etc/resolv.conf e acrescentei
nameserver 8.8.8.8
nameserver 4.2.2.2
Vi isso num topico ai... antes de fazer isso, nem a conexao no navegador estava funcionando.



Mesclando seus dois tópicos, no outro sobre o mesmo problema (Removi para melhor organização do fórum), postou a versão do Ubuntu, que é a 14.10, que ja esta sem suporte, o que deve ser a causa dos erros.

joaorafaelalves escreveu:
Ola
No meu Ubuntu 14.10 a internet esta funcionando apenas no navegado.
Quando mando 'sudo apt-get update' no terminal, por exemplo, aparecem os seguinte erros:

Ign http://br.archive.ubuntu.com utopic InRelease
Ign http://br.archive.ubuntu.com utopic-updates InRelease
Ign http://br.archive.ubuntu.com utopic-backports InRelease
Ign http://br.archive.ubuntu.com utopic Release.gpg
Ign http://br.archive.ubuntu.com utopic-updates Release.gpg
Ign http://br.archive.ubuntu.com utopic-backports Release.gpg
Ign http://extras.ubuntu.com utopic InRelease
Ign http://br.archive.ubuntu.com utopic Release
Ign http://br.archive.ubuntu.com utopic-updates Release
Ign http://br.archive.ubuntu.com utopic-backports Release
Ign http://security.ubuntu.com utopic-security InRelease
Atingido http://extras.ubuntu.com utopic Release.gpg
Atingido http://extras.ubuntu.com utopic Release
Ign http://security.ubuntu.com utopic-security Release.gpg
Ign http://security.ubuntu.com utopic-security Release
Atingido http://extras.ubuntu.com utopic/main Sources
Atingido http://extras.ubuntu.com utopic/main i386 Packages
Ign http://extras.ubuntu.com utopic/main Translation-pt_BR
Atingido http://archive.canonical.com utopic InRelease
Ign http://extras.ubuntu.com utopic/main Translation-pt
Ign http://extras.ubuntu.com utopic/main Translation-en
Atingido http://archive.canonical.com utopic/partner Sources
Atingido http://archive.canonical.com utopic/partner i386 Packages
Atingido http://archive.canonical.com utopic/partner Translation-en
Err http://br.archive.ubuntu.com utopic/main Sources
404 Not Found [IP: 200.236.31.4 80]
Err http://br.archive.ubuntu.com utopic/restricted Sources
404 Not Found [IP: 200.236.31.4 80]
Err http://br.archive.ubuntu.com utopic/universe Sources
404 Not Found [IP: 200.236.31.4 80]
Err http://br.archive.ubuntu.com utopic/multiverse Sources
404 Not Found [IP: 200.236.31.4 80]
Err http://br.archive.ubuntu.com utopic/main i386 Packages
404 Not Found [IP: 200.236.31.4 80]
Err http://br.archive.ubuntu.com utopic/restricted i386 Packages
404 Not Found [IP: 200.236.31.4 80]
Err http://br.archive.ubuntu.com utopic/universe i386 Packages
404 Not Found [IP: 200.236.31.4 80]
Err http://br.archive.ubuntu.com utopic/multiverse i386 Packages
404 Not Found [IP: 200.236.31.4 80]
Ign http://br.archive.ubuntu.com utopic/main Translation-pt_BR
Ign http://br.archive.ubuntu.com utopic/main Translation-pt
Ign http://br.archive.ubuntu.com utopic/main Translation-en
Ign http://br.archive.ubuntu.com utopic/multiverse Translation-pt_BR
Ign http://br.archive.ubuntu.com utopic/multiverse Translation-pt
Ign http://br.archive.ubuntu.com utopic/multiverse Translation-en
Ign http://br.archive.ubuntu.com utopic/restricted Translation-pt_BR
Ign http://br.archive.ubuntu.com utopic/restricted Translation-pt
Ign http://br.archive.ubuntu.com utopic/restricted Translation-en
Ign http://br.archive.ubuntu.com utopic/universe Translation-pt_BR
Ign http://br.archive.ubuntu.com utopic/universe Translation-pt
Ign http://br.archive.ubuntu.com utopic/universe Translation-en
Err http://br.archive.ubuntu.com utopic-updates/main Sources
404 Not Found [IP: 200.236.31.4 80]
Err http://br.archive.ubuntu.com utopic-updates/restricted Sources
404 Not Found [IP: 200.236.31.4 80]
Err http://br.archive.ubuntu.com utopic-updates/universe Sources
404 Not Found [IP: 200.236.31.4 80]
Err http://br.archive.ubuntu.com utopic-updates/multiverse Sources
404 Not Found [IP: 200.236.31.4 80]
Err http://br.archive.ubuntu.com utopic-updates/main i386 Packages
404 Not Found [IP: 200.236.31.4 80]
Err http://br.archive.ubuntu.com utopic-updates/restricted i386 Packages
404 Not Found [IP: 200.236.31.4 80]
Err http://br.archive.ubuntu.com utopic-updates/universe i386 Packages
404 Not Found [IP: 200.236.31.4 80]
Err http://br.archive.ubuntu.com utopic-updates/multiverse i386 Packages
404 Not Found [IP: 200.236.31.4 80]
Ign http://br.archive.ubuntu.com utopic-updates/main Translation-pt_BR
Ign http://br.archive.ubuntu.com utopic-updates/main Translation-pt
Ign http://br.archive.ubuntu.com utopic-updates/main Translation-en
Ign http://br.archive.ubuntu.com utopic-updates/multiverse Translation-pt_BR
Ign http://br.archive.ubuntu.com utopic-updates/multiverse Translation-pt
Ign http://br.archive.ubuntu.com utopic-updates/multiverse Translation-en
Ign http://br.archive.ubuntu.com utopic-updates/restricted Translation-pt_BR
Ign http://br.archive.ubuntu.com utopic-updates/restricted Translation-pt
Ign http://br.archive.ubuntu.com utopic-updates/restricted Translation-en
Ign http://br.archive.ubuntu.com utopic-updates/universe Translation-pt_BR
Ign http://br.archive.ubuntu.com utopic-updates/universe Translation-pt
Ign http://br.archive.ubuntu.com utopic-updates/universe Translation-en
Err http://br.archive.ubuntu.com utopic-backports/main Sources
404 Not Found [IP: 200.236.31.4 80]
Err http://br.archive.ubuntu.com utopic-backports/restricted Sources
404 Not Found [IP: 200.236.31.4 80]
Err http://br.archive.ubuntu.com utopic-backports/universe Sources
404 Not Found [IP: 200.236.31.4 80]
Err http://br.archive.ubuntu.com utopic-backports/multiverse Sources
404 Not Found [IP: 200.236.31.4 80]
Err http://br.archive.ubuntu.com utopic-backports/main i386 Packages
404 Not Found [IP: 200.236.31.4 80]
Err http://br.archive.ubuntu.com utopic-backports/restricted i386 Packages
404 Not Found [IP: 200.236.31.4 80]
Err http://br.archive.ubuntu.com utopic-backports/universe i386 Packages
404 Not Found [IP: 200.236.31.4 80]
Err http://br.archive.ubuntu.com utopic-backports/multiverse i386 Packages
404 Not Found [IP: 200.236.31.4 80]
Ign http://br.archive.ubuntu.com utopic-backports/main Translation-pt_BR
Ign http://br.archive.ubuntu.com utopic-backports/main Translation-pt
Ign http://br.archive.ubuntu.com utopic-backports/main Translation-en
Ign http://br.archive.ubuntu.com utopic-backports/multiverse Translation-pt_BR
Ign http://br.archive.ubuntu.com utopic-backports/multiverse Translation-pt
Ign http://br.archive.ubuntu.com utopic-backports/multiverse Translation-en
Ign http://br.archive.ubuntu.com utopic-backports/restricted Translation-pt_BR
Ign http://br.archive.ubuntu.com utopic-backports/restricted Translation-pt
Ign http://br.archive.ubuntu.com utopic-backports/restricted Translation-en
Ign http://br.archive.ubuntu.com utopic-backports/universe Translation-pt_BR
Ign http://br.archive.ubuntu.com utopic-backports/universe Translation-pt
Ign http://br.archive.ubuntu.com utopic-backports/universe Translation-en
Err http://security.ubuntu.com utopic-security/main Sources
404 Not Found [IP: 91.189.88.152 80]
Err http://security.ubuntu.com utopic-security/restricted Sources
404 Not Found [IP: 91.189.88.152 80]
Err http://security.ubuntu.com utopic-security/universe Sources
404 Not Found [IP: 91.189.88.152 80]
Err http://security.ubuntu.com utopic-security/multiverse Sources
404 Not Found [IP: 91.189.88.152 80]
Err http://security.ubuntu.com utopic-security/main i386 Packages
404 Not Found [IP: 91.189.88.152 80]
Err http://security.ubuntu.com utopic-security/restricted i386 Packages
404 Not Found [IP: 91.189.88.152 80]
Err http://security.ubuntu.com utopic-security/universe i386 Packages
404 Not Found [IP: 91.189.88.152 80]
Err http://security.ubuntu.com utopic-security/multiverse i386 Packages
404 Not Found [IP: 91.189.88.152 80]
Ign http://security.ubuntu.com utopic-security/main Translation-pt_BR
Ign http://security.ubuntu.com utopic-security/main Translation-pt
Ign http://security.ubuntu.com utopic-security/main Translation-en
Ign http://security.ubuntu.com utopic-security/multiverse Translation-pt_BR
Ign http://security.ubuntu.com utopic-security/multiverse Translation-pt
Ign http://security.ubuntu.com utopic-security/multiverse Translation-en
Ign http://security.ubuntu.com utopic-security/restricted Translation-pt_BR
Ign http://security.ubuntu.com utopic-security/restricted Translation-pt
Ign http://security.ubuntu.com utopic-security/restricted Translation-en
Ign http://security.ubuntu.com utopic-security/universe Translation-pt_BR
Ign http://security.ubuntu.com utopic-security/universe Translation-pt
Ign http://security.ubuntu.com utopic-security/universe Translation-en
W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/utopic/main/source/Sources 404 Not Found [IP: 200.236.31.4 80]

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/utopic/restricted/source/Sources 404 Not Found [IP: 200.236.31.4 80]

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/utopic/universe/source/Sources 404 Not Found [IP: 200.236.31.4 80]

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/utopic/multiverse/source/Sources 404 Not Found [IP: 200.236.31.4 80]

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/utopic/main/binary-i386/Packages 404 Not Found [IP: 200.236.31.4 80]

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/utopic/restricted/binary-i386/Packages 404 Not Found [IP: 200.236.31.4 80]

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/utopic/universe/binary-i386/Packages 404 Not Found [IP: 200.236.31.4 80]

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/utopic/multiverse/binary-i386/Packages 404 Not Found [IP: 200.236.31.4 80]

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/utopic-updates/main/source/Sources 404 Not Found [IP: 200.236.31.4 80]

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/utopic-updates/restricted/source/Sources 404 Not Found [IP: 200.236.31.4 80]

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/utopic-updates/universe/source/Sources 404 Not Found [IP: 200.236.31.4 80]

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/utopic-updates/multiverse/source/Sources 404 Not Found [IP: 200.236.31.4 80]

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/utopic-updates/main/binary-i386/Packages 404 Not Found [IP: 200.236.31.4 80]

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/utopic-updates/restricted/binary-i386/Packages 404 Not Found [IP: 200.236.31.4 80]

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/utopic-updates/universe/binary-i386/Packages 404 Not Found [IP: 200.236.31.4 80]

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/utopic-updates/multiverse/binary-i386/Packages 404 Not Found [IP: 200.236.31.4 80]

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/utopic-backports/main/source/Sources 404 Not Found [IP: 200.236.31.4 80]

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/utopic-backports/restricted/source/Sources 404 Not Found [IP: 200.236.31.4 80]

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/utopic-backports/universe/source/Sources 404 Not Found [IP: 200.236.31.4 80]

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/utopic-backports/multiverse/source/Sources 404 Not Found [IP: 200.236.31.4 80]

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/utopic-backports/main/binary-i386/Packages 404 Not Found [IP: 200.236.31.4 80]

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/utopic-backports/restricted/binary-i386/Packages 404 Not Found [IP: 200.236.31.4 80]

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/utopic-backports/universe/binary-i386/Packages 404 Not Found [IP: 200.236.31.4 80]

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/utopic-backports/multiverse/binary-i386/Packages 404 Not Found [IP: 200.236.31.4 80]

W: Falhou ao buscar http://security.ubuntu.com/ubuntu/dists/utopic-security/main/source/Sources 404 Not Found [IP: 91.189.88.152 80]

W: Falhou ao buscar http://security.ubuntu.com/ubuntu/dists/utopic-security/restricted/source/Sources 404 Not Found [IP: 91.189.88.152 80]

W: Falhou ao buscar http://security.ubuntu.com/ubuntu/dists/utopic-security/universe/source/Sources 404 Not Found [IP: 91.189.88.152 80]

W: Falhou ao buscar http://security.ubuntu.com/ubuntu/dists/utopic-security/multiverse/source/Sources 404 Not Found [IP: 91.189.88.152 80]

W: Falhou ao buscar http://security.ubuntu.com/ubuntu/dists/utopic-security/main/binary-i386/Packages 404 Not Found [IP: 91.189.88.152 80]

W: Falhou ao buscar http://security.ubuntu.com/ubuntu/dists/utopic-security/restricted/binary-i386/Packages 404 Not Found [IP: 91.189.88.152 80]

W: Falhou ao buscar http://security.ubuntu.com/ubuntu/dists/utopic-security/universe/binary-i386/Packages 404 Not Found [IP: 91.189.88.152 80]

W: Falhou ao buscar http://security.ubuntu.com/ubuntu/dists/utopic-security/multiverse/binary-i386/Packages 404 Not Found [IP: 91.189.88.152 80]

E: Falhou o download de alguns ficheiros de índice. Foram ignorados ou os antigos foram usados em seu lugar.


Alguem poderia me ajudar?

Abracos

------------------------------------------------------
KISS principle, RTFM and STFW = 42


8. Re: Problema de conexão? Erros ao rodar apt-get update [RESOLVIDO]

Renan Arantes
R3nan

(usa Debian)

Enviado em 25/01/2016 - 14:28h

boa siga a dica do erisrjr o problema é no source.list da versão desatualizada, provavelmente o servidor não esta mais disponível. não é problema de conexão


9. Re: Problema de conexão? Erros ao rodar apt-get update [RESOLVIDO]

Joao Rafael Alves
joaorafaelalves

(usa Ubuntu)

Enviado em 26/01/2016 - 13:12h

Obrigado pela dica... coloquei a versão 14.04 e deu tudo certo. Eu pensava que pelo simples fato de 14.10 ser uma versão mais recente do Ubuntu que 14.04, ela seria melhor.
Não sabia nada sobre fim de suporte de versões.
Obrigado a todos pela rápida mobilização em ajudar.







Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts