无法更新 Raspberry Pi

无法更新 Raspberry Pi

收到以下错误

N: Ignoring file 'mono-official-stable.list.save.1' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
E: Type 'Executing:' is not known on line 1 in source list /etc/apt/sources.list.d/mono-official-stable.list
E: The list of sources could not be read.

答案1

N: Ignoring file 'mono-official-stable.list.save.1' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension

这是 Nano 紧急文件,当出现 SIGHUP、SIGTERM 或 Nano 内存不足时,缓冲区会被转储。如果您的原始文件 ( mono-official-stable.list) 看起来不错,那么您可以删除它 - 但是下一个错误表明它可能不是:

E: Type 'Executing:' is not known on line 1 in source list /etc/apt/sources.list.d/mono-official-stable.list
E: The list of sources could not be read.

这里抱怨/etc/apt/sources.list.d/mono-official-stable.list格式不正确 - 更具体地说,Executing:第 1 行无法理解。

我的建议是,您进行比较mono-official-stable.listmono-official-stable.list.save.1找出正确的格式mono-official-stable.list,然后做出适当的修改。

为了让您了解,我的mono-offical-stable.list文件包含以下 1 行:

deb https://download.mono-project.com/repo/debian stable-raspbianstretch main

相关内容