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
  • 68,507
LJag
  • 123
  • 4
  • 1
    please edit/paste the full output of cat /etc/apt/sources.lits.d/sublime-text.list – cmak.fr Feb 18 '19 at 11:03
  • 1
    Folder sources.lits.d looks suspicious since folder consist of misspelled "list". What is the output of ls sources.lits.d? – Kulfy Feb 18 '19 at 12:42
  • /etc/apt/sources.list.d --> "ld" says "no input files"... but I deleted the file before – LJag Feb 18 '19 at 13:32
  • @LJag Please look again at the command I specified. It's ls /etc/apt/sources.lits.d – Kulfy Feb 18 '19 at 14:54
  • I installed it now by means of Ubuntu Software. source.lits was only a type, excuse me and thanks for your help! – LJag Feb 18 '19 at 17:15

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
  • 68,507
Dominik K
  • 306
  • If I do that, the following error shows up:

    "This revision of snap "sublime-text" was published using classinc confinement and thus may perform arbitrary system changes outside of the security sandbox that snaps are usually confined to, which may put your system at tisk." Can I continue or should I install it another way?

    – LJag Feb 18 '19 at 11:38
  • Yes, some snap packages need the --classic option. In your case: sudo snap install sublime-text --classic. It shouldn't be a problem as long as the source is trustworthy, but if you want to read more about this option, see: https://docs.snapcraft.io/snap-confinement/6233 – Dominik K Feb 18 '19 at 12:01