我有一个问题。我想安装 Sublime Text,但它总是给我以下错误:
Malformed entry 1 in list file /etc/apt/sources.lits.d/sublime-text.list (Component)
The list of sources could not be read
所以我尝试了另一种通过 snap 安装的方法。但现在,尝试安装 snapd 时,出现了同样的错误
Malformed entry 1 in list file /etc/apt/sources.lits.d/sublime-text.list (Component)
The list of sources could not be read
该列表的第一条内容如下:
#eb cdrom:[Ubuntu 18.04.1 LTS _Bionic Beaver_ - Release amd64 (20180725)]/bionic main restricted
我不知道该做什么。
答案1
删除此文件:/etc/apt/sources.lits.d/sublime-text.list
并安装sublime-text
snap:
sudo snap install sublime-text
编辑:要sublime-text
作为 snap 包安装,您需要通过--classic
选项:
sudo snap install sublime-text --classic