Unable to install anything because of this error?

I'm currently using Zorin OS 15.3

I've been attempting to get Vivalidi for Linux via terminal, and for some reason something has gone horribly wrong internally, and I'm getting this error:

 Malformed entry 54 in list file /etc/apt/sources.list (Component)

I don't understand what it is that could've provoked such an error, and it's bugging me as I am unable to install anything.

Screenshot:

Any commands I should run? Any thing I can do to resolve this issue?

Thanks in advance.

Edit
More info:
For example, running:

sudo apt-get update

Provokes this error, anything that I do related to apt-get returns this, and I don't know wny

Anyone have any guidance?

JustJeff, this is an easy fix.
You can do this from terminal or do it graphically.
Starting Graphically:
Open terminal and run

sudo -i

Enter PW, then type in

nautilus

This will open a Root Nautilus. Navigate to /etc/apt/ and open the file sources.list with text editor. In Text editor, open prefrences and check on "View Line Numbers".
Now, go down to Line 54 and either comment out the entire line or paste it here so we can see what is wrong with it.
If you comment it out, you can then run sudo apt update in your terminal and you should be able to install or remove software again.

2 Likes

E: Malformed line 2 in source list /etc/apt/sources.list.d/spotify.list (type)
E: The list of sources could not be read.

Getting the above error when hitting
Sudo apt-get update

-- Solved the error by the above solution
-- The file was present in /etc/apt/sources.list.d/spotify.list
-- just edited the file spotify.list in text editor commented the error giving lines by adding # before it.

1 Like