Ubuntu 11.10 的 software-center 打不开,在终端输入命令行报错如下:
digdeep@ubuntu:~$ sudo software-center
Traceback (most recent call last):
File "/usr/bin/software-center", line 149, in
from softwarecenter.ui.gtk3.app import SoftwareCenterAppGtk3
File "/usr/share/software-center/softwarecenter/ui/gtk3/app.py", line 49, in
from softwarecenter.db.application import Application
File "/usr/share/software-center/softwarecenter/db/application.py", line 25, in
from softwarecenter.backend.channel import is_channel_available
File "/usr/share/software-center/softwarecenter/backend/channel.py", line 25, in
from softwarecenter.distro import get_distro
File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 165, in
distro_instance=_get_distro()
File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 148, in _get_distro
module = __import__(distro_id, globals(), locals(), [], -1)
ImportError: No module named LinuxDeepin
在网上找到解决方法:
是混用ubuntu源和其他ubuntu衍生版的源,造成软件版本号信息混乱。解决办法是找到一个文件改一下版本号。
修正/etc/lsb-release文件内的信息和你版本信息一致即可,例如Ubuntu 11.10的信息如下(可直接复制):
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=11.10
DISTRIB_CODENAME=oneiric
DISTRIB_DESCRIPTION="Ubuntu 11.10"
阅读(4165) | 评论(0) | 转发(0) |