linux sudo apt-get update 出错

原创 2013年12月02日 11:21:52
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 更新库就可以了

sudo apt-get update 简介

要用apt-get这种方式安装LAMP时,最好先运行下面在命令升级自己的系统这样是为了更新源,而如果你找的源不好,可能安装LMAP失败。 #sudo apt-get update 获得最近的软件...
  • csliuruidongdn
  • csliuruidongdn
  • 2013年03月01日 16:03
  • 5268

关于ubuntu老版本update时出现error 404 not found问题

关于ubuntu老版本update时出现error 404 not found问题 今天打开ubuntu kylin 15.10通过sudo apt-get安装一个软件的时候,当使用 sudo a...
  • u012328159
  • u012328159
  • 2017年12月18日 21:52
  • 97

Linux 系统sudo apt-get update出错E: Problem executing scripts APT::Update::Post-Invoke-Success

Ubuntu系统运行 sudo apt-get update时报错如下: E: Problem executing scripts APT::Update::Post-Invoke-Success '...
  • qq_28093585
  • qq_28093585
  • 2017年12月29日 15:57
  • 49

关于ubuntu更新sudo apt-get update和sudo apt-get upgrade下载缓慢的问题

当使用sudo apt-get update和sudo apt-get upgrade更新系统时,下载速度特别慢。基本上就是十几kb或者就几b。我看了一下我的网络速度还是可以的用迅雷下载可以达到700...
  • u013472064
  • u013472064
  • 2014年02月21日 11:59
  • 3871

sudo apt-get update时的问题

  • 2013年03月16日 15:53
  • 1KB
  • 下载

sudo apt-get update错误

在运行sudo apt-get update的时候遇到以下错误: [plain] view plaincopy W: Failed to fetch...
  • usydapeng
  • usydapeng
  • 2014年05月10日 23:01
  • 2023

sudo apt-get update 和 sudo apt-get dist -upgrade作用

Ubuntu中 sudo apt-get update #这一步是更新你的源列表,换源后必须执行 sudo apt-get dist-upgrade #这一步是更新软件,如果你对新版本软件的需求...
  • barry283049
  • barry283049
  • 2014年12月30日 10:54
  • 3528

ubuntu apt-get update 失败解决。

当运行apt-get update后出现如下错误时: E: Some index files failed to download, they have been ignored, or old o...
  • ronghua_liu
  • ronghua_liu
  • 2013年02月25日 14:34
  • 111675

sudo apt-get update更新源失败

E:Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)     出现...
  • zwjsatan
  • zwjsatan
  • 2012年10月23日 10:30
  • 26433

sudo apt-get update出现错误

使用sudo apt-get install update时,出现如下错误:`E: Some index files failed to download. They have been ignore...
  • yingyujianmo
  • yingyujianmo
  • 2016年01月19日 14:16
  • 5331
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:linux sudo apt-get update 出错
举报原因:
原因补充:

(最多只允许输入30个字)