Ubuntu 升级导致 Firefox 崩溃

Ubuntu 升级导致 Firefox 崩溃

我升级了 ubuntu,但升级破坏了 Firefox、Adobe Flash 插件并损坏了软件包数据库。我运行了建议的目录修复,没有变化。我运行了apt-get -f install,没有变化。我运行了 apt purge packageName,没有变化。我该如何解决这种循环依赖关系?

以下是一些详细信息:

installArchives() failed: dpkg: dependency problems prevent configuration of adobe-flashplugin:
 firefox (12.0+build1-0ubuntu0.12.04.1) breaks adobe-flashplugin (<= 11.1.102.63-0precise1) and is installed.
  Version of adobe-flashplugin to be configured is 10.0.32.18-1intrepid1.
dpkg: error processing adobe-flashplugin (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of adobe-flash-properties-gtk:
 adobe-flash-properties-gtk depends on adobe-flashplugin (= 11.2.202.235-0precise1); however:
  Version of adobe-flashplugin on system is 10.0.32.18-1intrepid1.
dpkg: error processing adobe-flash-properties-gtk (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
Errors were encountered while processing:
 adobe-flashplugin
 adobe-flash-properties-gtk
Error in function: 
dpkg: dependency problems prevent configuration of adobe-flash-properties-gtk:
 adobe-flash-properties-gtk depends on adobe-flashplugin (= 11.2.202.235-0precise1); however:
  Version of adobe-flashplugin on system is 10.0.32.18-1intrepid1.
dpkg: error processing adobe-flash-properties-gtk (--configure):
 dependency problems - leaving unconfigured

答案1

使用 root 权限编辑以下文件(例如sudo vim):

/var/lib/dpkg/info/adobe-flashplugin.prerm

转到以下行:

set -e

删除该行。保存文件并重新发出升级命令。(我实际上删除并重新添加了 flash 和 Firefox。)

NB:买者自慎:修复可能会有副作用,我还没有看到,但我已经熬过一周了。

解释:

问题是 adobe-flashplugin“prerm”(pre-remove)脚本要求 update-alternatives 干净地退出。我们的系统(我也有同样的问题)没有干净地退出。修复方法是忽略错误并继续。

答案2

这是升级的系统吗?看起来您正在使用 Intrepid 的 adobe-flash 插件。卸载 Flash 插件,然后卸载 Firefox,然后重新安装 Firefox,然后重新安装 Flash 插件。

sudo apt-get remove --purge adobe-flashplugin
sudo apt-get remove --purge adobe-flash-properties-gtk
sudo apt-get remove firefox
sudo apt-get install firefox
sudo apt-get install flashplugin-installer

相关内容