Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

Possible Duplicate:
How do I fix this “E:Type ‘*’ is not known on line * in source list …” update error?

I was trying to install gimp and Java,I successfully installed gimp but when I try to install Java I get this error:

E:Type 'ain' is not known on line 3 in source list /etc/apt/sources.list.d/otto-kesselgulasch-gimp-precise.list

share|improve this question

marked as duplicate by jokerdino, Ringtail, stephenmyall, ajmitch, Mik Nov 1 '12 at 15:51

This question was marked as an exact duplicate of an existing question.

go into nautilus(Home folder) and then click go, the location. paste /etc/apt/sources.list.d/otto-kesselgulasch-gimp-precise.list into there and it should come up with a document, the error is in line 3 of that.

share|improve this answer

You've got a typo in /etc/apt/sources.list.d/otto-kesselgulasch-gimp-precise.list, which supposedly is a third-party PPA you've added.

Looking here, it seems that there are some extra characters at the very end of the file. Run the following command in terminal:

gksudo gedit /etc/apt/sources.list.d/otto-kesselgulasch-gimp-precise.list

a text editor will open - delete ain characters (the last line). Save and close. Then run another command:

sudo apt-get update

And that should be it.

share|improve this answer

The problem is caused by a type error. The type of packages may only be deb or deb-src, but your file has a type of ain which is not known to dpkg.


  • Open a terminal by pressing CTRL +ALT + T.

  • Type this command

     sudo sed -i 's/ain/deb/' /etc/apt/sources.list.d/otto-kesselgulasch-gimp-precise.list

    and then press Enter.

    This will replace the wrong ain with deb.

Hope the problem is fixed

share|improve this answer

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