为什么 apt-get update 会失败并出现 404 错误?

为什么 apt-get update 会失败并出现 404 错误?

我新安装的 12.10 86_64 桌面出现问题。

当我尝试更新 apt-get 或尝试安装包时,控制台上会弹出此错误,而 nodejs 根本不起作用,控制台上也没有错误。

Ignoring file 'eugenesan-java-quantal.list.save' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension

这个错误是在我更新 apt-get 后开始的

sudo apt-get update

我是 ubuntu 的新手。

这是日志文件:(土耳其语“Yoksay”=忽略,“Bağlandı”=连接,“getirilmesi başarısız oldu”=获取失败)

attila@Lupuseum:~$ sudo apt-get update
    Yoksay http://security.ubuntu.com quantal-security InRelease
    Yoksay http://extras.ubuntu.com quantal InRelease                              
    Yoksay http://ppa.launchpad.net quantal InRelease                              
    Bağlandı http://security.ubuntu.com quantal-security Release.gpg               
    Bağlandı http://extras.ubuntu.com quantal Release.gpg                          
    Yoksay http://cy.archive.ubuntu.com quantal InRelease                
    Yoksay http://ppa.launchpad.net quantal InRelease                    
    Bağlandı http://security.ubuntu.com quantal-security Release         
    Bağlandı http://extras.ubuntu.com quantal Release                              
    Yoksay http://cy.archive.ubuntu.com quantal-updates InRelease                  
    Bağlandı http://ppa.launchpad.net quantal Release.gpg                          
    Bağlandı http://security.ubuntu.com quantal-security/main Sources    
    Yoksay http://cy.archive.ubuntu.com quantal-backports InRelease      
    Bağlandı http://extras.ubuntu.com quantal/main Sources               
    Yoksay http://ppa.launchpad.net quantal Release.gpg                  
    Bağlandı http://security.ubuntu.com quantal-security/restricted Sources
    Bağlandı http://cy.archive.ubuntu.com quantal Release.gpg            
    Bağlandı http://extras.ubuntu.com quantal/main amd64 Packages        
    Bağlandı http://ppa.launchpad.net quantal Release                    
    Bağlandı http://security.ubuntu.com quantal-security/universe Sources          
    Bağlandı http://cy.archive.ubuntu.com quantal-updates Release.gpg              
    Bağlandı http://extras.ubuntu.com quantal/main i386 Packages                   
    Yoksay http://ppa.launchpad.net quantal Release                                
    Bağlandı http://cy.archive.ubuntu.com quantal-backports Release.gpg            
    Bağlandı http://ppa.launchpad.net quantal/main Sources                         
    Bağlandı http://security.ubuntu.com quantal-security/multiverse Sources
    Bağlandı http://cy.archive.ubuntu.com quantal Release                          
    Bağlandı http://ppa.launchpad.net quantal/main amd64 Packages                  
    Bağlandı http://security.ubuntu.com quantal-security/main amd64 Packages       
    Bağlandı http://cy.archive.ubuntu.com quantal-updates Release                  
    Bağlandı http://ppa.launchpad.net quantal/main i386 Packages                   
    Bağlandı http://security.ubuntu.com quantal-security/restricted amd64 Packages 
    Bağlandı http://cy.archive.ubuntu.com quantal-backports Release      
    Bağlandı http://security.ubuntu.com quantal-security/universe amd64 Packages   
    Bağlandı http://cy.archive.ubuntu.com quantal/main Sources                     
    Bağlandı http://security.ubuntu.com quantal-security/multiverse amd64 Packages
    Bağlandı http://cy.archive.ubuntu.com quantal/restricted Sources     
    Bağlandı http://security.ubuntu.com quantal-security/main i386 Packages
    Bağlandı http://cy.archive.ubuntu.com quantal/universe Sources       
    Bağlandı http://security.ubuntu.com quantal-security/restricted i386 Packages
    Bağlandı http://cy.archive.ubuntu.com quantal/multiverse Sources     
    Bağlandı http://security.ubuntu.com quantal-security/universe i386 Packages
    Bağlandı http://cy.archive.ubuntu.com quantal/main amd64 Packages    
    Bağlandı http://security.ubuntu.com quantal-security/multiverse i386 Packages
    Bağlandı http://cy.archive.ubuntu.com quantal/restricted amd64 Packages
    Bağlandı http://cy.archive.ubuntu.com quantal/universe amd64 Packages
    Bağlandı http://cy.archive.ubuntu.com quantal/multiverse amd64 Packages
    Bağlandı http://security.ubuntu.com quantal-security/main Translation-en
    Yoksay http://extras.ubuntu.com quantal/main Translation-tr_CY       
    Bağlandı http://cy.archive.ubuntu.com quantal/main i386 Packages     
    Bağlandı http://cy.archive.ubuntu.com quantal/restricted i386 Packages
    Yoksay http://extras.ubuntu.com quantal/main Translation-tr          
    Bağlandı http://security.ubuntu.com quantal-security/multiverse Translation-en
    Bağlandı http://cy.archive.ubuntu.com quantal/universe i386 Packages           
    Yoksay http://extras.ubuntu.com quantal/main Translation-en                    
    Bağlandı http://cy.archive.ubuntu.com quantal/multiverse i386 Packages
    Bağlandı http://cy.archive.ubuntu.com quantal/main Translation-tr    
    Bağlandı http://cy.archive.ubuntu.com quantal/main Translation-en
    Bağlandı http://security.ubuntu.com quantal-security/restricted Translation-en
    Bağlandı http://cy.archive.ubuntu.com quantal/multiverse Translation-tr
    Bağlandı http://cy.archive.ubuntu.com quantal/multiverse Translation-en
    Bağlandı http://security.ubuntu.com quantal-security/universe Translation-en
    Bağlandı http://cy.archive.ubuntu.com quantal/restricted Translation-tr
    Bağlandı http://cy.archive.ubuntu.com quantal/restricted Translation-en
    Bağlandı http://cy.archive.ubuntu.com quantal/universe Translation-tr
    Bağlandı http://cy.archive.ubuntu.com quantal/universe Translation-en
    Bağlandı http://cy.archive.ubuntu.com quantal-updates/main Sources
    Bağlandı http://cy.archive.ubuntu.com quantal-updates/restricted Sources
    Bağlandı http://cy.archive.ubuntu.com quantal-updates/universe Sources
    Bağlandı http://cy.archive.ubuntu.com quantal-updates/multiverse Sources
    Bağlandı http://cy.archive.ubuntu.com quantal-updates/main amd64 Packages
    Bağlandı http://cy.archive.ubuntu.com quantal-updates/restricted amd64 Packages
    Bağlandı http://cy.archive.ubuntu.com quantal-updates/universe amd64 Packages
    Bağlandı http://cy.archive.ubuntu.com quantal-updates/multiverse amd64 Packages
    Bağlandı http://cy.archive.ubuntu.com quantal-updates/main i386 Packages
    Bağlandı http://cy.archive.ubuntu.com quantal-updates/restricted i386 Packages
    Bağlandı http://cy.archive.ubuntu.com quantal-updates/universe i386 Packages
    Bağlandı http://cy.archive.ubuntu.com quantal-updates/multiverse i386 Packages
    Yoksay http://ppa.launchpad.net quantal/main Translation-tr_CY
    Yoksay http://ppa.launchpad.net quantal/main Translation-tr
    Yoksay http://ppa.launchpad.net quantal/main Translation-en
    Bağlandı http://cy.archive.ubuntu.com quantal-updates/main Translation-en
    Hata http://ppa.launchpad.net quantal/main Sources                   
      404  Not Found
    Hata http://ppa.launchpad.net quantal/main amd64 Packages            
      404  Not Found
    Hata http://ppa.launchpad.net quantal/main i386 Packages
      404  Not Found
    Bağlandı http://cy.archive.ubuntu.com quantal-updates/multiverse Translation-en
    Yoksay http://ppa.launchpad.net quantal/main Translation-tr_CY
    Yoksay http://security.ubuntu.com quantal-security/main Translation-tr_CY
    Yoksay http://ppa.launchpad.net quantal/main Translation-tr
    Yoksay http://security.ubuntu.com quantal-security/main Translation-tr
    Yoksay http://ppa.launchpad.net quantal/main Translation-en
    Yoksay http://security.ubuntu.com quantal-security/multiverse Translation-tr_CY
    Bağlandı http://cy.archive.ubuntu.com quantal-updates/restricted Translation-en
    Yoksay http://security.ubuntu.com quantal-security/multiverse Translation-tr
    Yoksay http://security.ubuntu.com quantal-security/restricted Translation-tr_CY
    Yoksay http://security.ubuntu.com quantal-security/restricted Translation-tr
    Bağlandı http://cy.archive.ubuntu.com quantal-updates/universe Translation-en
    Yoksay http://security.ubuntu.com quantal-security/universe Translation-tr_CY
    Bağlandı http://cy.archive.ubuntu.com quantal-backports/main Sources
    Yoksay http://security.ubuntu.com quantal-security/universe Translation-tr
    Bağlandı http://cy.archive.ubuntu.com quantal-backports/restricted Sources
    Bağlandı http://cy.archive.ubuntu.com quantal-backports/universe Sources
    Bağlandı http://cy.archive.ubuntu.com quantal-backports/multiverse Sources
    Bağlandı http://cy.archive.ubuntu.com quantal-backports/main amd64 Packages
    Bağlandı http://cy.archive.ubuntu.com quantal-backports/restricted amd64 Packages
    Bağlandı http://cy.archive.ubuntu.com quantal-backports/universe amd64 Packages
    Bağlandı http://cy.archive.ubuntu.com quantal-backports/multiverse amd64 Packages
    Bağlandı http://cy.archive.ubuntu.com quantal-backports/main i386 Packages
    Bağlandı http://cy.archive.ubuntu.com quantal-backports/restricted i386 Packages
    Bağlandı http://cy.archive.ubuntu.com quantal-backports/universe i386 Packages
    Bağlandı http://cy.archive.ubuntu.com quantal-backports/multiverse i386 Packages
    Bağlandı http://cy.archive.ubuntu.com quantal-backports/main Translation-en
    Bağlandı http://cy.archive.ubuntu.com quantal-backports/multiverse Translation-en
    Bağlandı http://cy.archive.ubuntu.com quantal-backports/restricted Translation-en
    Bağlandı http://cy.archive.ubuntu.com quantal-backports/universe Translation-en
    Yoksay http://cy.archive.ubuntu.com quantal/main Translation-tr_CY
    Yoksay http://cy.archive.ubuntu.com quantal/multiverse Translation-tr_CY
    Yoksay http://cy.archive.ubuntu.com quantal/restricted Translation-tr_CY
    Yoksay http://cy.archive.ubuntu.com quantal/universe Translation-tr_CY
    Yoksay http://cy.archive.ubuntu.com quantal-updates/main Translation-tr_CY
    Yoksay http://cy.archive.ubuntu.com quantal-updates/main Translation-tr
    Yoksay http://cy.archive.ubuntu.com quantal-updates/multiverse Translation-tr_CY
    Yoksay http://cy.archive.ubuntu.com quantal-updates/multiverse Translation-tr
    Yoksay http://cy.archive.ubuntu.com quantal-updates/restricted Translation-tr_CY
    Yoksay http://cy.archive.ubuntu.com quantal-updates/restricted Translation-tr
    Yoksay http://cy.archive.ubuntu.com quantal-updates/universe Translation-tr_CY
    Yoksay http://cy.archive.ubuntu.com quantal-updates/universe Translation-tr
    Yoksay http://cy.archive.ubuntu.com quantal-backports/main Translation-tr_CY
    Yoksay http://cy.archive.ubuntu.com quantal-backports/main Translation-tr
    Yoksay http://cy.archive.ubuntu.com quantal-backports/multiverse Translation-tr_CY
    Yoksay http://cy.archive.ubuntu.com quantal-backports/multiverse Translation-tr
    Yoksay http://cy.archive.ubuntu.com quantal-backports/restricted Translation-tr_CY
    Yoksay http://cy.archive.ubuntu.com quantal-backports/restricted Translation-tr
    Yoksay http://cy.archive.ubuntu.com quantal-backports/universe Translation-tr_CY
    Yoksay http://cy.archive.ubuntu.com quantal-backports/universe Translation-tr
    N: Ignoring file 'eugenesan-java-quantal.list.save' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
    W: http://ppa.launchpad.net/richarvey/nodejs/ubuntu/dists/quantal/main/source/Sources 404  Not Found getirilmesi başarısız oldu
    W: http://ppa.launchpad.net/richarvey/nodejs/ubuntu/dists/quantal/main/binary-amd64/Packages 404  Not Found getirilmesi başarısız oldu
    W: http://ppa.launchpad.net/richarvey/nodejs/ubuntu/dists/quantal/main/binary-i386/Packages 404  Not Found getirilmesi başarısız oldu
    E: Some index files failed to download. They have been ignored, or old ones used instead.

答案1

问题不在于此:

Ignoring file 'eugenesan-java-quantal.list.save' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension

有“.save”文件是可以的:它们只是备份。你的问题是这样的:

[...]
Hata http://ppa.launchpad.net quantal/main Sources                   
  404  Not Found
Hata http://ppa.launchpad.net quantal/main amd64 Packages            
  404  Not Found
Hata http://ppa.launchpad.net quantal/main i386 Packages
  404  Not Found
[...]
W: http://ppa.launchpad.net/richarvey/nodejs/ubuntu/dists/quantal/main/source/Sources 404  Not Found getirilmesi başarısız oldu
W: http://ppa.launchpad.net/richarvey/nodejs/ubuntu/dists/quantal/main/binary-amd64/Packages 404  Not Found getirilmesi başarısız oldu
W: http://ppa.launchpad.net/richarvey/nodejs/ubuntu/dists/quantal/main/binary-i386/Packages 404  Not Found getirilmesi başarısız oldu
E: Some index files failed to download. They have been ignored, or old ones used instead.

事实上,如果你看看PPA 页面您会发现这些软件包仅为 Precise 构建,而不是为 Quantal 构建。

您应该:

  1. 找到另一个为 Quantal 构建 NodeJS 包的 PPA;或者

  2. 编辑/etc/apt/sources.list.d/richarvey-nodejs-precise.list并将“quantal”替换为“precise”。

相关内容