The officially official Devuan Forum!

You are not logged in.

#1 2018-06-29 02:30:09

Mrnoob
Member
Registered: 2018-06-29
Posts: 3  

update problem

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

#2 2018-06-29 10:36:50

dxrobertson
Member
Registered: 2017-05-04
Posts: 232  

Re: update problem

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

#3 2018-06-29 11:44:50

devuser
Member
Registered: 2018-04-30
Posts: 176  

Re: update problem

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

#4 2018-06-30 03:34:09

Mrnoob
Member
Registered: 2018-06-29
Posts: 3  

Re: update problem

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

#5 2018-06-30 03:35:21

Mrnoob
Member
Registered: 2018-06-29
Posts: 3  

Re: update problem

can someone please post their sources.list

Offline

#6 2018-06-30 04:40:31

golinux
Administrator
Registered: 2016-11-25
Posts: 3,316  

Offline

#7 2018-06-30 10:57:38

dxrobertson
Member
Registered: 2017-05-04
Posts: 232  

Re: update problem

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

#8 2018-06-30 15:09:38

golinux
Administrator
Registered: 2016-11-25
Posts: 3,316  

Re: update problem

dxrobertson wrote:

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

Board footer