Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

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

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

3 Answers

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
add comment

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
add comment

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.

Solution:

  • 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
add comment

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