Problem with Software Center using Ubuntu 12.10

Asked by Douglas Facey on 2012-10-25

I am having problem with Service center and I am at a lost on what to do. I have installed service center because it kept crashing because of an error say:

E: Malformed line 4 in source list /etc/apt/source.list (dist parse)
E: the list of source could not be read

In the terminal, I ran gksu gedit /etc/apt/sources.list and got the following results:

deb http://archive.ubuntu.com/ubuntu/ quantal main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ quantal-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ quantal-updates main restricted universe multiverse
deb http://archive.canonical.com/ partner
deb-src http://archive.canonical.com/ partner
deb http://archive.canonical.com/ quantal partner
deb-src http://archive.canonical.com/ quantal partner

I am not sure what is line 4 is wrong, can someone please help me. I am new to Linux and have been trying to learn it for few days.

Thanks,

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
Douglas Facey
Solved:
2012-10-27
Last query:
2012-10-27
Last reply:
2012-10-25
Subin Hutton (djlynux) said : #1

Please attach your source.list.

Run:

gksudo gedit /etc/apt/sources.list

delete these 2 lines:

deb http://archive.canonical.com/ partner
deb-src http://archive.canonical.com/ partner

Not only do you not have the word 'quantal' on the line, you also ALREADY have 2 lines defining the partner repo correctly, so they are not needed.

Douglas Facey (dfacey7) said : #3

The problem was solved by typing the word pricise in front of the word partner:

deb http://archive.canonical.com/ percise partner
deb-src http://archive.canonical.com/ percise partner

Thanks for you all help. This is a great spot to find answers!! I will be here looking for help and adding what I ahve leraned.