Resolvendo o erro de atualização do Ubuntu 12.04: (-5 - Nenhum endereço associado ao hostname)

11

Descrição do problema:

Sempre que tento baixar as atualizações do meu sistema operacional (Ubuntu 12.04), recebo a seguinte lista de mensagens de erro:

W:Failed to fetch http://extras.ubuntu.com/ubuntu/dists/precise/Release.gpg  Something wicked happened resolving 'extras.ubuntu.com:http' (-5 - No address associated with hostname)
, W:Failed to fetch http://ppa.launchpad.net/deluge-team/ppa/ubuntu/dists/precise/Release.gpg  Something wicked happened resolving 'ppa.launchpad.net:http' (-5 - No address associated with hostname)
, W:Failed to fetch http://packages.medibuntu.org/dists/precise/Release.gpg  Something wicked happened resolving 'packages.medibuntu.org:http' (-5 - No address associated with hostname)
, W:Failed to fetch http://archive.canonical.com/ubuntu/dists/precise/Release.gpg  Something wicked happened resolving 'archive.canonical.com:http' (-5 - No address associated with hostname)
, W:Failed to fetch http://ppa.launchpad.net/tualatrix/ppa/ubuntu/dists/precise/Release.gpg  Something wicked happened resolving 'ppa.launchpad.net:http' (-5 - No address associated with hostname)
, E:Some index files failed to download. They have been ignored, or old ones used instead.

O conteúdo do arquivo (/etc/apt/sources.list):

# deb cdrom:[Ubuntu 12.04 LTS _Precise Pangolin_ - Release i386 (20120423)]/ precise main restricted

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

## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu precise-updates main restricted
deb-src http://archive.ubuntu.com/ubuntu precise-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://archive.ubuntu.com/ubuntu precise universe
deb-src http://archive.ubuntu.com/ubuntu precise universe
deb http://archive.ubuntu.com/ubuntu precise-updates universe
deb-src http://archive.ubuntu.com/ubuntu precise-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://archive.ubuntu.com/ubuntu precise multiverse
deb-src http://archive.ubuntu.com/ubuntu precise multiverse
deb http://archive.ubuntu.com/ubuntu precise-updates multiverse
deb-src http://archive.ubuntu.com/ubuntu precise-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://archive.ubuntu.com/ubuntu precise-security main restricted
deb-src http://archive.ubuntu.com/ubuntu precise-security main restricted
deb http://archive.ubuntu.com/ubuntu precise-security universe
deb-src http://archive.ubuntu.com/ubuntu precise-security universe
deb http://archive.ubuntu.com/ubuntu precise-security multiverse
deb-src http://archive.ubuntu.com/ubuntu precise-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 precise partner
# deb-src http://archive.canonical.com/ubuntu precise 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 precise main
# deb-src http://extras.ubuntu.com/ubuntu precise main

Os arquivos dentro do diretório (/etc/apt/sources.list.d):

-rw-r--r-- 1 root root 136 Oct 10 16:30 deluge-team-ppa-precise.list    
-rw-r--r-- 1 root root 136 Oct 10 16:30 deluge-team-ppa-precise.list.save         
-rw-r--r-- 1 root root 285 Oct 10 16:30 medibuntu.list        
-rw-r--r-- 1 root root 285 Oct 10 16:30 medibuntu.list.save          
-rw-r--r-- 1 root root 132 Oct 10 16:30 tualatrix-ppa-precise.list         
-rw-r--r-- 1 root root 134 Oct 10 16:30 tualatrix-ppa-precise.list.save          
-rw-r--r-- 1 root root 148 Oct 10 16:30 yannubuntu-boot-repair-precise.list       
-rw-r--r-- 1 root root 148 Oct 10 16:30 yannubuntu-boot-repair-precise.list.save  

Links relacionados a este post no AskUbuntu.com:

Erro do servidor (-5 - Nenhum endereço associado ao hostname)
Como corrigir "-5 Nenhum endereço associado ao erro de nome de host" durante a atualização?

Tentei pesquisar on-line maneiras de resolver o problema, mas não consegui descobrir a verdadeira razão pela qual estou recebendo esses erros. Quaisquer sugestões, idéias ou soluções que possam me ajudar a resolver este problema são muito apreciadas.

    
por CompilingCyborg 13.10.2012 / 06:08

5 respostas

8

A solução para este problema é a seguinte:

Passo 1: Vá para Sistema - > Preferências - > Conexões de rede.

Etapa 2: em seguida, selecione sua interface de rede padrão (eth0) e clique em "Editar".

Etapa 3: Em seguida, selecione "Configurações IPv4" e escolha "Somente endereços automáticos (DHCP)".

Etapa 4: Em seguida, insira os novos endereços dos servidores DNS na caixa "Servidores DNS". Use vírgulas para separar vários endereços e clique em "Aplicar" para salvar.

Etapa 5: Escolha seus detalhes de DNS preferidos

OpenDNS           --->  208.67.222.222, 208.67.220.220              
Google Public DNS --->  8.8.8.8, 8.8.4.4                 
Comodo Secure DNS --->  156.154.70.22, 156.154.71.22

Após a configuração, verifique se está funcionando on-line.

Para um tutorial passo-a-passo completo para resolver problemas semelhantes, verifique: link

O link acima explica como alterar as configurações de DNS no Ubuntu.

    
por CompilingCyborg 13.10.2012 / 15:46
3

Eu tive esse mesmo problema e nenhuma das respostas acima corrigiu isso. Eu tenho isso corrigido agora no entanto. Acontece que tudo que eu precisava era entrar no terminal e digitar sudo apt-get update . Depois que ele terminou de funcionar, meu gerenciador de atualização atualizou, me deu uma nova lista de itens para atualizar e então eu cliquei em update e tudo correu bem. Não sei se isso ajudará qualquer outra pessoa, mas espero que isso aconteça.

    
por James Otho Miller 17.10.2012 / 02:00
2
cat /etc/apt/sources.list 

edite com

sudo gedit /etc/apt/sources.list

excluir http://packages.medibuntu.org/

execute

sudo apt-get update
    
por yubaba 14.11.2013 / 10:58
0

Se você estiver recebendo apenas erros relacionados a packages.medibuntu.org , esse repositório foi fechado de acordo com a página de repositório oficial no launchpad e estes discussão tópicos .

Sintoma:

W: Failed to fetch http://packages.medibuntu.org/dists/precise/Release.gpg  Something wicked happened resolving 'packages.medibuntu.org:http' (-5 - No address associated with hostname)

W: Failed to fetch http://packages.medibuntu.org/dists/precise/free/source/Sources  Something wicked happened resolving 'packages.medibuntu.org:http' (-5 - No address associated with hostname)

W: Failed to fetch http://packages.medibuntu.org/dists/precise/non-free/source/Sources  Something wicked happened resolving 'packages.medibuntu.org:http' (-5 - No address associated with hostname)

W: Failed to fetch http://packages.medibuntu.org/dists/precise/free/binary-amd64/Packages  Something wicked happened resolving 'packages.medibuntu.org:http' (-5 - No address associated with hostname)

W: Failed to fetch http://packages.medibuntu.org/dists/precise/non-free/binary-amd64/Packages  Something wicked happened resolving 'packages.medibuntu.org:http' (-5 - No address associated with hostname)

W: Failed to fetch http://packages.medibuntu.org/dists/precise/free/binary-i386/Packages  Something wicked happened resolving 'packages.medibuntu.org:http' (-5 - No address associated with hostname)

W: Failed to fetch http://packages.medibuntu.org/dists/precise/non-free/binary-i386/Packages  Something wicked happened resolving 'packages.medibuntu.org:http' (-5 - No address associated with hostname)

W: Failed to fetch http://packages.medibuntu.org/dists/precise/free/i18n/Translation-en_US  Something wicked happened resolving 'packages.medibuntu.org:http' (-5 - No address associated with hostname)

W: Failed to fetch http://packages.medibuntu.org/dists/precise/free/i18n/Translation-en  Something wicked happened resolving 'packages.medibuntu.org:http' (-5 - No address associated with hostname)

W: Failed to fetch http://packages.medibuntu.org/dists/precise/non-free/i18n/Translation-en_US  Something wicked happened resolving 'packages.medibuntu.org:http' (-5 - No address associated with hostname)

W: Failed to fetch http://packages.medibuntu.org/dists/precise/non-free/i18n/Translation-en  Something wicked happened resolving 'packages.medibuntu.org:http' (-5 - No address associated with hostname)

E: Some index files failed to download. They have been ignored, or old ones used instead.

Solução:

Método de linha de comando

  1. Remova o repositório medibuntu do diretório /etc/apt/sources.list.d : sudo rm /etc/apt/sources.list.d/medibuntu.list*
  2. Executar sudo apt-get update
  3. (opcional) Se você ainda vir erros depois disso, execute grep -lir medibuntu /etc/apt/sources.list.d/ | xargs sudo rm e tente executar a etapa 2 novamente.

Método GUI

  1. Abra Gerenciador de Pacotes Synaptic (Pressione Super / Winkey e digite Synaptic Package Manager e clique no primeiro resultado do aplicativo que aparece com o nome Synaptic Package Manager )
  2. No menu do aplicativo, selecione Settings - > %código%
  3. Selecione a guia Repositories , role para baixo e desmarque ou remova todas as entradas de Other Software (ver captura de tela)

  4. Clique em packages.medibuntu.org
  5. Clique no botão Close no Gerenciador de Pacotes Synaptic (executa Reload nos bastidores)
por TrinitronX 11.11.2013 / 21:16
-1

Se você tem um proxy, este link tem algumas respostas.

Veja a seção Configurando o apt-get para usar um http-proxy na página da web.

    
por user180897 03.08.2013 / 02:49