使用 sudo 从命令行更新问题

使用 sudo 从命令行更新问题

当我输入命令行时,sudo apt-get update我无法完成所有更新,也无法安装任何类型的其他软件。命令行给我这个错误

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

错误列表:

Err:29 http://ppa.launchpad.net/colingille/freshlight/ubuntu xenial/main amd64 Packages
  404  Not Found
Err:37 http://ppa.launchpad.net/ubuntu-x-swat/x-updates/ubuntu xenial/main amd64 Packages
  404  Not Found
W: The repository 'http://ppa.launchpad.net/colingille/freshlight/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://ppa.launchpad.net/ubuntu-x-swat/x-updates/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ppa.launchpad.net/colingille/freshlight/ubuntu/dists/xenial/main/binary-amd64/Packages  404  Not Found
E: Failed to fetch http://ppa.launchpad.net/ubuntu-x-swat/x-updates/ubuntu/dists/xenial/main/binary-amd64/Packages  404  Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.

有人能帮我吗?

答案1

从您的源列表文件中删除以下行:

ppa.launchpad.net/colingille/freshlight/ubuntu
ppa.launchpad.net/ubuntu-x-swat/x-updates/ubuntu

查看/etc/apt/sources.list.d/文件夹并删除相应的文件,然后运行:

sudo apt-get update

再次。

答案2

对于错误:

错误:29 http://ppa.launchpad.net/colingille/freshlight/ubuntu xenial/main amd64 软件包
  404 未找到
错误:37 http://ppa.launchpad.net/ubuntu-x-swat/x-updates/ubuntu xenial/main amd64 软件包
  404 未找到

这是因为作者没有赛尼尔存储库已定义。

将第一个从 xenial 更改为生动

将第二个从 xenial 更改为可靠

最简单的更改方法是使用Software & Updates,找到失败的 ppa,然后编辑存储库名称。或者,如果您不需要它们,只需删除它们。

相关内容