tin*_*nuz 10 software-center 11.10
我使用本手册安装了 MATE 桌面,但现在我无法打开我的 Ubuntu 软件中心,也无法从更新管理器打开设置。
我删除了队友桌面,但它并没有解决这个问题,我也重新安装使用该软件中心,软件-属性- GTK和软件特性,常见的有:
sudo apt-get update; sudo apt-get --purge --reinstall install software-center software-properties-common software-properties-gtk
。
但是当使用这条线时,我收到以下错误:
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 3 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B/735 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 304824 files and directories currently installed.)
Preparing to replace software-center 5.0.2 (using .../software-center_5.0.2_all.deb) ...
Unpacking replacement software-center ...
Preparing to replace software-properties-common 0.81.13.1 (using .../software-properties-common_0.81.13.1_all.deb) ...
Unpacking replacement software-properties-common ...
Preparing to replace software-properties-gtk 0.81.13.1 (using .../software-properties-gtk_0.81.13.1_all.deb) ...
Unpacking replacement software-properties-gtk ...
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for hicolor-icon-theme ...
Processing triggers for man-db ...
Processing triggers for shared-mime-info ...
Unknown media type in type 'all/all'
Unknown media type in type 'all/allfiles'
Unknown media type in type 'uri/mms'
Unknown media type in type 'uri/mmst'
Unknown media type in type 'uri/mmsu'
Unknown media type in type 'uri/pnm'
Unknown media type in type 'uri/rtspt'
Unknown media type in type 'uri/rtspu'
Unknown media type in type 'interface/x-winamp-skin'
Setting up software-center (5.0.2) ...
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 59, in <module>
from softwarecenter.db.database import parse_axi_values_file
File "/usr/share/software-center/softwarecenter/db/database.py", line 26, in <module>
from softwarecenter.db.application import Application
File "/usr/share/software-center/softwarecenter/db/application.py", line 25, 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 165, in <module>
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 LinuxMint
Setting up software-properties-common (0.81.13.1) ...
Setting up software-properties-gtk (0.81.13.1) ...
$
Run Code Online (Sandbox Code Playgroud)
有没有办法解决这个问题而不必重新安装 Ubuntu 11.10??
提前致谢 tinuz
小智 13
我在软件中心和其他一些应用程序中遇到了同样的问题。但是,您不需要重新安装,尽管这可能为时已晚。这就是它不起作用的原因:
lsb_release -a
Run Code Online (Sandbox Code Playgroud)
印刷:
Distributor ID: LinuxMint
Description: Linux Mint 12 Fluxbox
Release: 12
Codename: lisa
Run Code Online (Sandbox Code Playgroud)
并且可以通过执行以下操作来纠正以保留 Mint-Mate:
gksu gedit /etc/*release
Run Code Online (Sandbox Code Playgroud)
并将文件 gedit 中的所有内容更改为:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=11.10
DISTRIB_CODENAME=Oneric
DISTRIB_DESCRIPTION="Ubuntu 11.10"
Run Code Online (Sandbox Code Playgroud)
然后运行:
gksu gedit /etc/*issue
Run Code Online (Sandbox Code Playgroud)
并更改为:
Ubuntu 11.10 \n \l
Run Code Online (Sandbox Code Playgroud)
虽然 Mate 的边缘看起来有点粗糙,但对我来说效果很好,但因为我纯粹是在 VBox 中测试 Oneric,所以没关系
将我的评论转换为答案
这个升级过程类似于在 Natty 中使用 Gnome 3 PPA。
升级涉及升级到 300Mb+ 的软件库 - 这实际上是一个单向过程。
您可以在现有安装的顶部进行安装(因此保留现有的 /home 文件夹) - 但您需要重新安装所有其他应用程序。
尽管使用诸如 clonezilla/partimage 之类的东西先备份。