I am getting the following error when running apt update after installing Spotify. I am new to Linux and I ran into this problem.
E: Malformed line 2 in source list /etc/apt/sources.list.d/spotify.list (type)
E: The list of sources could not be read.
sudo
rights added the incorrectly formatted file in/etc/apt/sources.list.d/
as that directory is empty on a new install; and meta data should tell you who when it was added so you can chase up the culprit, or just fix it. We cannot see the contents unless provided; but with a line number & filename that contains it - it should be easy to find. – guiverc Apr 05 '22 at 23:03