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内容如下:
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-freels /etc/apt/sources.list.d/输出
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我很困惑。有人对我如何更新我的系统有任何建议吗?
发布于 2016-08-28 16:36:00
首先,保持sources.list.d的清洁,并删除所有不必要的东西。
第二,你为什么要使用个人包档案(PPA)?不要在Debian发行版中使用Ubuntu,因为包构建在Ubuntu库上,所以许多Launchpad PPA与Debian不兼容。
若要删除PPA,请执行以下操作:
add-apt-repository --remove ppa:whatever/ppa此外,如果不需要deb-src行,则不需要它,deb行相对于二进制包,而deb-src相对于源包。这样你就可以摆脱它了。-如果这对你来说不重要的话,我个人不会移除它们
同时,Error 404是一个HTTP状态和响应代码,用于指示客户端能够成功地与服务器通信,但服务器无法找到所请求的任何内容。PPA与Debian并不完全兼容,我建议您删除它们,并尝试拥有必要的存储库。
这里是您需要并且应该在您的sources.list.d中拥有的东西,您的存储库并不存在,所以这就是为什么您没有找到错误404!
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非自由组件:
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发布于 2016-08-28 18:15:20
您需要删除其他派生存储库,因为它们与Debian不兼容:
添加一个ppa将创建两个文件:your_ppa.list和your_ppa.list.save
1)删除ppa:
sudo rm /etc/apt/sources.list.d/your_ppa.list删除your_ppa.list.save
rm /etc/apt/sources.list.d/your_ppa.list.save2)删除存储库的可信密钥:
首先,用gpg列出apt-key list键
使用以下方法从/etc/apt/trusted.gpg中删除密钥:
sudo apt-key del KEY_ID更新您的包:sudo apt-get udate
示例:
#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,要删除它,运行:
sudo apt-key del 920E471Fhttps://unix.stackexchange.com/questions/306244
复制相似问题