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

after the debacle a few hours back I managed to get a working desktop after using an ethernet cable and sudo apt-get install ubuntu-desktop

But now when I try to run ubuntu software center from CLI this is what I get

rick@Abigail:~$ sudo software-center 
Traceback (most recent call last):
  File "/usr/bin/software-center", line 34, in <module>
    import gtk
ImportError: No module named gtk

Any guesses how to fix this. The search box on synaptic is also missing. It has something to do with module named axi. I think the both are related.

share|improve this question
sudo apt-get install python-gtk2

should fix this. These are the python bindings for GTK, which is a graphical package used to build the GUI for software-center.

axi is something else entirely, try typing

sudo apt-get install afnix

into a terminal and see if that fixes it.

share|improve this answer
I reinstalled a bunch of python packages, now software center is working but afnix did not solve the axi problem. The search bar that is supposed to be present on top is not there – Rick_2047 Jun 21 '11 at 5:12
When you say "It has something to do with module named axi.", what specifically does it tell you? Does running sudo synaptic from the command line throw errors or warnings mentioning axi? Feel free to edit your original question with the detail. – jozzas Jun 21 '11 at 5:15
Its working now, I reinstalled everything related to axi. – Rick_2047 Jun 21 '11 at 5:25
No worries, consider adding what you did as an answer in case other people come across the same problem as you. – jozzas Jun 21 '11 at 5:29
@SteveKroon this normally happens if you're using multiple versions of python on the same machine - you may need to install python-gtk manually for the python version you're having trouble with. Feel free to open another question if you're still having trouble as I think it's a different issue. – jozzas Jun 9 '15 at 21:34

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.