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 tried to remove webapps and after that I restarted the computer. Now I can't launch Software Center or get any type of updates. This error appears:

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

What should I do?

share|improve this question

marked as duplicate by jokerdino, Uri Herrera, Stephen Myall, ajmitch, Mik Nov 1 '12 at 15:54

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.

    
Open the terminal (Ctrl + Alt + T) and enter this command: sudo rm -rf /var/lib/apt/lists && sudo mkdir /var/lib/apt/lists && sudo mkdir /var/lib/apt/lists/partial You should enter your User Password to get it work. –  Lucio Nov 1 '12 at 0:17

1 Answer 1

softwarecenter.enums is a module the program tries to load.

check which file softwarecentre refers to

readlink -f softwarecentre

See if the module's file exists

ls -l /usr/share/software-center/softwarecenter/enums.py

if it does then obviously it isn't finding it.

See if softwarecentre will run from it's own directory

cd /usr/share/software-center/ ./software-center

share|improve this answer

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