apt-get update 不会更新 - undo /apt-add-repository

apt-get update 不会更新 - undo /apt-add-repository

当我跑步时apt-get update,会发生这种情况:

Hit http://dl.google.com stable Release.gpg
Hit http://dl.google.com stable Release                                        
Hit http://security.debian.org wheezy/updates Release.gpg                      
Hit http://packages.crunchbang.org waldorf Release.gpg                         
Hit http://security.debian.org wheezy/updates Release                          
Ign http://ppa.launchpad.net wheezy Release.gpg                                
Hit http://packages.crunchbang.org waldorf Release                             
Hit http://dl.google.com stable/main i386 Packages                             
Ign http://ppa.launchpad.net wheezy Release                                    
Hit http://security.debian.org wheezy/updates/main i386 Packages               
Hit http://security.debian.org wheezy/updates/main Translation-en              
Hit http://packages.crunchbang.org waldorf/main i386 Packages                  
Hit http://http.debian.net wheezy Release.gpg                                  
Ign http://dl.google.com stable/main Translation-en_US               
Ign http://dl.google.com stable/main Translation-en                  
Hit http://http.debian.net wheezy Release                            
Hit http://http.debian.net wheezy/main i386 Packages                           
Hit http://http.debian.net wheezy/contrib i386 Packages                        
Ign http://packages.crunchbang.org waldorf/main Translation-en_US              
Hit http://http.debian.net wheezy/non-free i386 Packages                       
Ign http://packages.crunchbang.org waldorf/main Translation-en                 
Hit http://http.debian.net wheezy/contrib Translation-en             
Hit http://http.debian.net wheezy/main Translation-en                
Hit http://http.debian.net wheezy/non-free Translation-en
Err http://ppa.launchpad.net wheezy/main Sources
  404  Not Found
Err http://ppa.launchpad.net wheezy/main i386 Packages
  404  Not Found
Ign http://ppa.launchpad.net wheezy/main Translation-en_US
Ign http://ppa.launchpad.net wheezy/main Translation-en
W: Failed to fetch http://ppa.launchpad.net/glasen/intel-driver/ubuntu/dists/wheezy/main/source/Sources  404  Not Found

W: Failed to fetch http://ppa.launchpad.net/glasen/intel-driver/ubuntu/dists/wheezy/main/binary-i386/Packages  404  Not Found

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

这是跑步造成的apt-add-repository ppa:glasen/intel-driver。如何撤消上一个命令发生的情况以便apt-get update正常工作?

注意:这是在 Dell Dimension 3000 上

答案1

您只需要编辑您的来源即可。apt-add-repository只需将新deb行添加到系统的源存储库列表中。它们以简单文本文件的形式存储在/etc/apt/sources.list和中/etc/apt/sources.list.d

因此,首先找出有问题的存储库的存储位置:

grep -F ppa.launchpad.net /etc/apt/sources.list /etc/apt/sources.list.d

这将返回包含相关行的文件列表。例如:

/etc/apt/sources.list: deb http://ppa.launchpad.net/glasen/intel-driver/ ubuntu main

然后,您可以在您喜欢的编辑器(以 root 用户身份)中打开列出的文件,sudo并删除或注释掉(#在行首添加 )相关行。

相关内容