我是 Linux 的新手。我今天才安装它,我不得不说我非常喜欢它,直到我遇到这个问题。我在网上搜索,但对我没什么用。在我下载 skype 并尝试运行它之后,软件中心出现了,并加载了一些东西 5 分钟。然后它就消失了。现在每次我尝试打开它时,窗口都会在 3 秒后消失。我试图关闭它,但没有成功。当我尝试从终端运行它时,我收到此消息:
whats_new_cat = self._update_whats_new_content()
File "/usr/share/software-center/softwarecenter/ui/gtk3/views/lobbyview.py", line 240, in _update_whats_new_content
docs = whats_new_cat.get_documents(self.db)
File "/usr/share/software-center/softwarecenter/db/categories.py", line 131, in get_documents
nonblocking_load=False)
File "/usr/share/software-center/softwarecenter/db/enquire.py", line 330, in set_query
self._blocking_perform_search()
File "/usr/share/software-center/softwarecenter/db/enquire.py", line 225, in _blocking_perform_search
matches = enquire.get_mset(0, self.limit, None, xfilter)
File "/usr/share/software-center/softwarecenter/db/appfilter.py", line 89, in __call__
if (not pkgname in self.cache and
File "/usr/share/software-center/softwarecenter/db/pkginfo_impl/aptcache.py", line 281, in __contains__
return self._cache.__contains__(k)
AttributeError: 'NoneType' object has no attribute '__contains
当尝试通过终端杀死它时,它说没有这样的进程。
谢谢大家的帮助!请像 Ubuntu 一样帮助我度过余生!:P
答案1
在终端中运行以下命令:
sudo apt-get install -f
sudo rm -r ~/.config/software-center
并重新启动软件中心