Описание проблемы:
Каждый раз, когда я пытаюсь загрузить обновления для моей операционной системы (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.
[ 118] Содержимое файла (/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
Файлы внутри (/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
Ссылки по теме на этот пост на AskUbuntu.com:
Ошибка сервера (-5 - адрес не связан с имя хоста)
Как исправить & quot; -5 Нет адреса, связанного с ошибкой имени хоста & quot; во время обновления?
Я пытался найти в Интернете способы решения проблемы, но мне не удалось выяснить реальную причину, почему я получаю эти ошибки. Будем очень благодарны за любые предложения, идеи или решения, которые могут помочь мне решить эту проблему.
У меня была такая же проблема, и ни один из приведенных выше ответов не устранил ее. Я действительно исправил это сейчас. Оказывается, все, что мне нужно было сделать, это зайти в терминал и набрать 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
, тот репозиторий закрылся согласно официальной repo странице на панели запуска и они обсуждение потоки.
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.
/etc/apt/sources.list.d
каталог: sudo rm /etc/apt/sources.list.d/medibuntu.list*
sudo apt-get update
grep -lir medibuntu /etc/apt/sources.list.d/ | xargs sudo rm
, затем попробуйте рабочий шаг 2 снова.Super
/Winkey
затем введите Synaptic Package Manager
и нажмите первый результат приложения, который обнаруживается названный Synaptic Package Manager
)Settings
-> Repositories
Other Software
вкладка, затем прокрутите вниз и снимите флажок или удалите все записи для packages.medibuntu.org
(см. снимок экрана),Close
Reload
кнопка в Синаптическом Диспетчере пакетов (выполнения apt-get update
негласно)Если у вас есть прокси, то по этой ссылке есть несколько ответов.
Посмотрите на Настройка apt-get для использования http-proxy раздела на веб-странице.
Решение этой проблемы заключается в следующем:
Шаг 1: Перейдите в Система -> Настройки -> Сетевые подключения.
Шаг 2: Далее выберите сетевой интерфейс по умолчанию (eth0) и нажмите «Изменить».
Шаг 3: Затем выберите «Настройки IPv4» и выберите «Только автоматические (DHCP) адреса».
Шаг 4: Затем введите новые адреса DNS-серверов в поле «DNS-серверы». Используйте запятые для разделения нескольких адресов и нажмите «Применить» для сохранения.
Шаг 5: Выберите предпочитаемые данные DNS
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
После настройки убедитесь, что он работает, перейдя в онлайн.
Полный пошаговый учебник по решению подобных проблем можно найти по адресу:
http://www.liberiangeek.net/2010/08/change-dns-information- ubuntu-10-04-lucid-lynx /
Приведенная выше ссылка объясняет, как изменить настройки DNS в Ubuntu.