-3

When I try installing anything I get error E: Malformed entry 1 in list file /etc/apt/sources.list.d/atom.list

/etc/apt/sources.list.d/atom.list:

deb https://packagecloud.io/AtomEditor
/atom/any/ any main
Pythenx
  • 11
  • Nope, this does not – Pythenx Aug 18 '20 at 08:50
  • 1
    Your error message tells you the line with the error, and file that needs correction. The aforementioned link provides your answer, you adjust for your own circumstances (ie. different source). – guiverc Aug 18 '20 at 08:55
  • Malformed entry 54 means there is an error on line 54 of the file. Malformed entry 1 means there is an error on the 1st line of the file. – mchid Aug 18 '20 at 12:30

1 Answers1

0

Malformed entry 1 means there is an error on line 1 of the file.

Line 1 is malformed because the line is split into two lines. The contents of the file should look like this:

deb https://packagecloud.io/AtomEditor/atom/any/ any main

Run the following command to automatically edit and fix the file:

sudo sed -i 'N;s/\n//g' /etc/apt/sources.list.d/atom.list
mchid
  • 43,546
  • 8
  • 97
  • 150