无法安装任何东西

无法安装任何东西

我想知道是否有人可以帮助我,

当我尝试安装或删除包时,这是我收到的错误

dpkg: error processing package libdrm-nouveau2:i386 (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
dpkg: dependency problems prevent configuration of libgl1-mesa-dri:i386:
 libgl1-mesa-dri:i386 depends on libdrm-nouveau2 (>= 2.4.38); however:
  Package libdrm-nouveau2:i386 is not configured yet.

dpkg: error processing package libgl1-mesa-dri:i386 (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                          E: Sub-process /usr/bin/dpkg returned an error code (1)

当我尝试删除包时出现此错误:

sudo apt-get remove libdrm-nouveau2
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 account-plugin-facebook : Depends: libaccount-plugin-generic-oauth but it is not going to be installed or
                                    ubuntu-system-settings-online-accounts but it is not going to be installed
 indicator-bluetooth : Depends: unity-control-center but it is not going to be installed or
                                gnome-control-center but it is not going to be installed or
                                ubuntu-system-settings but it is not going to be installed
 indicator-network : Depends: unity8 (>= 7.82) but it is not going to be installed
 libegl1-mesa : Depends: libgbm1 (>= 7.11~1) but it is not going to be installed
                Recommends: libegl1-mesa-drivers
 libmirserver18 : Depends: libmirplatformgraphics-mesa (= 0.1.8+14.04.20140411-0ubuntu1) but it is not going to be installed or
                           libmirplatformgraphics-android (= 0.1.8+14.04.20140411-0ubuntu1) but it is not going to be installed
 libqt5gui5 : Depends: libgbm1 (>= 8.1~0) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

答案1

根据 Ubuntu 社区帮助 Wiki,尝试运行:

sudo apt-get -f install

帮助页面

此命令的作用与 Synaptic 中的“编辑”->“修复损坏的软件包”相同。如果您收到有关软件包“未满足依赖关系”的投诉,请执行此操作。

然后,如果您仍然遇到问题,请运行sudo apt-get check并报告。

相关内容