自从我从 ppa:kendalltweaver/peppermint 安装了“Ice”软件(用于 Peppermint OS)后,软件中心就无法打开,我一直收到此错误 -
$ software-center
ERROR:root:DebFileApplication import
Traceback (most recent call last):
File "/usr/share/software-center/softwarecenter/db/__init__.py", line 3, in <module>
from debfile import DebFileApplication
File "/usr/share/software-center/softwarecenter/db/debfile.py", line 25, in <module>
from softwarecenter.db.application import Application, AppDetails
File "/usr/share/software-center/softwarecenter/db/application.py", line 28, in <module>
from softwarecenter.backend.channel import is_channel_available
File "/usr/share/software-center/softwarecenter/backend/channel.py", line 25, in <module>
from softwarecenter.distro import get_distro
File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 194, in <module>
distro_instance = _get_distro()
File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 169, in _get_distro
module = __import__(distro_id, globals(), locals(), [], -1)
ImportError: No module named Peppermint
答案1
诊断
您的错误输出看起来与下面链接的问题非常相似。
总之 - 通过安装非 ubuntu 存储库包,您已经覆盖了软件中心所依赖的信息,以告知它正在 ubuntu 上运行。
纠正此问题
打开终端窗口并更改薄荷发布信息与默认值Ubuntu
注意:复制并粘贴以下内容:
gksu gedit /etc/*release
并将 gedit 文件中的所有内容更改为:
11.10 优惠
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=11.10
DISTRIB_CODENAME=Oneric
DISTRIB_DESCRIPTION="Ubuntu 11.10"
12.04 版本
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04 LTS"
保存并关闭文件。然后复制并粘贴到终端中:
gksu gedit /etc/*issue
并更改为:
11.10
Ubuntu 11.10 \n \l
12.04
Ubuntu 12.04 LTS \n \l
保存并关闭。
相关问题: