希望有人可以帮我解决这个问题,因为出于某种原因,每次我启动 Ubuntu 机器时都会出现这个问题。
我基本上执行了“sudo apt-get update”并收到以下信息:
Err http://ppa.launchpad.net trusty/main amd64 Packages
404 Not Found
Err http://ppa.launchpad.net trusty/main i386 Packages
404 Not Found
Ign http://ppa.launchpad.net trusty/main Translation-en_AU
Ign http://ppa.launchpad.net trusty/main Translation-en
Fetched 2,064 kB in 24s (85.8 kB/s)
N: Ignoring file 'extra.list.backup' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
W: Failed to fetch http://ppa.launchpad.net/merlwiz79/cinnamon-ppa/ubuntu/dists/trusty/main/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://ppa.launchpad.net/merlwiz79/cinnamon-ppa/ubuntu/dists/trusty/main/binary-i386/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
我确实安装了 cinnamon,但后来卸载了。不确定我是否遗漏了什么。
任何能够删除这些消息的帮助都将非常感激。
仅供参考,我正在运行 Unity。
谢谢。
更新
尝试运行下面的 AB 命令并收到以下问题:
$sudo ppa-purge ppa:merlwiz79/cinnamon-ppa
Updating packages lists
W: Failed to fetch http://ppa.launchpad.net/merlwiz79/cinnamon-ppa/ubuntu/dists/trusty/main/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://ppa.launchpad.net/merlwiz79/cinnamon-ppa/ubuntu/dists/trusty/main/binary-i386/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
Warning: apt-get update failed for some reason
PPA to be removed: merlwiz79 cinnamon-ppa
Warning: Could not find package list for PPA: merlwiz79 cinnamon-ppa
答案1
删除 PPA
ppa:merlwiz79/cinnamon-ppa
,因为它不包含任何 Trusty 软件包:sudo rm /etc/apt/sources.list.d/merlwiz79-ubuntu-cinnamon-ppa-*.list
在这种情况下,通过以下方式删除
ppa-purge
不起作用,因为没有 Trusty 软件包删除文件
extra.list.backup
:sudo rm extra.list.backup
删除条目
http://ppa.launchpad.net trusty main
:打开文件
/etc/apt/sources.list
sudo nano /etc/apt/sources.list
搜索并删除该行
deb http://ppa.launchpad.net trusty main
升级您的系统:
sudo apt-get update sudo apt-get upgrade
答案2
我刚刚遇到了同样的问题,解决方案很简单:
只需删除有问题的 ppa。它们位于/etc/apt/sources.list作为线或/etc/apt/sources.list.d/作为文件。
现在该消息将不再出现在 apt-get update 上 ^^
但是,请考虑,任何依赖于刚刚删除的 ppa(没有替代来源)的包将不再获得更新......