0

I have a problem. I want to install Sublime Text, but it always gave me the following error:

Malformed entry 1 in list file /etc/apt/sources.lits.d/sublime-text.list (Component)
The list of sources could not be read

So I tried another installation method via snap. But now, trying to install snapd, the same error occurs

Malformed entry 1 in list file /etc/apt/sources.lits.d/sublime-text.list (Component)
The list of sources could not be read

The first entry of that list reads:

#eb cdrom:[Ubuntu 18.04.1 LTS _Bionic Beaver_ - Release amd64 (20180725)]/bionic main restricted

I can't find out what to do.

pomsky
  • 70,557
LJag
  • 123
  • 4

1 Answers1

1

Delete this file: /etc/apt/sources.lits.d/sublime-text.list and install sublime-text snap:

sudo snap install sublime-text

Edit: To install sublime-text as snap package, you need to pass the --classic option:

sudo snap install sublime-text --classic
pomsky
  • 70,557
Dominik K
  • 306