![Ubuntu 软件中心未出现](https://linux22.com/image/845146/Ubuntu%20%E8%BD%AF%E4%BB%B6%E4%B8%AD%E5%BF%83%E6%9C%AA%E5%87%BA%E7%8E%B0.png)
我刚刚在我的 cubieboard (cubieboard.org) 上安装了 Lubuntu。我尝试从 Synaptic Package Manager 安装 Ubuntu Software Center,一切都很顺利,直到我尝试打开软件中心却什么都没有出现。我尝试使用命令行
software-center
以下是输出:
linaro@cubieboard2:~$ software-center
ERROR:root:DebFileApplication import
Traceback (most recent call last):
File "/usr/share/software-center/softwarecenter/db/__init__.py", line 4, in <module>
from debfile import DebFileApplication, DebFileOpenError
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 27, in <module>
import softwarecenter.distro
File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 197, in <module>
distro_instance = _get_distro()
File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 172, in _get_distro
module = __import__(distro_module_name, globals(), locals(), [], -1)
ImportError: No module named linaro
Traceback (most recent call last):
File "/usr/bin/software-center", line 128, in <module>
from softwarecenter.ui.gtk3.app import SoftwareCenterAppGtk3
File "/usr/share/software-center/softwarecenter/ui/gtk3/app.py", line 53, in <module>
from softwarecenter.db.application import Application
File "/usr/share/software-center/softwarecenter/db/application.py", line 27, in <module>
import softwarecenter.distro
File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 197, in <module>
distro_instance = _get_distro()
File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 172, in _get_distro
module = __import__(distro_module_name, globals(), locals(), [], -1)
ImportError: No module named linaro
我尝试重新安装但仍然出现同样的错误,
sudo apt-get remove software-center
sudo apt-get install software-center
附言:抱歉我的英语不好。
更新:
linaro@cubieboard2:~$ sudo apt-get update
Ign http://ppa.launchpad.net quantal InRelease
Ign http://ports.ubuntu.com quantal InRelease
Hit http://ppa.launchpad.net quantal Release.gpg
Hit http://ports.ubuntu.com quantal Release.gpg
Hit http://ppa.launchpad.net quantal Release
Hit http://ports.ubuntu.com quantal Release
Hit http://ppa.launchpad.net quantal/main Sources
Hit http://ports.ubuntu.com quantal/main Sources
Hit http://ppa.launchpad.net quantal/main armhf Packages
Hit http://ports.ubuntu.com quantal/universe Sources
Hit http://ports.ubuntu.com quantal/main armhf Packages
Hit http://ports.ubuntu.com quantal/universe armhf Packages
Hit http://ports.ubuntu.com quantal/main Translation-en
Hit http://ports.ubuntu.com quantal/universe Translation-en
Ign http://ppa.launchpad.net quantal/main Translation-en
Reading package lists... Done
linaro@cubieboard2:~$ sudo apt-get update
Ign http://ppa.launchpad.net quantal InRelease
Ign http://ports.ubuntu.com quantal InRelease
Hit http://ppa.launchpad.net quantal Release.gpg
Hit http://ports.ubuntu.com quantal Release.gpg
Hit http://ppa.launchpad.net quantal Release
Hit http://ports.ubuntu.com quantal Release
Hit http://ppa.launchpad.net quantal/main Sources
Hit http://ports.ubuntu.com quantal/main Sources
Hit http://ppa.launchpad.net quantal/main armhf Packages
Hit http://ports.ubuntu.com quantal/universe Sources
Hit http://ports.ubuntu.com quantal/main armhf Packages
Hit http://ports.ubuntu.com quantal/universe armhf Packages
Hit http://ports.ubuntu.com quantal/main Translation-en
Hit http://ports.ubuntu.com quantal/universe Translation-en
Ign http://ppa.launchpad.net quantal/main Translation-en
Reading package lists... Done
linaro@cubieboard2:~$ sudo apt-get install --reinstall software-center
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
gir1.2-notify-0.7 python-pysqlite2
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 2 not upgraded.
Need to get 0 B/627 kB of archives.
After this operation, 0 B of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
software-center
Authentication warning overridden.
(Reading database ... 60527 files and directories currently installed.)
Preparing to replace software-center 5.4.1.2 (using .../software-center_5.4.1.2_all.deb) ...
Unpacking replacement software-center ...
Processing triggers for desktop-file-utils ...
Processing triggers for man-db ...
Processing triggers for hicolor-icon-theme ...
Setting up software-center (5.4.1.2) ...
ERROR:root:DebFileApplication import
Traceback (most recent call last):
File "/usr/share/software-center/softwarecenter/db/__init__.py", line 4, in <module>
from debfile import DebFileApplication, DebFileOpenError
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 27, in <module>
import softwarecenter.distro
File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 197, in <module>
distro_instance = _get_distro()
File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 172, in _get_distro
module = __import__(distro_module_name, globals(), locals(), [], -1)
ImportError: No module named linaro
Traceback (most recent call last):
File "/usr/sbin/update-software-center", line 38, in <module>
from softwarecenter.db.update import rebuild_database
File "/usr/share/software-center/softwarecenter/db/update.py", line 33, in <module>
from softwarecenter.backend.scagent import SoftwareCenterAgent
File "/usr/share/software-center/softwarecenter/backend/scagent.py", line 28, in <module>
from softwarecenter.distro import get_distro, get_current_arch
File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 197, in <module>
distro_instance = _get_distro()
File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 172, in _get_distro
module = __import__(distro_module_name, globals(), locals(), [], -1)
ImportError: No module named linaro
linaro@cubieboard2:~$ software-center
ERROR:root:DebFileApplication import
Traceback (most recent call last):
File "/usr/share/software-center/softwarecenter/db/__init__.py", line 4, in <module>
from debfile import DebFileApplication, DebFileOpenError
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 27, in <module>
import softwarecenter.distro
File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 197, in <module>
distro_instance = _get_distro()
File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 172, in _get_distro
module = __import__(distro_module_name, globals(), locals(), [], -1)
ImportError: No module named linaro
Traceback (most recent call last):
File "/usr/bin/software-center", line 128, in <module>
from softwarecenter.ui.gtk3.app import SoftwareCenterAppGtk3
File "/usr/share/software-center/softwarecenter/ui/gtk3/app.py", line 53, in <module>
from softwarecenter.db.application import Application
File "/usr/share/software-center/softwarecenter/db/application.py", line 27, in <module>
import softwarecenter.distro
File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 197, in <module>
distro_instance = _get_distro()
File "/usr/share/software-center/softwarecenter/distro/__init__.py", line 172, in _get_distro
module = __import__(distro_module_name, globals(), locals(), [], -1)
ImportError: No module named linaro
答案1
在终端中运行以下命令重新安装软件中心,
sudo apt-get remove --purge software-center
sudo apt-get update
sudo apt-get install software-center
sudo software-center
或者将最后一个命令替换为
software-center