![无法修复 ubuntu 16.04 中的目录](https://linux22.com/image/1088525/%E6%97%A0%E6%B3%95%E4%BF%AE%E5%A4%8D%20ubuntu%2016.04%20%E4%B8%AD%E7%9A%84%E7%9B%AE%E5%BD%95.png)
我尝试安装 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*
这解决了问题。