ubuntu12.04 apt-get 更新问题

ubuntu12.04 apt-get 更新问题

当我在 ubuntu12.04 上运行sudo apt-get update命令时遇到一个奇怪的问题:

W: Failed to fetch http://mirrors.163.com/ubuntu/dists/precise-security/universe/i18n/Translation-en
Something wicked happened resolving '**proxy3.serd.global.sharp.com.jp:3080**' (-5 - No address associated with hostname)

这是我的/etc/source.list

deb http://mirrors.163.com/ubuntu/ precise main restricted
deb-src http://mirrors.163.com/ubuntu/ precise main restricted
deb http://mirrors.163.com/ubuntu/ precise-updates main restricted
deb-src http://mirrors.163.com/ubuntu/ precise-updates main restricted
deb http://mirrors.163.com/ubuntu/ precise universe
deb-src http://mirrors.163.com/ubuntu/ precise universe
deb http://mirrors.163.com/ubuntu/ precise-updates universe
deb-src http://mirrors.163.com/ubuntu/ precise-updates universe
deb http://mirrors.163.com/ubuntu/ precise multiverse
deb-src http://mirrors.163.com/ubuntu/ precise multiverse
deb http://mirrors.163.com/ubuntu/ precise-updates multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-updates multiverse
deb http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-security main restricted
deb-src http://mirrors.163.com/ubuntu/ precise-security main restricted
deb http://mirrors.163.com/ubuntu/ precise-security universe
deb-src http://mirrors.163.com/ubuntu/ precise-security universe
deb http://mirrors.163.com/ubuntu/ precise-security multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-security multiverse
deb http://extras.ubuntu.com/ubuntu precise main
deb-src http://extras.ubuntu.com/ubuntu precise main

.basrc内容/etc/apt/apt.conf

**HTTP_PROXY=http://account:pwd@myproxy:3080**
**Acquire::http::proxy "http://account:pwd@myproxy:3080/"**;

/etc/resolve.conf

namespace 8.8.8.8, 8.8.4.4

我还将 Google DNS 服务器 ip(8.8.8.8) 添加到 ipv4 DNS 配置中,但仍然失败。有人知道为什么吗?

答案1

我责怪代理人。

从英国这里proxy3.serd.global.sharp.com.jp无法解决,但镜像工作正常。停止使用代理sharp.com.jp,一切应该开始工作。无论如何,我不知道你为什么要为中国镜像使用日本代理。这真的没什么意义。


如果你坚持你知道吗proxy3.serd.global.sharp.com.jp 应该解决,sudoedit /etc/hosts在终端中运行并在文件末尾添加以下内容作为新行:

172.30.124.10    proxy3.serd.global.sharp.com.jp

相关内容