Apt-get não funciona [RESOLVIDO]

1. Apt-get não funciona [RESOLVIDO]

Douglas Bastos
douglasbastos

(usa Ubuntu)

Enviado em 31/08/2014 - 21:41h

Galera já procurei todos as soluções de pesquisar que o google me ofereceu, incluse algumas aqui e não consegui resolver meu problema.

Sempre que tendo fazer qualquer operação com apt-get ele tenda se conectar e depois um tempo sem achar nada retorna os seguinte erros

Ign http://extras.ubuntu.com trusty InRelease
Err http://extras.ubuntu.com trusty Release.gpg
Não foi possível ligar a 10.230.22.68:3140:
Ign http://extras.ubuntu.com trusty Release
Err http://extras.ubuntu.com trusty/main Sources
Não foi possível ligar a 10.230.22.68:3140:
Err http://extras.ubuntu.com trusty/main amd64 Packages
Não foi possível ligar a 10.230.22.68:3140:
Err http://extras.ubuntu.com trusty/main Translation-pt_BR
Não foi possível ligar a 10.230.22.68:3140:
Err http://extras.ubuntu.com trusty/main Translation-pt
Não foi possível ligar a 10.230.22.68:3140:
Err http://extras.ubuntu.com trusty/main Translation-en
Não foi possível ligar a 10.230.22.68:3140:
Err http://archive.canonical.com trusty InRelease

Err http://archive.canonical.com trusty Release.gpg
Não foi possível ligar a 10.230.22.68:3140:
Err http://security.ubuntu.com trusty-security InRelease

Err http://security.ubuntu.com trusty-security Release.gpg
Não foi possível ligar a 10.230.22.68:3140:
Err http://br.archive.ubuntu.com trusty InRelease

Err http://br.archive.ubuntu.com trusty-updates InRelease

Err http://br.archive.ubuntu.com trusty-backports InRelease

Err http://br.archive.ubuntu.com trusty Release.gpg
Não foi possível ligar a 10.230.22.68:3140:
Err http://br.archive.ubuntu.com trusty-updates Release.gpg
Não foi possível ligar a 10.230.22.68:3140:
Err http://br.archive.ubuntu.com trusty-backports Release.gpg
Não foi possível ligar a 10.230.22.68:3140:
W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/trusty/InRelease

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/trusty-updates/InRelease

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/trusty-backports/InRelease

W: Falhou ao buscar http://security.ubuntu.com/ubuntu/dists/trusty-security/InRelease

W: Falhou ao buscar http://archive.canonical.com/ubuntu/dists/trusty/InRelease

W: Falhou ao buscar http://extras.ubuntu.com/ubuntu/dists/trusty/Release.gpg Não foi possível ligar a 10.230.22.68:3140:

W: Falhou ao buscar http://extras.ubuntu.com/ubuntu/dists/trusty/main/source/Sources Não foi possível ligar a 10.230.22.68:3140:

W: Falhou ao buscar http://extras.ubuntu.com/ubuntu/dists/trusty/main/binary-amd64/Packages Não foi possível ligar a 10.230.22.68:3140:

W: Falhou ao buscar http://extras.ubuntu.com/ubuntu/dists/trusty/main/i18n/Translation-pt_BR Não foi possível ligar a 10.230.22.68:3140:

W: Falhou ao buscar http://extras.ubuntu.com/ubuntu/dists/trusty/main/i18n/Translation-pt Não foi possível ligar a 10.230.22.68:3140:

W: Falhou ao buscar http://extras.ubuntu.com/ubuntu/dists/trusty/main/i18n/Translation-en Não foi possível ligar a 10.230.22.68:3140:

W: Falhou ao buscar http://archive.canonical.com/ubuntu/dists/trusty/Release.gpg Não foi possível ligar a 10.230.22.68:3140:

W: Falhou ao buscar http://security.ubuntu.com/ubuntu/dists/trusty-security/Release.gpg Não foi possível ligar a 10.230.22.68:3140:

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/trusty/Release.gpg Não foi possível ligar a 10.230.22.68:3140:

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/trusty-updates/Release.gpg Não foi possível ligar a 10.230.22.68:3140:

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/trusty-backports/Release.gpg Não foi possível ligar a 10.230.22.68:3140:

W: Falhou o download de alguns ficheiros de índice. Foram ignorados ou os antigos foram usados em seu lugar.
E: Não foi possível abrir arquivo de trava /var/lib/dpkg/lock - open (2: Arquivo ou diretório não encontrado)

Me ajudem...


  


2. MELHOR RESPOSTA

Perfil removido
removido

(usa Nenhuma)

Enviado em 01/09/2014 - 10:08h

Aplique no terminal um comando por vez:


sudo rm /var/lib/apt/lists/lock

sudo rm /var/lib/dpkg/lock

sudo apt-get update



3. Re: Apt-get não funciona [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 31/08/2014 - 22:16h

douglasbastos escreveu:

Galera já procurei todos as soluções de pesquisar que o google me ofereceu, incluse algumas aqui e não consegui resolver meu problema.

Sempre que tendo fazer qualquer operação com apt-get ele tenda se conectar e depois um tempo sem achar nada retorna os seguinte erros

Ign http://extras.ubuntu.com trusty InRelease
Err http://extras.ubuntu.com trusty Release.gpg
Não foi possível ligar a 10.230.22.68:3140:
Ign http://extras.ubuntu.com trusty Release
Err http://extras.ubuntu.com trusty/main Sources
Não foi possível ligar a 10.230.22.68:3140:
Err http://extras.ubuntu.com trusty/main amd64 Packages
Não foi possível ligar a 10.230.22.68:3140:
Err http://extras.ubuntu.com trusty/main Translation-pt_BR
Não foi possível ligar a 10.230.22.68:3140:
Err http://extras.ubuntu.com trusty/main Translation-pt
Não foi possível ligar a 10.230.22.68:3140:
Err http://extras.ubuntu.com trusty/main Translation-en
Não foi possível ligar a 10.230.22.68:3140:
Err http://archive.canonical.com trusty InRelease

Err http://archive.canonical.com trusty Release.gpg
Não foi possível ligar a 10.230.22.68:3140:
Err http://security.ubuntu.com trusty-security InRelease

Err http://security.ubuntu.com trusty-security Release.gpg
Não foi possível ligar a 10.230.22.68:3140:
Err http://br.archive.ubuntu.com trusty InRelease

Err http://br.archive.ubuntu.com trusty-updates InRelease

Err http://br.archive.ubuntu.com trusty-backports InRelease

Err http://br.archive.ubuntu.com trusty Release.gpg
Não foi possível ligar a 10.230.22.68:3140:
Err http://br.archive.ubuntu.com trusty-updates Release.gpg
Não foi possível ligar a 10.230.22.68:3140:
Err http://br.archive.ubuntu.com trusty-backports Release.gpg
Não foi possível ligar a 10.230.22.68:3140:
W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/trusty/InRelease

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/trusty-updates/InRelease

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/trusty-backports/InRelease

W: Falhou ao buscar http://security.ubuntu.com/ubuntu/dists/trusty-security/InRelease

W: Falhou ao buscar http://archive.canonical.com/ubuntu/dists/trusty/InRelease

W: Falhou ao buscar http://extras.ubuntu.com/ubuntu/dists/trusty/Release.gpg Não foi possível ligar a 10.230.22.68:3140:

W: Falhou ao buscar http://extras.ubuntu.com/ubuntu/dists/trusty/main/source/Sources Não foi possível ligar a 10.230.22.68:3140:

W: Falhou ao buscar http://extras.ubuntu.com/ubuntu/dists/trusty/main/binary-amd64/Packages Não foi possível ligar a 10.230.22.68:3140:

W: Falhou ao buscar http://extras.ubuntu.com/ubuntu/dists/trusty/main/i18n/Translation-pt_BR Não foi possível ligar a 10.230.22.68:3140:

W: Falhou ao buscar http://extras.ubuntu.com/ubuntu/dists/trusty/main/i18n/Translation-pt Não foi possível ligar a 10.230.22.68:3140:

W: Falhou ao buscar http://extras.ubuntu.com/ubuntu/dists/trusty/main/i18n/Translation-en Não foi possível ligar a 10.230.22.68:3140:

W: Falhou ao buscar http://archive.canonical.com/ubuntu/dists/trusty/Release.gpg Não foi possível ligar a 10.230.22.68:3140:

W: Falhou ao buscar http://security.ubuntu.com/ubuntu/dists/trusty-security/Release.gpg Não foi possível ligar a 10.230.22.68:3140:

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/trusty/Release.gpg Não foi possível ligar a 10.230.22.68:3140:

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/trusty-updates/Release.gpg Não foi possível ligar a 10.230.22.68:3140:

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/trusty-backports/Release.gpg Não foi possível ligar a 10.230.22.68:3140:

W: Falhou o download de alguns ficheiros de índice. Foram ignorados ou os antigos foram usados em seu lugar.
E: Não foi possível abrir arquivo de trava /var/lib/dpkg/lock - open (2: Arquivo ou diretório não encontrado)

Me ajudem...


Boa noite,

O que vc tentou instalar no equipamento? Vc abortou por acaso, fechando por exemplo o terminal?




4. Re: Apt-get não funciona [RESOLVIDO]

Clodoaldo Santos
clodoaldops

(usa Linux Mint)

Enviado em 31/08/2014 - 22:54h

Tente um comando de cada vez:
sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get -f remove
sudo apt-get update
sudo apt-get upgrade


5. Re: Apt-get não funciona [RESOLVIDO]

Douglas Bastos
douglasbastos

(usa Ubuntu)

Enviado em 31/08/2014 - 23:19h

jbaf escreveu:

Boa noite,

O que vc tentou instalar no equipamento? Vc abortou por acaso, fechando por exemplo o terminal?



Boa noite,

Sim cheguei abortar uma instalação sim, só não me lembro qual.


6. Re: Apt-get não funciona [RESOLVIDO]

Douglas Bastos
douglasbastos

(usa Ubuntu)

Enviado em 31/08/2014 - 23:21h

clodoaldops escreveu:

Tente um comando de cada vez:
sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get -f remove
sudo apt-get update
sudo apt-get upgrade


Boa noite,
Quando chega no apt-get update fica em loop, tentando se conectar.

0% [Conectando em 10.230.22.68 (10.230.22.68)] [Conectando em 10.230.22.0% [Conectando em 10.230.22.68 (10.230.22.68)] [Conectando em 10.230.22.0% [Conectando em 10.230.22.68 (10.230.22.68)] [Conectando em 10.230.22.0% [Conectando em 10.230.22.68 (10.230.22.68)] [Conectando em 10.230.22.


7. Re: Apt-get não funciona [RESOLVIDO]

Clodoaldo Santos
clodoaldops

(usa Linux Mint)

Enviado em 31/08/2014 - 23:45h

-se vc abortou atualização/instalação dependendo do que foi interrompido pode "detonar" o SO e aí só reinstalando
-não estou dizendo que é o seu caso
-tente pelo synaptic >> editar >> corrigir pacotes quebrados


8. Re: Apt-get não funciona [RESOLVIDO]

Thiago Henrique Hüpner
Thihup

(usa Manjaro Linux)

Enviado em 31/08/2014 - 23:49h

Ao meu ver parece que vc ta usando proxy.

Faça assim :

Clica na engranagem no lado do nome de usuario;

Vai em configuracoes do sistema

Vai abrir uma nova janela, nessa janela:

Va em rede

E depois em proxy da rede

Na opcao metodo , escolha nenhuma

depois clique em aplicar ao sistema todo

E teste

Caso nao der , poste o resultado de

ping www.google.com.br

Para finalizar aperte Ctrl + C

T+



9. Re: Apt-get não funciona [RESOLVIDO]

Douglas Bastos
douglasbastos

(usa Ubuntu)

Enviado em 01/09/2014 - 00:03h

Thihup escreveu:

Ao meu ver parece que vc ta usando proxy.

Faça assim :

Clica na engranagem no lado do nome de usuario;

Vai em configuracoes do sistema

Vai abrir uma nova janela, nessa janela:

Va em rede

E depois em proxy da rede

Na opcao metodo , escolha nenhuma

depois clique em aplicar ao sistema todo

E teste

Caso nao der , poste o resultado de

ping www.google.com.br

Para finalizar aperte Ctrl + C

T+


Não estou usando proxy, ao pingar o google segue o resultado

64 bytes from pb-in-f105.1e100.net (173.194.79.105): icmp_seq=1 ttl=44 time=296 ms





10. Re: Apt-get não funciona [RESOLVIDO]

Douglas Bastos
douglasbastos

(usa Ubuntu)

Enviado em 01/09/2014 - 00:05h

clodoaldops escreveu:

-se vc abortou atualização/instalação dependendo do que foi interrompido pode "detonar" o SO e aí só reinstalando
-não estou dizendo que é o seu caso
-tente pelo synaptic >> editar >> corrigir pacotes quebrados


Não consegui encontrar o caminho, acho que não tenho o synaptic instalado.


11. Re: Apt-get não funciona [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 01/09/2014 - 10:56h

Bom dia, se vc tentou o que o Izaias propos e não deu certo, não vai ter jeito. Terá que insfelizmente reinstalar o SO.

Se resolveu, clique em RESOLVIDO e escolha a melhor resposta, grato!!!


12. Re: Apt-get não funciona [RESOLVIDO]

Guilherme Krofke
guikrofke

(usa Ubuntu)

Enviado em 01/09/2014 - 11:41h

Bom dia amigo, com certeza, em algum lugar esta configurado o proxy 10.230.22.68:3140.
poste o resultado dos seguintes comandos:
cat /etc/environment
cat /etc/apt/apt.conf



01 02



Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts