如果存储库/ PPA没有发布文件,该怎么办?

更新时,出现以下错误消息:

W: The repository 'http://ppa.launchpad.net/mc3man/trusty-media/ubuntu xenial Release' does not have a Release file.

Here, I find another statement on this error: How can I fix a 404 Error when using a PPA or updating my package lists?

建议删除某些PPA。而且,我不确定是否应该这样做,因为这可能意味着无法获取所需的更新。

这是我应该做的吗?

最佳答案

The PPA you've added does not support your version of Ubuntu. For example, the ppa:mc3man/trusty-media PPA is only for Trusty (Ubuntu 14.04) only (trusty-media). Obviously, it has no files for Xenial (16.04). You can check the PPA's Launchpad page to see which versions of Ubuntu are supported.

我建议以下内容:

  • Remove the PPA for older releases. For this example: sudo ppa-purge ppa:mc3man/trusty-media

  • If there's a PPA for your version, add it. In this case, there's a PPA for Xenial: mc3man/xerus-media. You can add it using sudo add-apt-repository ppa:mc3man/xerus-media