Ign file: apt_packages/ Release.gpg Ign file: apt_packages/ Translation-en_US Ign file: apt_packages/ Release Ign file: apt_packages/ Packages Ign file: apt_packages/ Packages Err file: apt_packages/ Packages File not found Ign http://cn.archive.ubuntu.com karmic Release.gpg Ign http://cn.archive.ubuntu.com karmic/main Translation-en_US Ign http://cn.archive.ubuntu.com karmic/restricted Translation-en_US Ign http://cn.archive.ubuntu.com karmic/universe Translation-en_US Ign http://cn.archive.ubuntu.com karmic/multiverse Translation-en_US Ign http://cn.archive.ubuntu.com karmic-updates Release.gpg Ign http://cn.archive.ubuntu.com karmic-updates/main Translation-en_US Ign http://cn.archive.ubuntu.com karmic-updates/restricted Translation-en_US Ign http://cn.archive.ubuntu.com karmic-updates/universe Translation-en_US Ign http://cn.archive.ubuntu.com karmic-updates/multiverse Translation-en_US Ign http://cn.archive.ubuntu.com karmic Release Ign http://cn.archive.ubuntu.com karmic-updates Release Ign http://cn.archive.ubuntu.com karmic/main Packages Ign http://cn.archive.ubuntu.com karmic/restricted Packages Ign http://cn.archive.ubuntu.com karmic/main Sources Ign http://cn.archive.ubuntu.com karmic/restricted Sources Ign http://cn.archive.ubuntu.com karmic/universe Packages Ign http://cn.archive.ubuntu.com karmic/universe Sources Ign http://cn.archive.ubuntu.com karmic/multiverse Packages Ign http://cn.archive.ubuntu.com karmic/multiverse Sources Ign http://cn.archive.ubuntu.com karmic-updates/main Packages Ign http://cn.archive.ubuntu.com karmic-updates/restricted Packages Ign http://cn.archive.ubuntu.com karmic-updates/main Sources Ign http://cn.archive.ubuntu.com karmic-updates/restricted Sources Ign http://cn.archive.ubuntu.com karmic-updates/universe Packages Ign http://cn.archive.ubuntu.com karmic-updates/universe Sources Ign http://cn.archive.ubuntu.com karmic-updates/multiverse Packages Ign http://cn.archive.ubuntu.com karmic-updates/multiverse Sources Ign http://cn.archive.ubuntu.com karmic/main Packages Ign http://cn.archive.ubuntu.com karmic/restricted Packages Ign http://cn.archive.ubuntu.com karmic/main Sources Ign http://cn.archive.ubuntu.com karmic/restricted Sources Ign http://cn.archive.ubuntu.com karmic/universe Packages Ign http://cn.archive.ubuntu.com karmic/universe Sources Ign http://cn.archive.ubuntu.com karmic/multiverse Packages Ign http://cn.archive.ubuntu.com karmic/multiverse Sources Ign http://cn.archive.ubuntu.com karmic-updates/main Packages Ign http://cn.archive.ubuntu.com karmic-updates/restricted Packages Ign http://cn.archive.ubuntu.com karmic-updates/main Sources Ign http://cn.archive.ubuntu.com karmic-updates/restricted Sources Ign http://cn.archive.ubuntu.com karmic-updates/universe Packages Ign http://cn.archive.ubuntu.com karmic-updates/universe Sources Ign http://cn.archive.ubuntu.com karmic-updates/multiverse Packages Ign http://cn.archive.ubuntu.com karmic-updates/multiverse Sources Err http://cn.archive.ubuntu.com karmic/main Packages 404 Not Found Err http://cn.archive.ubuntu.com karmic/restricted Packages 404 Not Found Err http://cn.archive.ubuntu.com karmic/main Sources 404 Not Found Err http://cn.archive.ubuntu.com karmic/restricted Sources 404 Not Found Err http://cn.archive.ubuntu.com karmic/universe Packages 404 Not Found Err http://cn.archive.ubuntu.com karmic/universe Sources 404 Not Found Ign http://security.ubuntu.com karmic-security Release.gpg Ign http://security.ubuntu.com karmic-security/main Translation-en_US Ign http://security.ubuntu.com karmic-security/restricted Translation-en_US Ign http://security.ubuntu.com karmic-security/universe Translation-en_US Ign http://security.ubuntu.com karmic-security/multiverse Translation-en_US Err http://cn.archive.ubuntu.com karmic/multiverse Packages 404 Not Found Err http://cn.archive.ubuntu.com karmic/multiverse Sources 404 Not Found Err http://cn.archive.ubuntu.com karmic-updates/main Packages 404 Not Found Err http://cn.archive.ubuntu.com karmic-updates/restricted Packages 404 Not Found Err http://cn.archive.ubuntu.com karmic-updates/main Sources 404 Not Found Err http://cn.archive.ubuntu.com karmic-updates/restricted Sources 404 Not Found Err http://cn.archive.ubuntu.com karmic-updates/universe Packages 404 Not Found Err http://cn.archive.ubuntu.com karmic-updates/universe Sources 404 Not Found Err http://cn.archive.ubuntu.com karmic-updates/multiverse Packages 404 Not Found Err http://cn.archive.ubuntu.com karmic-updates/multiverse Sources 404 Not Found Ign http://security.ubuntu.com karmic-security Release Ign http://security.ubuntu.com karmic-security/main Packages Ign http://security.ubuntu.com karmic-security/restricted Packages Ign http://security.ubuntu.com karmic-security/main Sources Ign http://security.ubuntu.com karmic-security/restricted Sources Ign http://security.ubuntu.com karmic-security/universe Packages Ign http://security.ubuntu.com karmic-security/universe Sources Ign http://security.ubuntu.com karmic-security/multiverse Packages Ign http://security.ubuntu.com karmic-security/multiverse Sources Ign http://security.ubuntu.com karmic-security/main Packages Ign http://security.ubuntu.com karmic-security/restricted Packages Ign http://security.ubuntu.com karmic-security/main Sources Ign http://security.ubuntu.com karmic-security/restricted Sources Ign http://security.ubuntu.com karmic-security/universe Packages Ign http://security.ubuntu.com karmic-security/universe Sources Ign http://security.ubuntu.com karmic-security/multiverse Packages Ign http://security.ubuntu.com karmic-security/multiverse Sources Err http://security.ubuntu.com karmic-security/main Packages 404 Not Found [IP: 91.189.92.200 80] Err http://security.ubuntu.com karmic-security/restricted Packages 404 Not Found [IP: 91.189.92.200 80] Err http://security.ubuntu.com karmic-security/main Sources 404 Not Found [IP: 91.189.92.200 80] Err http://security.ubuntu.com karmic-security/restricted Sources 404 Not Found [IP: 91.189.92.200 80] Err http://security.ubuntu.com karmic-security/universe Packages 404 Not Found [IP: 91.189.92.200 80] Err http://security.ubuntu.com karmic-security/universe Sources 404 Not Found [IP: 91.189.92.200 80] Err http://security.ubuntu.com karmic-security/multiverse Packages 404 Not Found [IP: 91.189.92.200 80] Err http://security.ubuntu.com karmic-security/multiverse Sources 404 Not Found [IP: 91.189.92.200 80] W: Failed to fetch file:/work/apt_packages/Packages.gz File not found W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/karmic/main/binary-i386/Packages.gz 404 Not Found W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/karmic/restricted/binary-i386/Packages.gz 404 Not Found W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/karmic/main/source/Sources.gz 404 Not Found W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/karmic/restricted/source/Sources.gz 404 Not Found W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/karmic/universe/binary-i386/Packages.gz 404 Not Found W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/karmic/universe/source/Sources.gz 404 Not Found W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/karmic/multiverse/binary-i386/Packages.gz 404 Not Found W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/karmic/multiverse/source/Sources.gz 404 Not Found W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/karmic-updates/main/binary-i386/Packages.gz 404 Not Found W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/karmic-updates/restricted/binary-i386/Packages.gz 404 Not Found W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/karmic-updates/main/source/Sources.gz 404 Not Found W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/karmic-updates/restricted/source/Sources.gz 404 Not Found W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/karmic-updates/universe/binary-i386/Packages.gz 404 Not Found W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/karmic-updates/universe/source/Sources.gz 404 Not Found W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/karmic-updates/multiverse/binary-i386/Packages.gz 404 Not Found W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/karmic-updates/multiverse/source/Sources.gz 404 Not Found W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/karmic-security/main/binary-i386/Packages.gz 404 Not Found [IP: 91.189.92.200 80] W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/karmic-security/restricted/binary-i386/Packages.gz 404 Not Found [IP: 91.189.92.200 80] W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/karmic-security/main/source/Sources.gz 404 Not Found [IP: 91.189.92.200 80] W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/karmic-security/restricted/source/Sources.gz 404 Not Found [IP: 91.189.92.200 80] W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/karmic-security/universe/binary-i386/Packages.gz 404 Not Found [IP: 91.189.92.200 80] W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/karmic-security/universe/source/Sources.gz 404 Not Found [IP: 91.189.92.200 80] W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/karmic-security/multiverse/binary-i386/Packages.gz 404 Not Found [IP: 91.189.92.200 80] W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/karmic-security/multiverse/source/Sources.gz 404 Not Found [IP: 91.189.92.200 80] E: Some index files failed to download, they have been ignored, or old ones used instead.
$sudo apt-get update
$sudo apt-get install xxx
另外看看网络通不通
$sudo apt-get install xxx
更新源是错误的,这个当然也是错误的,网络能ping通
@yanggm: 可以看下/etc/apt/sources.list,是不是你改过了这个文件。用这个网站选择你的Ubuntu的版本号,再生成一个覆盖一下就好了。
另外:$man sources.list 也能有帮助文档
@Jerry Chou: 呵呵,解决了,找个新的源覆盖就行了
@yanggm: 能写下具体过程吗?找个新的源覆盖 /etc/apt/sources.list 这个文件?
@Jerry Chou: 用这个网站选择你的Ubuntu的版本号,再生成一个覆盖一下就好了。----这个具体指什么网站?