Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

I've got a small program I've written in python (2.7.3) that I'm moving over to another box.

However, when executing this line:

from Tkinter import *

I get this error;

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/lib-tk/", line 42, in <module>
    raise ImportError, str(msg) + ', please install the python-tk package'
ImportError: /usr/lib/ invalid ELF header, please install the python-tk package

However, it looks to me that python-tk is installed.

python-tk is already the newest version.

Any advice or help would be appreciated.

share|improve this question

1 Answer 1


sudo apt-get remove tk8.5


sudo apt-get install tk8.5

share|improve this answer

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.