cannot connect to sources

Asked by pietbels@ureach.com

E: Malformed line 47 in source list /etc/apt/sources.list (dist parse)
E: The list of sources could not be read.
Go to the repository dialog to correct the problem.
E: _cache->open() failed, please report.

is what I get when I want to run the package manager, I cannot access my Installed Software center, so what do I do, will it fix by itself ? and i get this also

Could not initialize the package information

An unresolvable problem occurred while initializing the package information.

Please report this bug against the 'update-manager' package and include the following error message:

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

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu software-center Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#1

Please don't reply using mail but visit your question link this:
https://answers.launchpad.net/ubuntu/+source/software-center/+question/126647
using a browser

--------------------------

You need to dress the line n. 47 of etc/apt/sources.list so to get better help please give us the file content:

Open a Terminal from the menu Applications → Accessories → Terminal and type:

gedit /etc/apt/sources.list

give your user password when requested, you don't see nothing when you type it, then press enter.

Copy and paste the file content here...

--------------------------------
New to Ubuntu: read the Ubuntu Manual, it's very informative: http://ubuntu-manual.org/
Click on the "download Button" to download the latest PDF version.
The online help https://help.ubuntu.com/10.04/index.html

Relax and fun:
http://planet.ubuntu.com/ and Full Circle Magazine http://fullcirclemagazine.org/

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

You can make it easier with:

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

Will give only the offending line :)

Revision history for this message
pietbels@ureach.com (pietbels) said :
#3

thank you, I did that and got the answer in terminal that my
source was canonical... and then ? My package manager says :

E: Malformed line 40 in source list /etc/apt/sources.list (dist
parse)
E: The list of sources could not be read.
Go to the repository dialog to correct the problem.
E: _cache->open() failed, please report.

so ?

Piet Bels,
Language Teacher and Artist in Ho Chi Minh
Text Writer

Academically Trained and graduated
Teacher for English Dutch and German
from Hogeschool-Universiteit Brussels - Belgium
for Spanish at Universidad Menendez Pelayo
and Universidad de Santiago de Compostela - Spain

Resident in Ho Chi Minh City (Saigon) - Vietnam

Mobile Phone in Ho Chi Minh : 0084 1267363244
Skypename Piet Bels

MY WEBSITES : http://www.pietbels.com/

http://users.telenet.be/artist_pietbels/

TO HAVE AN OVERVIEW OF ALL MY VIDEOS GO TO
PETERBELELIUS
IN YOUTUBE
http://www.youtube.com/watch?v=QpimHdxfomo
http://www.youtube.com/watch?v=rBFrkx0axk8

FIND me on Linkedin

Vind mijn videos op YouTube onder Peter Belelius of Piet Bels

---- On Fri, 24 Sep 2010, actionparsnip
(<email address hidden>) wrote:

Your question #126647 on software-center in ubuntu changed:
https://answers.launchpad.net/ubuntu/+source/software-center/+question/126647

actionparsnip requested for more information:
You can make it easier with:

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

Will give only the offending line :)

--
To answer this request for more information, you can either
reply to
this email or enter your reply at the following page:
https://answers.launchpad.net/ubuntu/+source/software-center/+question/126647

You received this question notification because you are a direct
subscriber of the question.

________________________________________________
Get your own "800" number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag

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

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

Then

What is output?

Revision history for this message
pietbels@ureach.com (pietbels) said :
#5

deb http://archive.canonical.com/ubuntu lucid
is the answer
also, I can't get to any of the software sources either

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

ok run:

gksudo gedit /etc/apt/sources.list

find:
deb http://archive.canonical.com/ubuntu lucid
and change it to:
deb http://archive.canonical.com/ubuntu lucid universe

Save the new file and run:

sudo apt-get update

Revision history for this message
pietbels@ureach.com (pietbels) said :
#7

amazing, it works, so thank you,
I did exactly that, screen rolled, I restarted computer and traffic sign is not coming up again, wow, I'm getting geeky, first day I wrote IN the program !

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

No worries, glad you got the gold :)