linux sudo apt-get update 出错

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 vim /etc/apt/sources.list 打开源
找了个新源把原来的源给覆盖了,找的是10.04的源

# deb cdrom:[Ubuntu 10.04 LTS _Lucid Lynx_ - Release i386 (20100429)]/ lucid main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://cn.archive.ubuntu.com/ubuntu/ lucid main restricted
deb-src http://cn.archive.ubuntu.com/ubuntu/ lucid main restricted

## Major bug fix updates produced after the final release of the
## distribution.

## 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://cn.archive.ubuntu.com/ubuntu/ lucid universe
deb-src http://cn.archive.ubuntu.com/ubuntu/ lucid 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://cn.archive.ubuntu.com/ubuntu/ lucid multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ lucid multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## 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://cn.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse
# deb-src http://cn.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe 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 lucid partner
# deb-src http://archive.canonical.com/ubuntu lucid partner

deb http://security.ubuntu.com/ubuntu lucid-security main restricted
deb-src http://security.ubuntu.com/ubuntu lucid-security main restricted
deb http://security.ubuntu.com/ubuntu lucid-security universe
deb-src http://security.ubuntu.com/ubuntu lucid-security universe
deb http://security.ubuntu.com/ubuntu lucid-security multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ lucid-updates restricted main multiverse universe
deb-src http://security.ubuntu.com/ubuntu lucid-security multiverse

 

最后运行sudo apt-get update 更新库就可以了

转载于:https://www.cnblogs.com/yanggm/archive/2013/04/05/3000901.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值