运行 apt-get update 时出现“无法读取源列表”错误

运行 apt-get update 时出现“无法读取源列表”错误

当我尝试更新 ubutu 时出现此错误

root@kuki-HP-Compaq-8200-Elite-SFF-PC:/home/kuki# sudo apt-get update && upgrade
N: Ignoring file 'home:llamaret.list.save.2' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'home:llamaret.list.save.3' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'home:llamaret.list.save.1' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
E: Type 'Reading' is not known on line 1 in source list /etc/apt/sources.list.d/home:llamaret.list
E: The list of sources could not be read.

答案1

您的 sources.list.d 目录中似乎有该文件的多个副本llamaret.list。您应该删除所有副本,只留下以 .list 结尾的副本,而且该文件的格式可能也不正确。

如果您不需要此软件,可以将其全部删除。如果您确实需要它,则应检查安装说明并更正剩余文件的问题(可能可以通过删除并重新下载来更正)。

相关内容