Autor Tópico: Erro com o apt-get update  (Lida 8867 vezes)

Offline kayomatheus

  • Usuário Ubuntu
  • *
  • Mensagens: 10
    • Ver perfil
Erro com o apt-get update
« Online: 21 de Agosto de 2014, 11:48 »
Bom dia pessoal,
Fui fazer o apt-get update e apareceu o seguinte erro:

Código: [Selecionar]
Err http://archive.ubuntu.com trusty InRelease
 
Err http://archive.ubuntu.com trusty-updates InRelease                 
 
Err http://archive.ubuntu.com trusty-backports InRelease               
 
Err http://archive.ubuntu.com trusty-security InRelease                 
 
Err http://archive.canonical.com trusty InRelease                       
 
Err http://extras.ubuntu.com trusty InRelease                           
 
Err http://archive.ubuntu.com trusty Release.gpg                       
  Não foi possível resolver 'archive.ubuntu.com'
Err http://archive.ubuntu.com trusty-updates Release.gpg
  Não foi possível resolver 'archive.ubuntu.com'
Err http://archive.ubuntu.com trusty-backports Release.gpg
  Não foi possível resolver 'archive.ubuntu.com'
Err http://archive.ubuntu.com trusty-security Release.gpg
  Não foi possível resolver 'archive.ubuntu.com'
Err http://archive.canonical.com trusty Release.gpg
  Não foi possível resolver 'archive.canonical.com'
Err http://extras.ubuntu.com trusty Release.gpg
  Não foi possível resolver 'extras.ubuntu.com'
Lendo listas de pacotes... Pronto
W: Falhou ao buscar http://archive.ubuntu.com/ubuntu/dists/trusty/InRelease 

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

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

W: Falhou ao buscar http://archive.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/InRelease 

W: Falhou ao buscar http://archive.ubuntu.com/ubuntu/dists/trusty/Release.gpg  Não foi possível resolver 'archive.ubuntu.com'

W: Falhou ao buscar http://archive.ubuntu.com/ubuntu/dists/trusty-updates/Release.gpg  Não foi possível resolver 'archive.ubuntu.com'

W: Falhou ao buscar http://archive.ubuntu.com/ubuntu/dists/trusty-backports/Release.gpg  Não foi possível resolver 'archive.ubuntu.com'

W: Falhou ao buscar http://archive.ubuntu.com/ubuntu/dists/trusty-security/Release.gpg  Não foi possível resolver 'archive.ubuntu.com'

W: Falhou ao buscar http://archive.canonical.com/ubuntu/dists/trusty/Release.gpg  Não foi possível resolver 'archive.canonical.com'

W: Falhou ao buscar http://extras.ubuntu.com/ubuntu/dists/trusty/Release.gpg  Não foi possível resolver 'extras.ubuntu.com'

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

Já procurei várias soluções na internet, como deletar o source.list, seguir uma ordem de comandos, mas não obtive sucesso.Se alguém puder me ajudar a resolve-lo, fico grato.
Abraços

Offline jkmsjq

  • Usuário Ubuntu
  • *
  • Mensagens: 3.343
  • Ubuntu Member
    • Ver perfil
Re: Erro com o apt-get update
« Resposta #1 Online: 21 de Agosto de 2014, 18:42 »
Digite no terminal (Ctrl + Alt + T):

Código: [Selecionar]
software-properties-gtk
Dê <Enter>.


Vá na aba Aplicativos do Ubuntu e na opção Baixar de: escolha Servidor - Brasil, se estiver selecionado outra opção.

Outra pergunta: tem certeza que sua máquina está conectada à internet...??

LinuxUser: 548942 / Dando um tópico como resolvido
"A verdade só é agressiva a quem vive de mentiras". Autor desconhecido.
Twitter: @jeisonkertesz

Offline kayomatheus

  • Usuário Ubuntu
  • *
  • Mensagens: 10
    • Ver perfil
Re: Erro com o apt-get update
« Resposta #2 Online: 22 de Agosto de 2014, 08:58 »
Estou conectado sim. Dei o comando e o erro ainda persiste.
Código: [Selecionar]
kayocarneiro@kayo-vpcsa35gb:~$ sudo apt-get update
[sudo] password for kayocarneiro:
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://security.ubuntu.com trusty-security InRelease
 
Err http://extras.ubuntu.com trusty InRelease
 
Err http://br.archive.ubuntu.com trusty Release.gpg
  Não foi possível resolver 'br.archive.ubuntu.com'
Err http://br.archive.ubuntu.com trusty-updates Release.gpg
  Não foi possível resolver 'br.archive.ubuntu.com'
Err http://security.ubuntu.com trusty-security Release.gpg
  Não foi possível resolver 'security.ubuntu.com'
Err http://extras.ubuntu.com trusty Release.gpg
  Não foi possível resolver 'extras.ubuntu.com'
Err http://br.archive.ubuntu.com trusty-backports Release.gpg
  Não foi possível resolver 'br.archive.ubuntu.com'
Err http://archive.ubuntu.com saucy InRelease
 
Err http://archive.ubuntu.com saucy Release.gpg
  Não foi possível resolver 'archive.ubuntu.com'
Lendo listas de pacotes... Pronto
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://extras.ubuntu.com/ubuntu/dists/trusty/InRelease 

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

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/trusty/Release.gpg  Não foi possível resolver 'br.archive.ubuntu.com'

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

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

W: Falhou ao buscar http://security.ubuntu.com/ubuntu/dists/trusty-security/Release.gpg  Não foi possível resolver 'security.ubuntu.com'

W: Falhou ao buscar http://extras.ubuntu.com/ubuntu/dists/trusty/Release.gpg  Não foi possível resolver 'extras.ubuntu.com'

W: Falhou ao buscar http://archive.ubuntu.com/ubuntu/dists/saucy/Release.gpg  Não foi possível resolver 'archive.ubuntu.com'

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

Offline Tota

  • Usuário Ubuntu
  • *
  • Mensagens: 14.982
    • Ver perfil
Re: Erro com o apt-get update
« Resposta #3 Online: 22 de Agosto de 2014, 09:52 »
Comente com uma cerquilha estas entradas com erros.

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

para
Citar
# http://br.archive.ubuntu.com/ubuntu/ trusty-updates InRelease


Offline kayomatheus

  • Usuário Ubuntu
  • *
  • Mensagens: 10
    • Ver perfil
Re: Erro com o apt-get update
« Resposta #4 Online: 22 de Agosto de 2014, 10:03 »
Não encontrei este lugar para comentar, segue minha source.list
Código: [Selecionar]
# deb cdrom:[Ubuntu 14.04 LTS _Trusty Tahr_ - Release amd64 (20140417)]/ trusty main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://br.archive.ubuntu.com/ubuntu/trusty main restricted
deb-src http://br.archive.ubuntu.com/ubuntu/trusty main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://br.archive.ubuntu.com/ubuntu/trusty-updates main restricted
deb-src http://br.archive.ubuntu.com/ubuntu/trusty-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://br.archive.ubuntu.com/ubuntu/ trusty universe
deb-src http://br.archive.ubuntu.com/ubuntu trusty universe
deb http://br.archive.ubuntu.com/ubuntu/ trusty-updates universe
deb-src http://br.archive.ubuntu.com/ubuntu/ trusty-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://br.archive.ubuntu.com/ubuntu/ trusty multiverse
deb-src http://br.archive.ubuntu.com/ubuntu/ trusty multiverse
deb http://br.archive.ubuntu.com/ubuntu/ trusty-updates multiverse
deb-src http://br.archive.ubuntu.com/ubuntu/ trusty-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://br.archive.ubuntu.com/ubuntu/trusty-backports main restricted universe multiverse
deb-src http://br.archive.ubuntu.com/ubuntu/trusty-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu/trusty-security main restricted
deb-src http://security.ubuntu.com/ubuntu/trusty-security main restricted
deb http://security.ubuntu.com/ubuntu/ trusty-security universe
deb-src http://security.ubuntu.com/ubuntu/ trusty-security universe
deb http://security.ubuntu.com/ubuntu/ trusty-security multiverse
deb-src http://security.ubuntu.com/ubuntu/ trusty-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu trusty partner
# deb-src http://archive.canonical.com/ubuntu trusty partner

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu/ trusty main
deb-src http://extras.ubuntu.com/ubuntu/ trusty main
deb http://archive.ubuntu.com/ubuntu/saucy main restricted universe multiverse

Offline Tota

  • Usuário Ubuntu
  • *
  • Mensagens: 14.982
    • Ver perfil
Re: Erro com o apt-get update
« Resposta #5 Online: 22 de Agosto de 2014, 10:22 »
Então abra o software-properties-gtk

Veja lá no indice de chaves.

Offline kayomatheus

  • Usuário Ubuntu
  • *
  • Mensagens: 10
    • Ver perfil
Re: Erro com o apt-get update
« Resposta #6 Online: 22 de Agosto de 2014, 10:38 »
Para o source.list acima aparecem essas configurações:






Offline jkmsjq

  • Usuário Ubuntu
  • *
  • Mensagens: 3.343
  • Ubuntu Member
    • Ver perfil
Re: Erro com o apt-get update
« Resposta #7 Online: 22 de Agosto de 2014, 11:18 »
Na aba Aplicativos Ubuntu, selecione todas opções, exceto código fonte.

Na aba Outros Programas desmarque a opção relacionada ao Saucy.

Execute novamente

sudo apt-get update && sudo apt-get upgrade
LinuxUser: 548942 / Dando um tópico como resolvido
"A verdade só é agressiva a quem vive de mentiras". Autor desconhecido.
Twitter: @jeisonkertesz

Offline Airton Costa

  • Usuário Ubuntu
  • *
  • Mensagens: 10
    • Ver perfil
Re: Erro com o apt-get update
« Resposta #8 Online: 24 de Agosto de 2014, 20:17 »
W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ saucy/main amd64 Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_saucy_main_binary-amd64_Packages)
W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ saucy/restricted amd64 Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_saucy_restricted_binary-amd64_Packages)
W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ saucy/universe amd64 Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_saucy_universe_binary-amd64_Packages)
W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ saucy/multiverse amd64 Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_saucy_multiverse_binary-amd64_Packages)
W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ saucy/main amd64 Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_saucy_main_binary-amd64_Packages)
W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ saucy/restricted amd64 Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_saucy_restricted_binary-amd64_Packages)
W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ saucy/universe amd64 Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_saucy_universe_binary-amd64_Packages)
W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ saucy/multiverse amd64 Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_saucy_multiverse_binary-amd64_Packages)
W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ saucy/main i386 Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_saucy_main_binary-i386_Packages)
W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ saucy/restricted i386 Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_saucy_restricted_binary-i386_Packages)
W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ saucy/universe i386 Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_saucy_universe_binary-i386_Packages)
W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ saucy/multiverse i386 Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_saucy_multiverse_binary-i386_Packages)
W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ saucy/main i386 Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_saucy_main_binary-i386_Packages)
W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ saucy/restricted i386 Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_saucy_restricted_binary-i386_Packages)
W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ saucy/universe i386 Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_saucy_universe_binary-i386_Packages)
W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ saucy/multiverse i386 Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_saucy_multiverse_binary-i386_Packages)
W: Duplicate sources.list entry http://dl.google.com/linux/chrome/deb/ stable/main amd64 Packages (/var/lib/apt/lists/dl.google.com_linux_chrome_deb_dists_stable_main_binary-amd64_Packages)
W: Duplicate sources.list entry http://dl.google.com/linux/chrome/deb/ stable/main i386 Packages (/var/lib/apt/lists/dl.google.com_linux_chrome_deb_dists_stable_main_binary-i386_Packages)
W: Você terá que executar apt-get update para corrigir estes problemas


como faço para corrigir esse erro?

Offline platao

  • Equipe Ubuntu
  • Usuário Ubuntu
  • *****
  • Mensagens: 5.052
    • Ver perfil
Re: Erro com o apt-get update
« Resposta #9 Online: 24 de Agosto de 2014, 20:30 »
sudo rm /var/lib/apt/lists/* ; sudo rm /var/lib/apt/lists/partial/* ; sudo apt-get clean ; sudo apt-get -f install ; sudo apt-get update
\\\\\\\\Apostilas Dicas e Guias do Ubuntu\\\\\\\\\> http://ubuntuforum-br.org/index.php/topic,79368.msg440997.html#msg440997

Offline kayomatheus

  • Usuário Ubuntu
  • *
  • Mensagens: 10
    • Ver perfil
Re: Erro com o apt-get update
« Resposta #10 Online: 25 de Agosto de 2014, 08:43 »
Após fazer as mudanças, o erro continua:
Código: [Selecionar]
kayocarneiro@kayo-vpcsa35gb:~$ sudo apt-get update
[sudo] password for kayocarneiro:
Err http://security.ubuntu.com main InRelease
 
Err http://security.ubuntu.com trusty-security InRelease
 
Err http://extras.ubuntu.com trusty InRelease                           
 
Err http://security.ubuntu.com main Release.gpg                         
  Não foi possível resolver 'security.ubuntu.com'
Err http://br.archive.ubuntu.com main InRelease
 
Err http://br.archive.ubuntu.com main InRelease
 
Err http://security.ubuntu.com trusty-security Release.gpg
  Não foi possível resolver 'security.ubuntu.com'
Err http://extras.ubuntu.com trusty Release.gpg
  Não foi possível resolver 'extras.ubuntu.com'
Err http://br.archive.ubuntu.com trusty InRelease
 
Err http://br.archive.ubuntu.com trusty-updates InRelease
 
Err http://br.archive.ubuntu.com main InRelease
 
Err http://br.archive.ubuntu.com main Release.gpg
  Não foi possível resolver 'br.archive.ubuntu.com'
Err http://br.archive.ubuntu.com main Release.gpg
  Não foi possível resolver 'br.archive.ubuntu.com'
Err http://br.archive.ubuntu.com trusty Release.gpg
  Não foi possível resolver 'br.archive.ubuntu.com'
Err http://br.archive.ubuntu.com trusty-updates Release.gpg
  Não foi possível resolver 'br.archive.ubuntu.com'
Err http://br.archive.ubuntu.com main Release.gpg
  Não foi possível resolver 'br.archive.ubuntu.com'
Lendo listas de pacotes... Pronto
W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/trusty/dists/main/InRelease 

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

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/trusty-backports/dists/main/InRelease 

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

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

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

W: Falhou ao buscar http://security.ubuntu.com/ubuntu/trusty-security/dists/main/Release.gpg  Não foi possível resolver 'security.ubuntu.com'

W: Falhou ao buscar http://security.ubuntu.com/ubuntu/dists/trusty-security/Release.gpg  Não foi possível resolver 'security.ubuntu.com'

W: Falhou ao buscar http://extras.ubuntu.com/ubuntu/dists/trusty/Release.gpg  Não foi possível resolver 'extras.ubuntu.com'

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/trusty/dists/main/Release.gpg  Não foi possível resolver 'br.archive.ubuntu.com'

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/trusty-updates/dists/main/Release.gpg  Não foi possível resolver 'br.archive.ubuntu.com'

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/dists/trusty/Release.gpg  Não foi possível resolver 'br.archive.ubuntu.com'

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

W: Falhou ao buscar http://br.archive.ubuntu.com/ubuntu/trusty-backports/dists/main/Release.gpg  Não foi possível resolver 'br.archive.ubuntu.com'

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

Offline platao

  • Equipe Ubuntu
  • Usuário Ubuntu
  • *****
  • Mensagens: 5.052
    • Ver perfil
Re: Erro com o apt-get update
« Resposta #11 Online: 25 de Agosto de 2014, 11:11 »
para o erro de GPG e so instalar esse pacote;

http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu/pool/main/l/launchpad-getkeys/launchpad-getkeys_0.3.2-1~webupd8~oneiric_all.deb

instale o deb e depois rode o comando no terminal;

sudo launchpad-getkeys ; sudo apt-get update

Sempre que houver problemas com chave, e so rodar esse comando novamente
\\\\\\\\Apostilas Dicas e Guias do Ubuntu\\\\\\\\\> http://ubuntuforum-br.org/index.php/topic,79368.msg440997.html#msg440997

Offline kayomatheus

  • Usuário Ubuntu
  • *
  • Mensagens: 10
    • Ver perfil
Re: Erro com o apt-get update
« Resposta #12 Online: 26 de Agosto de 2014, 09:29 »
E ae galera,
Agradeço a ajuda de todos porém não consegui resolver e apelei pro modo windows de resolver as coisas. kkkkkk
Porém não testei esta última dica, se alguém tiver com o problema e quiser testar pra ver :)
Abraços, valeu flw!