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

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

For some reason Ubuntu Software Center will not open, i have tried reinstalling it however no luck still won't open. Here is the error output i got via a traceback!

  File "/usr/bin/software-center", line 40, in <module>
    import softwarecenter.log
  File "/usr/share/software-center/softwarecenter/", line 119, in <module>
    logfile_path, maxBytes=100 * 1000, backupCount=5)
  File "/usr/lib/python2.7/logging/", line 118, in __init__
    BaseRotatingHandler.__init__(self, filename, mode, encoding, delay)
  File "/usr/lib/python2.7/logging/", line 65, in __init__
    logging.FileHandler.__init__(self, filename, mode, encoding, delay)
  File "/usr/lib/python2.7/logging/", line 897, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib/python2.7/logging/", line 916, in _open
    stream = open(self.baseFilename, self.mode)
IOError: [Errno 5] Input/output error: '/home/shaq/.cache/software-center/software-center.log'

Hope someone can help me out with this and help me fix this. This error occured after i installed updates.

I'm using ubuntu 12.04

share|improve this question
Try rm -r ~/.cache/software-center/ in the command line. Also, do you get any errors with sudo apt-get update && sudo apt-get upgrade? – Jjed Jul 31 '12 at 4:40
up vote 2 down vote accepted

These three commands worked for me:

rm -r ~/.cache/software-center
sudo apt-get remove software-center
sudo apt-get install software-center
share|improve this answer
When following these instructions, it's very important to avoid accidentally typing a space in the first command after the ~ or the first /. If you do, you'll delete all or most of your home directory (including your documents). This command achieves the same thing but it less prone to dangerous typos: cd ~/.cache; rm -r software-center Also, you can remove and reinstall in a single step: sudo apt-get --reinstall install software-center. To purge systemwide configuration files as well: sudo apt-get --purge --reinstall install software-center – Eliah Kagan Aug 2 '12 at 16:31
Thanks that worked :D – Shaquille Ray Aug 25 '12 at 10:32

protected by Community Jan 30 '14 at 17:29

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

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