apt-get update
我正在尝试在 ubuntu 9.10 上运行
我已经配置了代理服务器,可以毫无问题地访问互联网:
/etc/apt# wget "http://www.google.com"
Resolving (...)
Proxy request sent, awaiting response... 200 OK
Length: 292 [text/html]
Saving to: `index.html'
100%[=================================================================================================================================>] 292 --.-K/s in 0s
2010-04-02 17:20:33 (29.8 MB/s) - `index.html' saved [292/292]
但当我尝试使用apt-get我收到以下消息:
Ign http://archive.ubuntu.com karmic Release.gpg
Ign http://ubuntu.univ-nantes.fr karmic Release.gpg
Ign http://ubuntu.univ-nantes.fr karmic/main Translation-en_US
Ign http://ubuntu.univ-nantes.fr karmic/restricted Translation-en_US
Ign http://archive.ubuntu.com karmic Release
Ign http://ubuntu.univ-nantes.fr karmic/multiverse Translation-en_US
Ign http://ubuntu.univ-nantes.fr karmic/universe Translation-en_US
Ign http://ubuntu.univ-nantes.fr karmic-updates Release.gpg
Ign http://archive.ubuntu.com karmic/main Sources
Ign http://ubuntu.univ-nantes.fr karmic-updates/main Translation-en_US
Ign http://ubuntu.univ-nantes.fr karmic-updates/restricted Translation-en_US
Ign http://ubuntu.univ-nantes.fr karmic-updates/multiverse Translation-en_US
Ign http://archive.ubuntu.com karmic/restricted Sources
Ign http://ubuntu.univ-nantes.fr karmic-updates/universe Translation-en_US
Ign http://ubuntu.univ-nantes.fr karmic-security Release.gpg
Ign http://archive.ubuntu.com karmic/main Sources
Ign http://ubuntu.univ-nantes.fr karmic-security/main Translation-en_US
Ign http://ubuntu.univ-nantes.fr karmic-security/restricted Translation-en_US
Ign http://ubuntu.univ-nantes.fr karmic-security/multiverse Translation-en_US
Ign http://archive.ubuntu.com karmic/restricted Sources
Ign http://ubuntu.univ-nantes.fr karmic-security/universe Translation-en_US
Ign http://ubuntu.univ-nantes.fr karmic Release
Err http://archive.ubuntu.com karmic/main Sources
404 Not Found
Ign http://ubuntu.univ-nantes.fr karmic-updates Release
Ign http://ubuntu.univ-nantes.fr karmic-security Release
Err http://archive.ubuntu.com karmic/restricted Sources
404 Not Found
Ign http://ubuntu.univ-nantes.fr karmic/main Packages
Ign http://ubuntu.univ-nantes.fr karmic/restricted Packages
Ign http://ubuntu.univ-nantes.fr karmic/multiverse Packages
Ign http://ubuntu.univ-nantes.fr karmic/restricted Sources
Ign http://ubuntu.univ-nantes.fr karmic/main Sources
Ign http://ubuntu.univ-nantes.fr karmic/universe Sources
Ign http://ubuntu.univ-nantes.fr karmic/universe Packages
Ign http://ubuntu.univ-nantes.fr karmic-updates/main Packages
Ign http://ubuntu.univ-nantes.fr karmic-updates/restricted Packages
Ign http://ubuntu.univ-nantes.fr karmic-updates/multiverse Packages
Ign http://ubuntu.univ-nantes.fr karmic-updates/restricted Sources
Ign http://ubuntu.univ-nantes.fr karmic-updates/main Sources
Ign http://ubuntu.univ-nantes.fr karmic-updates/universe Sources
Ign http://ubuntu.univ-nantes.fr karmic-updates/universe Packages
Ign http://ubuntu.univ-nantes.fr karmic-security/main Packages
Ign http://ubuntu.univ-nantes.fr karmic-security/restricted Packages
Ign http://ubuntu.univ-nantes.fr karmic-security/multiverse Packages
Ign http://ubuntu.univ-nantes.fr karmic-security/restricted Sources
Ign http://ubuntu.univ-nantes.fr karmic-security/main Sources
Ign http://ubuntu.univ-nantes.fr karmic-security/universe Sources
Ign http://ubuntu.univ-nantes.fr karmic-security/universe Packages
Ign http://ubuntu.univ-nantes.fr karmic/main Packages
Ign http://ubuntu.univ-nantes.fr karmic/restricted Packages
Ign http://ubuntu.univ-nantes.fr karmic/multiverse Packages
Ign http://ubuntu.univ-nantes.fr karmic/restricted Sources
Ign http://ubuntu.univ-nantes.fr karmic/main Sources
Ign http://ubuntu.univ-nantes.fr karmic/universe Sources
Ign http://ubuntu.univ-nantes.fr karmic/universe Packages
Ign http://ubuntu.univ-nantes.fr karmic-updates/main Packages
Ign http://ubuntu.univ-nantes.fr karmic-updates/restricted Packages
Ign http://ubuntu.univ-nantes.fr karmic-updates/multiverse Packages
Ign http://ubuntu.univ-nantes.fr karmic-updates/restricted Sources
Ign http://ubuntu.univ-nantes.fr karmic-updates/main Sources
Ign http://ubuntu.univ-nantes.fr karmic-updates/universe Sources
Ign http://ubuntu.univ-nantes.fr karmic-updates/universe Packages
Ign http://ubuntu.univ-nantes.fr karmic-security/main Packages
Ign http://ubuntu.univ-nantes.fr karmic-security/restricted Packages
Ign http://ubuntu.univ-nantes.fr karmic-security/multiverse Packages
Ign http://ubuntu.univ-nantes.fr karmic-security/restricted Sources
Ign http://ubuntu.univ-nantes.fr karmic-security/main Sources
Ign http://ubuntu.univ-nantes.fr karmic-security/universe Sources
Ign http://ubuntu.univ-nantes.fr karmic-security/universe Packages
Err http://ubuntu.univ-nantes.fr karmic/main Packages
404 Not Found
Err http://ubuntu.univ-nantes.fr karmic/restricted Packages
404 Not Found
Err http://ubuntu.univ-nantes.fr karmic/multiverse Packages
404 Not Found
Err http://ubuntu.univ-nantes.fr karmic/restricted Sources
404 Not Found
Err http://ubuntu.univ-nantes.fr karmic/main Sources
404 Not Found
Err http://ubuntu.univ-nantes.fr karmic/universe Sources
404 Not Found
Err http://ubuntu.univ-nantes.fr karmic/universe Packages
404 Not Found
Err http://ubuntu.univ-nantes.fr karmic-updates/main Packages
404 Not Found
Err http://ubuntu.univ-nantes.fr karmic-updates/restricted Packages
404 Not Found
Err http://ubuntu.univ-nantes.fr karmic-updates/multiverse Packages
404 Not Found
Err http://ubuntu.univ-nantes.fr karmic-updates/restricted Sources
404 Not Found
Err http://ubuntu.univ-nantes.fr karmic-updates/main Sources
404 Not Found
Err http://ubuntu.univ-nantes.fr karmic-updates/universe Sources
404 Not Found
Err http://ubuntu.univ-nantes.fr karmic-updates/universe Packages
404 Not Found
Err http://ubuntu.univ-nantes.fr karmic-security/main Packages
404 Not Found
Err http://ubuntu.univ-nantes.fr karmic-security/restricted Packages
404 Not Found
Err http://ubuntu.univ-nantes.fr karmic-security/multiverse Packages
404 Not Found
Err http://ubuntu.univ-nantes.fr karmic-security/restricted Sources
404 Not Found
Err http://ubuntu.univ-nantes.fr karmic-security/main Sources
404 Not Found
Err http://ubuntu.univ-nantes.fr karmic-security/universe Sources
404 Not Found
Err http://ubuntu.univ-nantes.fr karmic-security/universe Packages
404 Not Found
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/karmic/main/source/Sources.gz 404 Not Found
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/karmic/restricted/source/Sources.gz 404 Not Found
W: Failed to fetch http://ubuntu.univ-nantes.fr/ubuntu/dists/karmic/main/binary-i386/Packages.gz 404 Not Found
W: Failed to fetch http://ubuntu.univ-nantes.fr/ubuntu/dists/karmic/restricted/binary-i386/Packages.gz 404 Not Found
W: Failed to fetch http://ubuntu.univ-nantes.fr/ubuntu/dists/karmic/multiverse/binary-i386/Packages.gz 404 Not Found
W: Failed to fetch http://ubuntu.univ-nantes.fr/ubuntu/dists/karmic/restricted/source/Sources.gz 404 Not Found
W: Failed to fetch http://ubuntu.univ-nantes.fr/ubuntu/dists/karmic/main/source/Sources.gz 404 Not Found
W: Failed to fetch http://ubuntu.univ-nantes.fr/ubuntu/dists/karmic/universe/source/Sources.gz 404 Not Found
W: Failed to fetch http://ubuntu.univ-nantes.fr/ubuntu/dists/karmic/universe/binary-i386/Packages.gz 404 Not Found
W: Failed to fetch http://ubuntu.univ-nantes.fr/ubuntu/dists/karmic-updates/main/binary-i386/Packages.gz 404 Not Found
W: Failed to fetch http://ubuntu.univ-nantes.fr/ubuntu/dists/karmic-updates/restricted/binary-i386/Packages.gz 404 Not Found
W: Failed to fetch http://ubuntu.univ-nantes.fr/ubuntu/dists/karmic-updates/multiverse/binary-i386/Packages.gz 404 Not Found
W: Failed to fetch http://ubuntu.univ-nantes.fr/ubuntu/dists/karmic-updates/restricted/source/Sources.gz 404 Not Found
W: Failed to fetch http://ubuntu.univ-nantes.fr/ubuntu/dists/karmic-updates/main/source/Sources.gz 404 Not Found
W: Failed to fetch http://ubuntu.univ-nantes.fr/ubuntu/dists/karmic-updates/universe/source/Sources.gz 404 Not Found
W: Failed to fetch http://ubuntu.univ-nantes.fr/ubuntu/dists/karmic-updates/universe/binary-i386/Packages.gz 404 Not Found
W: Failed to fetch http://ubuntu.univ-nantes.fr/ubuntu/dists/karmic-security/main/binary-i386/Packages.gz 404 Not Found
W: Failed to fetch http://ubuntu.univ-nantes.fr/ubuntu/dists/karmic-security/restricted/binary-i386/Packages.gz 404 Not Found
W: Failed to fetch http://ubuntu.univ-nantes.fr/ubuntu/dists/karmic-security/multiverse/binary-i386/Packages.gz 404 Not Found
W: Failed to fetch http://ubuntu.univ-nantes.fr/ubuntu/dists/karmic-security/restricted/source/Sources.gz 404 Not Found
W: Failed to fetch http://ubuntu.univ-nantes.fr/ubuntu/dists/karmic-security/main/source/Sources.gz 404 Not Found
W: Failed to fetch http://ubuntu.univ-nantes.fr/ubuntu/dists/karmic-security/universe/source/Sources.gz 404 Not Found
W: Failed to fetch http://ubuntu.univ-nantes.fr/ubuntu/dists/karmic-security/universe/binary-i386/Packages.gz 404 Not Found
apt.conf
但是我可以用 Firefox 来“看到”这些文件。
more /etc/apt/apt.conf
Acquire::http::proxy "http://www.myproxyname.fr:3128";
我也尝试使用端口“80”,或者使用空白的 /etc/apt/apt.conf
源列表
grep -v "#" /etc/apt/sources.list
deb http://ubuntu.univ-nantes.fr/ubuntu/ karmic main restricted multiverse
deb http://ubuntu.univ-nantes.fr/ubuntu/ karmic-updates main restricted multiverse
deb http://ubuntu.univ-nantes.fr/ubuntu/ karmic universe
deb http://ubuntu.univ-nantes.fr/ubuntu/ karmic-updates universe
deb http://ubuntu.univ-nantes.fr/ubuntu/ karmic-security main restricted multiverse
deb http://ubuntu.univ-nantes.fr/ubuntu/ karmic-security universe
有人知道如何解决这个问题吗?
谢谢
皮埃尔
答案1
对于其他不是由于代理损坏而导致问题的用户:您可以随时从源列表中删除主机。通常,这就像从中删除行一样简单/etc/apt/sources.list
。如果这不起作用,请检查您是否有/etc/apt/sources.d/
目录并将其从其中的相应文件中删除。
答案2
好的对不起,系统管理员来了并纠正了错误的代理 URl。
答案3
您如何确定 wget 正在使用代理?这是唯一的出路吗?您如何确定 wget 正在使用代理?这是唯一的出路吗?或者您的 .wgetrc 配置文件是什么?
我首先想到的是,代理需要基于此进行代理信息。