我尝试安装 yandex 浏览器。出现错误,现在我收到以下消息:
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.
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.
有人能帮我吗?我是 Linux 新手。当我尝试从目录中删除文件时,它说我没有权限这样做,我想是的。谢谢
答案1
我又问了另一个关于同一错误的问题,@pilot6 回答了这个问题:
sudo rm /etc/apt/sources.list.d/yandex-browser*
这解决了问题。