答案1
第一个错误是
Ignoring file 'sublime-text.lis' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
文件名应以 结尾.list
。您可以通过重命名文件来更正此问题(假设其内容正确):
sudo mv /etc/apt/sources.list.d/sublime-text.lis /etc/apt/sources.list.d/sublime-text.list
或者删除它:
sudo rm /etc/apt/sources.list.d/sublime-text.lis
然后你可以尝试使用以下命令再次安装 sublime-text
sudo apt-get update
sudo apt-get install sublime-text