You are not logged in.
Pages: 1
Hi
1.When I do sudo apt-get update I get
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
Offline
Are the 2 lines from your sources.list you pasted ALL thats in your sources.list? Is the "deb http://deb.devuan.org/merged ascii main" actually on line 1 of sources.list?
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.
Last edited by dxrobertson (2018-06-29 10:37:56)
Offline
Did you maybe edit the file on Windows? That is likely to leave bad line breaks behind. Also what @dxrobertson said. Those 2 lines you posted look find and shouldn't cause a problem imo.
Offline
My sources.list is
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
Offline
can someone please post their sources.list
Offline
You'll find everything here: https://devuan.org/os/etc/apt/sources.list
Offline
Here is my sources.list:
#
# 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.
Last edited by dxrobertson (2018-06-30 10:58:30)
Offline
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.
Offline
Pages: 1