关闭

linux sudo apt-get update 出错

标签: linuxc语言
1452人阅读 评论(0) 收藏 举报
分类:
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 更新库就可以了
0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:55559次
    • 积分:903
    • 等级:
    • 排名:千里之外
    • 原创:33篇
    • 转载:19篇
    • 译文:0篇
    • 评论:7条
    文章分类
    最新评论