如何解决无效的文件扩展名?


Answers:


5

看起来像是上述文件名中的一个简单错字,因为结尾.list必须由识别为软件源列表apt

要解决此问题,建议您重命名文件并使用以下命令更正扩展名

sudo mv /etc/apt/sources.list.d/sublime-text.lis /etc/apt/sources.list.d/sublime-text.list

另外,请阅读man 5 sources.listmanpages.ubuntu.com/manpages/yakkety/en/man5/…–
waltinator

感谢Byte Commander,您的回答已解决了该问题
Christian Nyembo

@ChristianNyembo如果此答案解决了您的问题,请考虑接受它,以将您的问题标记为已解决。参见askubuntu.com/help/someone-answers
Byte Commander

2
还是利用Bash的花括号扩展来减少打字:sudo mv /etc/apt/sources.list.d/sublime-text.lis{,t}
David Foerster
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.