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
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
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