首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >当我做适当的更新时,我总是会犯很多错误。它需要很长时间才能完成

当我做适当的更新时,我总是会犯很多错误。它需要很长时间才能完成
EN

Unix & Linux用户
提问于 2016-08-28 16:18:56
回答 2查看 5.6K关注 0票数 1
代码语言:javascript
复制
 unique@my-pc ~ sudo apt-get update
[sudo] password for unique: 

    Err http://ppa.launchpad.net jessie/main amd64 Packages                                                                                                                 
  404  Not Found
Err http://ppa.launchpad.net jessie/main i386 Packages                                                                                                                  
  404  Not Found
Ign http://ppa.launchpad.net jessie/main Translation-en_US                                                                                                              
Ign http://ppa.launchpad.net jessie/main Translation-en                                                                                                                 
Err http://ppa.launchpad.net jessie/main amd64 Packages                                                                                                                 
  404  Not Found
Err http://ppa.launchpad.net jessie/main i386 Packages                                                                                                                  
  404  Not Found
Ign http://ppa.launchpad.net jessie/main Translation-en_US                                                                                                              
Ign http://ppa.launchpad.net jessie/main Translation-en                                                                                                                 
Err http://ppa.launchpad.net jessie/main amd64 Packages                                                                                                                 
  404  Not Found
Err http://ppa.launchpad.net jessie/main i386 Packages                                                                                                                  
  404  Not Found
Ign http://ppa.launchpad.net jessie/main Translation-en_US                                                                                                              
Ign http://ppa.launchpad.net jessie/main Translation-en                                                                                                                 
Err http://ppa.launchpad.net jessie/main amd64 Packages                                                                                                                 
  404  Not Found
Err http://ppa.launchpad.net jessie/main i386 Packages                                                                                                                  
  404  Not Found
Ign http://ppa.launchpad.net jessie/main Translation-en_US                                                                                                              
Ign http://ppa.launchpad.net jessie/main Translation-en                                                                                                                 
Err http://ppa.launchpad.net jessie/main amd64 Packages                                                                                                                 
  404  Not Found
Err http://ppa.launchpad.net jessie/main i386 Packages                                                                                                                  
  404  Not Found
Ign http://ppa.launchpad.net jessie/main Translation-en_US                                                                                                              
Ign http://ppa.launchpad.net jessie/main Translation-en                                                                                                                 
Err http://ppa.launchpad.net jessie/main amd64 Packages                                                                                                                 
  404  Not Found
Err http://ppa.launchpad.net jessie/main i386 Packages                                                                                                                  
  404  Not Found
Ign http://ppa.launchpad.net jessie/main Translation-en_US                                                                                                              
Ign http://ppa.launchpad.net jessie/main Translation-en                                                                                                                 
Err http://ppa.launchpad.net jessie/main amd64 Packages                                                                                                                 
  404  Not Found
Err http://ppa.launchpad.net jessie/main i386 Packages                                                                                                                  
  404  Not Found

我的sources.list内容如下:

代码语言:javascript
复制
deb http://ftp.de.debian.org/debian jessie main
deb http://ftp.us.debian.org/debian testing main contrib non-free
deb-src http://ftp.us.debian.org/debian testing main contrib non-free

ls /etc/apt/sources.list.d/输出

代码语言:javascript
复制
chrome-remote-desktop.list       mutate-ppa-jessie.list                 qos-pulseaudio-dlna-jessie.list       team-xbmc-ppa-jessie.list.save
chrome-remote-desktop.list.save  mutate-ppa-jessie.list.save            qos-pulseaudio-dlna-jessie.list.save  vivaldi.list
easystroke-ppa-jessie.list       nilarimogard-webupd8-jessie.list       saiarcot895-myppa-jessie.list         vivaldi.list.save
easystroke-ppa-jessie.list.save  nilarimogard-webupd8-jessie.list.save  saiarcot895-myppa-jessie.list.save    wine-wine-builds-jessie.list
google-chrome.list               noobslab-themes-jessie.list            spotify.list                          wine-wine-builds-jessie.list.save
google-chrome.list.save          noobslab-themes-jessie.list.save       spotify.list.save
jessie-backports.list.save       numix-ppa-jessie.list                  team-xbmc-ppa-jessie.list

我很困惑。有人对我如何更新我的系统有任何建议吗?

EN

回答 2

Unix & Linux用户

回答已采纳

发布于 2016-08-28 16:36:00

首先,保持sources.list.d的清洁,并删除所有不必要的东西。

第二,你为什么要使用个人包档案(PPA)?不要在Debian发行版中使用Ubuntu,因为包构建在Ubuntu库上,所以许多Launchpad PPA与Debian不兼容。

若要删除PPA,请执行以下操作:

代码语言:javascript
复制
add-apt-repository --remove ppa:whatever/ppa

此外,如果不需要deb-src行,则不需要它,deb行相对于二进制包,而deb-src相对于源包。这样你就可以摆脱它了。-如果这对你来说不重要的话,我个人不会移除它们

同时,Error 404是一个HTTP状态和响应代码,用于指示客户端能够成功地与服务器通信,但服务器无法找到所请求的任何内容。PPA与Debian并不完全兼容,我建议您删除它们,并尝试拥有必要的存储库。

这里是您需要并且应该在您的sources.list.d中拥有的东西,您的存储库并不存在,所以这就是为什么您没有找到错误404!

代码语言:javascript
复制
deb http://httpredir.debian.org/debian jessie main
deb-src http://httpredir.debian.org/debian jessie main

deb http://httpredir.debian.org/debian jessie-updates main
deb-src http://httpredir.debian.org/debian jessie-updates main

deb http://security.debian.org/ jessie/updates main
deb-src http://security.debian.org/ jessie/updates main

如果您还想要控制组件和非自由组件,请在main之后添加contrib非自由组件:

代码语言:javascript
复制
deb http://httpredir.debian.org/debian jessie main contrib non-free
deb-src http://httpredir.debian.org/debian jessie main contrib non-free

deb http://httpredir.debian.org/debian jessie-updates main contrib non-free
deb-src http://httpredir.debian.org/debian jessie-updates main contrib non-free

deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main contrib non-free
票数 3
EN

Unix & Linux用户

发布于 2016-08-28 18:15:20

您需要删除其他派生存储库,因为它们与Debian不兼容:

添加一个ppa将创建两个文件:your_ppa.listyour_ppa.list.save

1)删除ppa

代码语言:javascript
复制
sudo rm /etc/apt/sources.list.d/your_ppa.list

删除your_ppa.list.save

代码语言:javascript
复制
rm /etc/apt/sources.list.d/your_ppa.list.save

2)删除存储库的可信密钥:

首先,用gpg列出apt-key list

使用以下方法从/etc/apt/trusted.gpg中删除密钥:

代码语言:javascript
复制
sudo apt-key del KEY_ID

更新您的包:sudo apt-get udate

示例:

代码语言:javascript
复制
#sudo apt-key list
 /etc/apt/trusted.gpg
--------------------
uid                  Oracle Corporation (VirtualBox archive signing key)   <info@virtualbox.org>
sub   4096R/920E471F 2016-04-22

关键是920E471F,要删除它,运行:

代码语言:javascript
复制
sudo apt-key del 920E471F
票数 1
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/306244

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档