'E:Malformed line 48 in source list /etc/apt/sources.list (dist parse), E:The list of sources could not be read.'

Asked by Stuart Fraser

'E:Malformed line 48 in source list /etc/apt/sources.list (dist parse), E:The list of sources could not be read.' how do i solve this.I have tried all the steps outlined.
I am fairly new to Ubuntu I am not having any luck. Thanks Stuart Fraser

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Can you give the output of:

head -n 48 /etc/apt/sources.list | tail -n 1

Thanks

Revision history for this message
Stuart Fraser (moth-nf) said :
#2

how do I find this output?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

Run it in a terminal

Revision history for this message
Stuart Fraser (moth-nf) said :
#4
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

ok run:

gksudo gedit /etc/apt/sources.list

change:
deb http://archive.ubuntu.com/ubuntu/lucid main
to
deb http://archive.ubuntu.com/ubuntu/ lucid main

(Note the space before the word 'lucid')

Save the new file and close gedit. When you now run:

sudo apt-get update

Is it smooth?

Revision history for this message
Stuart Fraser (moth-nf) said :
#6

yes

Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#7

Please mark as solved
:D

Revision history for this message
Stuart Fraser (moth-nf) said :
#8

Thanks actionparsnip, that solved my question.