update 404错误

来源:互联网 发布:淘宝店铺红包怎么用啊 编辑:程序博客网 时间:2024/06/06 05:12

进sourceware center 下软件出错



执行sudo apt-get update


root@dd-virtual-machine:~# sudo apt-get update 
Ign http://cn.archive.ubuntu.com natty InRelease 
Ign http://cn.archive.ubuntu.com natty-updates InRelease                        
Ign http://cn.archive.ubuntu.com natty Release.gpg                              
Ign http://cn.archive.ubuntu.com natty-updates Release.gpg                      
Ign http://cn.archive.ubuntu.com natty Release                                  
Ign http://archive.canonical.com natty InRelease                      
Ign http://extras.ubuntu.com natty InRelease                          
Ign http://cn.archive.ubuntu.com natty-updates Release                
Ign http://security.ubuntu.com natty-security InRelease               
Ign http://cn.archive.ubuntu.com natty/main Sources/DiffIndex         
Ign http://cn.archive.ubuntu.com natty/universe Sources/DiffIndex     
Ign http://cn.archive.ubuntu.com natty/multiverse Sources/DiffIndex   
Ign http://cn.archive.ubuntu.com natty/multiverse i386 Packages/DiffIndex 
Hit http://archive.canonical.com natty Release.gpg                    
Ign http://extras.ubuntu.com natty Release.gpg                        
Ign http://cn.archive.ubuntu.com natty/main TranslationIndex 
Ign http://cn.archive.ubuntu.com natty/multiverse TranslationIndex    
Ign http://cn.archive.ubuntu.com natty/restricted TranslationIndex    
Ign http://cn.archive.ubuntu.com natty/universe TranslationIndex      
Ign http://security.ubuntu.com natty-security Release.gpg             
Ign http://cn.archive.ubuntu.com natty-updates/main Sources/DiffIndex 
Ign http://cn.archive.ubuntu.com natty-updates/multiverse Sources/DiffIndex 
Ign http://cn.archive.ubuntu.com natty-updates/main TranslationIndex  
Ign http://cn.archive.ubuntu.com natty-updates/multiverse TranslationIndex 
Hit http://archive.canonical.com natty Release                        
Ign http://extras.ubuntu.com natty Release                            
Ign http://security.ubuntu.com natty-security Release                           
Ign http://cn.archive.ubuntu.com natty-updates/restricted TranslationIndex 
Hit http://archive.canonical.com natty/partner i386 Packages          
Ign http://cn.archive.ubuntu.com natty-updates/universe TranslationIndex 
Ign http://security.ubuntu.com natty-security/main Sources/DiffIndex            
Ign http://extras.ubuntu.com natty/main TranslationIndex                        
Ign http://archive.canonical.com natty/partner TranslationIndex       
Ign http://security.ubuntu.com natty-security/restricted Sources/DiffIndex 
Ign http://security.ubuntu.com natty-security/universe Sources/DiffIndex        
Ign http://security.ubuntu.com natty-security/multiverse Sources/DiffIndex      
Ign http://security.ubuntu.com natty-security/main i386 Packages/DiffIndex      
Ign http://security.ubuntu.com natty-security/restricted i386 Packages/DiffIndex 
Ign http://security.ubuntu.com natty-security/universe i386 Packages/DiffIndex  
Ign http://security.ubuntu.com natty-security/multiverse i386 Packages/DiffIndex 
Ign http://security.ubuntu.com natty-security/main TranslationIndex             
Ign http://security.ubuntu.com natty-security/multiverse TranslationIndex       
Ign http://security.ubuntu.com natty-security/restricted TranslationIndex       
Ign http://security.ubuntu.com natty-security/universe TranslationIndex         
Err http://extras.ubuntu.com natty/main Sources                                 
  404  Not Found 
Err http://extras.ubuntu.com natty/main i386 Packages                           
  404  Not Found 
Ign http://archive.canonical.com natty/partner Translation-en_US                
Ign http://extras.ubuntu.com natty/main Translation-en_US                       
Ign http://archive.canonical.com natty/partner Translation-en         
Ign http://extras.ubuntu.com natty/main Translation-en 
Err http://cn.archive.ubuntu.com natty/restricted Sources 
  404  Not Found 
Err http://cn.archive.ubuntu.com natty/main i386 Packages 
  404  Not Found 
Err http://cn.archive.ubuntu.com natty/restricted i386 Packages 
  404  Not Found 
Err http://cn.archive.ubuntu.com natty/universe i386 Packages 
  404  Not Found 
Err http://cn.archive.ubuntu.com natty-updates/restricted Sources 
  404  Not Found 
Err http://cn.archive.ubuntu.com natty-updates/universe Sources 
  404  Not Found 
Err http://cn.archive.ubuntu.com natty-updates/main i386 Packages 
  404  Not Found 
Err http://cn.archive.ubuntu.com natty-updates/restricted i386 Packages 
  404  Not Found 
Err http://cn.archive.ubuntu.com natty-updates/universe i386 Packages 
  404  Not Found 
Err http://cn.archive.ubuntu.com natty-updates/multiverse i386 Packages 
  404  Not Found 
Err http://cn.archive.ubuntu.com natty/main Sources 
  404  Not Found 
Err http://cn.archive.ubuntu.com natty/universe Sources 
  404  Not Found 
Err http://cn.archive.ubuntu.com natty/multiverse Sources 
  404  Not Found 
Err http://cn.archive.ubuntu.com natty/multiverse i386 Packages 
  404  Not Found 
Ign http://cn.archive.ubuntu.com natty/main Translation-en_US 
Ign http://cn.archive.ubuntu.com natty/main Translation-en 
Ign http://cn.archive.ubuntu.com natty/multiverse Translation-en_US 
Ign http://cn.archive.ubuntu.com natty/multiverse Translation-en 
Ign http://cn.archive.ubuntu.com natty/restricted Translation-en_US 
Ign http://cn.archive.ubuntu.com natty/restricted Translation-en 
Ign http://cn.archive.ubuntu.com natty/universe Translation-en_US 
Ign http://cn.archive.ubuntu.com natty/universe Translation-en 
Err http://cn.archive.ubuntu.com natty-updates/main Sources 
  404  Not Found 
Err http://cn.archive.ubuntu.com natty-updates/multiverse Sources 
  404  Not Found 
Ign http://cn.archive.ubuntu.com natty-updates/main Translation-en_US 
Ign http://cn.archive.ubuntu.com natty-updates/main Translation-en 
Ign http://cn.archive.ubuntu.com natty-updates/multiverse Translation-en_US 
Ign http://cn.archive.ubuntu.com natty-updates/multiverse Translation-en 
Ign http://cn.archive.ubuntu.com natty-updates/restricted Translation-en_US 
Ign http://cn.archive.ubuntu.com natty-updates/restricted Translation-en 
Ign http://cn.archive.ubuntu.com natty-updates/universe Translation-en_US 
Ign http://cn.archive.ubuntu.com natty-updates/universe Translation-en 
Err http://security.ubuntu.com natty-security/main Sources 
  404  Not Found [IP: 91.189.91.14 80] 
Err http://security.ubuntu.com natty-security/restricted Sources 
  404  Not Found [IP: 91.189.91.14 80] 
Err http://security.ubuntu.com natty-security/universe Sources 
  404  Not Found [IP: 91.189.91.14 80] 
Err http://security.ubuntu.com natty-security/multiverse Sources 
  404  Not Found [IP: 91.189.91.14 80] 
Err http://security.ubuntu.com natty-security/main i386 Packages 
  404  Not Found [IP: 91.189.91.14 80] 
Err http://security.ubuntu.com natty-security/restricted i386 Packages 
  404  Not Found [IP: 91.189.91.14 80] 
Err http://security.ubuntu.com natty-security/universe i386 Packages 
  404  Not Found [IP: 91.189.91.14 80] 
Err http://security.ubuntu.com natty-security/multiverse i386 Packages 
  404  Not Found [IP: 91.189.91.14 80] 
Ign http://security.ubuntu.com natty-security/main Translation-en_US 
Ign http://security.ubuntu.com natty-security/main Translation-en 
Ign http://security.ubuntu.com natty-security/multiverse Translation-en_US 
Ign http://security.ubuntu.com natty-security/multiverse Translation-en 
Ign http://security.ubuntu.com natty-security/restricted Translation-en_US 
Ign http://security.ubuntu.com natty-security/restricted Translation-en 
Ign http://security.ubuntu.com natty-security/universe Translation-en_US 
Ign http://security.ubuntu.com natty-security/universe Translation-en 
W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/natty/restricted/source/Sources  404  Not Found 


W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/natty/main/binary-i386/Packages  404  Not Found 


W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/natty/restricted/binary-i386/Packages  404  Not Found 


W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/natty/universe/binary-i386/Packages  404  Not Found 


W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/natty-updates/restricted/source/Sources  404  Not Found 


W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/natty-updates/universe/source/Sources  404  Not Found 


W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/natty-updates/main/binary-i386/Packages  404  Not Found 


W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/natty-updates/restricted/binary-i386/Packages  404  Not Found 


W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/natty-updates/universe/binary-i386/Packages  404  Not Found 


W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/natty-updates/multiverse/binary-i386/Packages  404  Not Found 


W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/natty/main/source/Sources  404  Not Found 


W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/natty/universe/source/Sources  404  Not Found 


W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/natty/multiverse/source/Sources  404  Not Found 


W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/natty/multiverse/binary-i386/Packages  404  Not Found 


W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/natty-updates/main/source/Sources  404  Not Found 


W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/natty-updates/multiverse/source/Sources  404  Not Found 


W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/natty/main/source/Sources  404  Not Found 


W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/natty/main/binary-i386/Packages  404  Not Found 


W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/natty-security/main/source/Sources  404  Not Found [IP: 91.189.91.14 80] 


W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/natty-security/restricted/source/Sources  404  Not Found [IP: 91.189.91.14 80] 


W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/natty-security/universe/source/Sources  404  Not Found [IP: 91.189.91.14 80] 


W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/natty-security/multiverse/source/Sources  404  Not Found [IP: 91.189.91.14 80] 


W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/natty-security/main/binary-i386/Packages  404  Not Found [IP: 91.189.91.14 80] 


W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/natty-security/restricted/binary-i386/Packages  404  Not Found [IP: 91.189.91.14 80] 


W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/natty-security/universe/binary-i386/Packages  404  Not Found [IP: 91.189.91.14 80] 


W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/natty-security/multiverse/binary-i386/Packages  404  Not Found [IP: 91.189.91.14 80] 


E: Some index files failed to download. They have been ignored, or old ones used instead.




------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Ubuntu 11.04 (Natty) 已经停止支持,但可以使用old-releases源了,先备份源列表文件: 
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup 

sudo gedit /etc/apt/sources.list 
把里面的内容替换为以下内容: 
deb http://old-releases.ubuntu.com/ubuntu/ natty main restricted universe multiverse 
deb http://old-releases.ubuntu.com/ubuntu/ natty-security main restricted universe multiverse 
deb http://old-releases.ubuntu.com/ubuntu/ natty-updates main restricted universe multiverse 
deb http://old-releases.ubuntu.com/ubuntu/ natty-proposed main restricted universe multiverse 
deb http://old-releases.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse 
deb-src http://old-releases.ubuntu.com/ubuntu/ natty main restricted universe multiverse 
deb-src http://old-releases.ubuntu.com/ubuntu/ natty-security main restricted universe multiverse 
deb-src http://old-releases.ubuntu.com/ubuntu/ natty-updates main restricted universe multiverse 
deb-src http://old-releases.ubuntu.com/ubuntu/ natty-proposed main restricted universe multiverse 
deb-src http://old-releases.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse 

重载源列表,使配置生效: 
sudo apt-get update 

安装SSH服务器和客户端: 
sudo apt-get install openssh-server openssh-client 




#deb cdrom:[Ubuntu 12.04.4 LTS _natty Pangolin_ - Release i386 (20140204)]/ natty main restricted


# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ natty main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ natty main restricted


## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ natty-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ natty-updates main restricted


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


## 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://us.archive.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse


deb http://security.ubuntu.com/ubuntu natty-security main restricted
deb-src http://security.ubuntu.com/ubuntu natty-security main restricted
deb http://security.ubuntu.com/ubuntu natty-security universe
deb-src http://security.ubuntu.com/ubuntu natty-security universe
deb http://security.ubuntu.com/ubuntu natty-security multiverse
deb-src http://security.ubuntu.com/ubuntu natty-security 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 natty partner
# deb-src http://archive.canonical.com/ubuntu natty partner


## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu natty main
deb-src http://extras.ubuntu.com/ubuntu natty main

0 0