安装 gnome-session-fallback 时出现 dpkg 错误

安装 gnome-session-fallback 时出现 dpkg 错误

我尝试这样做sudo apt-get install gnome-session-fallback。这是我得到的输出:

(Reading database ... 353039 files and directories currently installed.)
Preparing to unpack .../gnome-panel-data_1%3a3.8.0-1ubuntu12.2_all.deb ...
Unpacking gnome-panel-data (1:3.8.0-1ubuntu12.2) ...
dpkg: error processing archive /var/cache/apt/archives/gnome-panel-data_1%3a3.8.0-1ubuntu12.2_all.deb (--unpack):
trying to overwrite '/usr/share/locale/mn/LC_MESSAGES', which is also in package language-selector-common 0.129.3
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Preparing to unpack .../gnome-applets-data_3.5.92-0ubuntu3_all.deb ...
Unpacking gnome-applets-data (3.5.92-0ubuntu3) ...
dpkg: error processing archive /var/cache/apt/archives/gnome-applets-data_3.5.92-0ubuntu3_all.deb (--unpack):
trying to overwrite '/usr/share/locale/mn/LC_MESSAGES', which is also in package language-selector-common 0.129.3
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for libglib2.0-0:i386 (2.40.2-0ubuntu1) ...
Processing triggers for libglib2.0-0:amd64 (2.40.2-0ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...
Processing triggers for gconf2 (3.2.6-0ubuntu2) ...
Errors were encountered while processing:
 /var/cache/apt/archives/gnome-panel-data_1%3a3.8.0-1ubuntu12.2_all.deb
 /var/cache/apt/archives/gnome-applets-data_3.5.92-0ubuntu3_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

我尝试升级并更新:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
  gnome-applets : Depends: gnome-applets-data (>= 3.5) but it is not installed
             Depends: gnome-applets-data (< 3.6) but it is not installed
             Recommends: gnome-media but it is not installed
  gnome-panel : Depends: gnome-panel-data (= 1:3.8.0-1ubuntu12.2) but it is not installed
           Recommends: alacarte but it is not installed
E: Unmet dependencies. Try using -f.

因此,我尝试了一下sudo apt-get -f install,得到了与 相同的输出sudo apt-get install gnome-session-fallback。我得到了一个提示来报告这个错误在启动板中。有什么解决方案吗?

我也尝试安装 aptitude (或任何其他软件包),我得到了这个:

You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 aptitude : Depends: aptitude-common (= 0.6.8.2-1ubuntu4) but it is not going to be installed
        Depends: libboost-iostreams1.54.0 but it is not going to be installed
        Depends: libcwidget3 but it is not going to be installed
        Depends: libept1.4.12 but it is not going to be installed
 gnome-applets : Depends: gnome-applets-data (>= 3.5) but it is not going to be installed
             Depends: gnome-applets-data (< 3.6) but it is not going to be installed
             Recommends: gnome-media but it is not going to be installed
 gnome-panel : Depends: gnome-panel-data (= 1:3.8.0-1ubuntu12.2) but it is not going to be installed
           Recommends: alacarte but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

手动安装aptitudedeb 文件这里,得出:

New sofware cant be installed because there is a problem with the software currently installed. Do you want to repair this porblem now? 

点击修复。Package operation failed.

答案1

这对于团结来说是安全的。不过,在同意进行更改之前,您应该始终仔细检查要卸载的软件包列表,因为您可能有其他应用程序使用其中一个作为依赖项,因此它可能会被自动卸载。例如,这很可能会卸载 gnome-shell。

运行以下命令:

sudo apt-get purge alacarte evolution evolution-common evolution-plugins gir1.2-panelapplet-5.0 gnome-applets gnome-applets-data gnome-flashback gnome-flashback-common gnome-media gnome-panel gnome-panel-data gnome-power-manager gnome-session-flashback indicator-applet-complete libevolution libgtkhtml-4.0-0 libgtkhtml-4.0-common libgtkhtml-editor-4.0-0 libmail-spf-perl libnetaddr-ip-perl libpanel-applet0 libpst4 libytnef0 metacity re2c sa-compile spamassassin spamc gnome-session-fallback aptitude

如果这不起作用,请运行以下命令:

sudo dpkg -P alacarte evolution evolution-common evolution-plugins gir1.2-panelapplet-5.0 gnome-applets gnome-applets-data gnome-flashback gnome-flashback-common gnome-media gnome-panel gnome-panel-data gnome-power-manager gnome-session-flashback indicator-applet-complete libevolution libgtkhtml-4.0-0 libgtkhtml-4.0-common libgtkhtml-editor-4.0-0 libmail-spf-perl libnetaddr-ip-perl libpanel-applet0 libpst4 libytnef0 metacity re2c sa-compile spamassassin spamc gnome-session-fallback aptitude

然后,清理所有内容,当您完成运行以下命令后,继续尝试再次安装或提交错误报告:

sudo apt-get update
sudo apt-get clean

请发布任何错误。

相关内容