由于某种原因,Ubuntu 软件中心无法打开,我尝试重新安装它,但仍然无法打开。这是我通过回溯得到的错误输出!
File "/usr/bin/software-center", line 40, in <module>
import softwarecenter.log
File "/usr/share/software-center/softwarecenter/log.py", line 119, in <module>
logfile_path, maxBytes=100 * 1000, backupCount=5)
File "/usr/lib/python2.7/logging/handlers.py", line 118, in __init__
BaseRotatingHandler.__init__(self, filename, mode, encoding, delay)
File "/usr/lib/python2.7/logging/handlers.py", line 65, in __init__
logging.FileHandler.__init__(self, filename, mode, encoding, delay)
File "/usr/lib/python2.7/logging/__init__.py", line 897, in __init__
StreamHandler.__init__(self, self._open())
File "/usr/lib/python2.7/logging/__init__.py", line 916, in _open
stream = open(self.baseFilename, self.mode)
IOError: [Errno 5] Input/output error: '/home/shaq/.cache/software-center/software-center.log'
希望有人能帮我解决这个问题。安装更新后出现此错误。
我正在使用 ubuntu 12.04
答案1
这三个命令对我有用:
rm -r ~/.cache/software-center
sudo apt-get remove software-center
sudo apt-get install software-center