Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i m using ubuntu 9.04. when i m running any command like sudo apt-get update ,i get following error message"E: Type '' is not known on line 45 in source list /etc/apt/sources.list E: The list of sources could not be read. ".due to this problem i m not able to download anything.please help

share|improve this question

migrated from Mar 20 '10 at 13:51

This question came from our site for professional and enthusiast programmers.

The problem here is line 45 in your source.list file. So you can fix this from the command line by sudo vim /etc/apt/sources.list and commenting out line 45. Which should be "".

If you want to do it from a gui then goto System->Administration->Software Sources then go to the Other Software tab and find the offending repository and disable it by unchecking the check box next to it.

Once you're done with either of these do sudo apt-get update then sudo apt-get upgrade

share|improve this answer

Your /etc/apt/sources.list is corrupted. Fix the syntax error in your sources.list (line 45...) or replace it by a working copy.

share|improve this answer

You've some how corrupted your /etc/apt/sources.list by inserting a E: into line 45.

It's fixable.

If your changing config files, don't forget to back them up, or put them into a revision control system.

use your favourite editor, and try and repair them problem, or revert to a backup.

I'm not sure what is either, you may need to replace with a valid ubuntu mirror.

did you edit this file? any idea how it got into this state?

share|improve this answer

line no 45 of /etc/apt/sources.list contains the statement" jaunty partner". But this file is read only.i m not able to change anything.please explain the process in detail

share|improve this answer this is good for beginners. Also consult your ubuntu getting started guides. If you new it's probably best to stick to GUI for administration. – The Unix Janitor Mar 20 '10 at 14:22

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.