[解决]在ubuntu(1204)更新时,出现错误E: Some index files failed to download....

在ubuntu(1204)更新时,出现错误E: Some index files failed to download.They have been ignored, or old ones used instead.
我使用的是官方源,昨天还好好的,今天安装软件包的时出现问题,打算更新源,出现了下列问题:

Ign http://archive.ubuntu.com precise InRelease
Err http://archive.ubuntu.com precise Release.gpg
  Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)
Ign http://archive.ubuntu.com precise Release
Ign http://archive.ubuntu.com precise/main TranslationIndex
Ign http://archive.ubuntu.com precise/restricted TranslationIndex
Err http://archive.ubuntu.com precise/main amd64 Packages
  Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)
Err http://archive.ubuntu.com precise/restricted amd64 Packages
  Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)
Err http://archive.ubuntu.com precise/main i386 Packages
  Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)
Err http://archive.ubuntu.com precise/restricted i386 Packages
  Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)
Err http://archive.ubuntu.com precise/main Translation-en_US
  Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)
Err http://archive.ubuntu.com precise/main Translation-en
  Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)
Err http://archive.ubuntu.com precise/restricted Translation-en_US
  Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)
Err http://archive.ubuntu.com precise/restricted Translation-en
  Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise/Release.gpg  Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise/main/binary-amd64/Packages  Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise/restricted/binary-amd64/Packages  Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise/main/binary-i386/Packages  Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise/restricted/binary-i386/Packages  Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise/main/i18n/Translation-en_US  Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise/main/i18n/Translation-en  Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise/restricted/i18n/Translation-en_US  Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise/restricted/i18n/Translation-en  Something wicked happened resolving 'archive.ubuntu.com:http' (-5 - No address associated with hostname)

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


求帮忙~~

到其它ubuntu1204系统上更新源,正常没有问题,说明源本身没有问题,
昨天只安装了apt-mirror这个包

查找了很多资料,通常更新源都会出现类似这样的提示:“。。。not found”,
而我的错误是 Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/maverick/Release.gpg Something wicked happened resolving ‘cn.archive.ubuntu.com:http’ (-5 - No address associated with hostname)
资料说明DNS解析出现了问题,应着重查看以下方面:
cat /etc/resolv.conf查看里面的domain, search和nameserver配置是否正确。
我将nameserver修改成8.8.8.8后,问题得到了解决。
多亏了如下两个贴,否则我哪里能知道是DNS的问题呢,感谢分享的朋友:
http://askubuntu.com/questions/111597/how-can-i-work-around-something-wicked-happened-resolving-mirror-errors
http://hi.baidu.com/zht7216/item/b6fba5cc56865c29ef466554

原来的DNS不知道谁设置成了192.66.1.3,我一查竟然是德国的IP。:@

No address associated with hostname
如果源没问题,就要检查dns啊

没有经验啊,只知道DNS,具体如何工作的,不清楚,遇到问题也联想不到~~