apt sources.list 中的文件扩展名无效

apt sources.list 中的文件扩展名无效
N: Ignoring file 'yandex-browser.list.save.1' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'yandex-browser.list.save.2' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
E: Type 'andex.ru/yandex-browser/deb' is not known on line 1 in source list /etc/apt/sources.list.d/yandex-browser.list
E: The list of sources could not be read.

我怎样才能解决这个问题?

答案1

在终端中运行

sudo rm /etc/apt/sources.list.d/yandex-browser*

问题就应该得到解决。

某些脚本或您在安装 Yandex 浏览器时损坏了一些 sources.list 文件。

相关内容