Here is my sources.list:
And very important as @devuser stated; edit the file in linux , not windows nor mac.
You also should use a TEXT editor, not a word processor that leaves undesirable cruft.
]]>#
# deb cdrom:[devuan_ascii_2.0.0-rc_amd64_netinst]/ ascii main non-free
deb http://us.deb.devuan.org/merged ascii main non-free contrib
# deb-src http://us.deb.devuan.org/merged ascii main non-free contrib
deb http://us.deb.devuan.org/merged ascii-security main non-free contrib
# deb-src http://us.deb.devuan.org/merged ascii-security main non-free contrib
deb http://us.deb.devuan.org/merged ascii-updates main non-free contrib
# deb-src http://us.deb.devuan.org/merged ascii-updates main non-free contrib
When I have trouble like this, I "play" with the file. I would start on line 1, 1st column and hit enter a few time to push everything down. Comment out the old line 1 with a #. Then manually type a new line 1 and even push it down a few lines. Then run again and see where the error occurs.
And very important as @devuser stated; edit the file in linux , not windows nor mac.
]]>deb [url]http://deb.devuan.org/merged[/url] ascii main
deb-src [url]http://deb.devuan.org/merged[/url] ascii main
deb [url]http://deb.devuan.org/merged[/url] ascii-security main
deb-src [url]http://deb.devuan.org/merged[/url] ascii-security main
It sounds like you have something on line 1 thats not a comment nor spaces. Could you open sources.list, select all content, copy, and paste into a response and use the "code" option in the reply?
Maybe its a problem in another *.list file in /etc/apt/sources.list.d, check those files, but I question it would say line 1 if thats where the problem is.
My particular sources.list uses us.deb.devuan.org instead of deb.devuan.org, but I dont believe thats should matter.
]]>E: Malformed line 1 in source list /etc/apt/sources.list (type)
E: The list of sources could not be read.
2.My /etc/apt/sources.list is
deb http://deb.devuan.org/merged ascii main
deb-src http://deb.devuan.org/merged ascii main
Please help
Thank you in advance