Описание проблемы:
Каждый раз, когда я пытаюсь загрузить обновления для своей операционной системы (Ubuntu 12.04), я получаю следующий список сообщений об ошибках:
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.
[d1 ] Описание проблемы:
# 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
Файлы внутри каталога (/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
Файлы внутри каталога (/etc/apt/sources.list.d):
Ошибка сервера (-5 - нет адреса, связанного с именем хоста). Как исправить? -5 Нет ассоциированного адреса с ошибкой имени хоста " в то время как обновление?
Я попытался исследовать онлайн способы решения проблемы, но я не смог понять, почему я получаю эти ошибки. Любые предложения, идеи или решения, которые могут помочь мне решить эту проблему, очень ценятся.
У меня была такая же проблема, и ни один из вышеперечисленных ответов не зафиксировал ее. Однако я решил, что это исправлено. Оказывается, все, что мне нужно было сделать, это перейти в терминал и ввести sudo apt-get update. После того, как он закончил работу, обновил менеджер обновлений, дал мне новый список элементов для обновления, а затем я нажал на обновление, и все прошло отлично. Не знаю, поможет ли это кому-то еще, но я надеюсь, что это произойдет.
cat /etc/apt/sources.list
изменить с помощью
sudo gedit /etc/apt/sources.list
удалить http://packages.medibuntu.org/
, затем запустить
sudo apt-get update
Если вы получаете только ошибки, связанные с packages.medibuntu.org, этот репозиторий закрыт в соответствии с официальной страницей репо на панели запуска и этими темами обсуждения.
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.
[d6 ] Решение: Если у вас есть прокси-сервер, у этой ссылки есть несколько ответов.
Посмотрите на настройку apt-get для использования раздела http-proxy на веб-странице.