当我尝试从软件中心或 WineHQ 存储库安装某些 32 位程序(例如 Wine)或 PCSX2 时,我会收到缺少依赖项的错误。当我尝试安装缺少的依赖项时,我会收到缺少更多依赖项的错误,这种情况会一直持续下去。
我运行的是最新的 Ubuntu 15.10 64位。我的设置:
电脑控制软件
sudo apt-get install pcsx2
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:
pcsx2:i386 : Depends: libgdk-pixbuf2.0-0:i386 (>= 2.22.0) but it is not going to be installed
Depends: libglib2.0-0:i386 (>= 2.12.0) but it is not going to be installed
Depends: libgtk2.0-0:i386 (>= 2.24.0) but it is not going to be installed
Depends: libwxgtk3.0-0v5:i386 (>= 3.0.2+dfsg) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
libglib 依赖于 libgtk,libgtk 依赖于 libglid
sudo apt-get install libglib2.0-0:i386
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:
default-jre : Depends: default-jre-headless (= 2:1.7-52) but it is not going to be installed
openjdk-7-jre : Depends: openjdk-7-jre-headless (= 7u95-2.6.4-0ubuntu0.15.10.1) but it is not going to be installed
Depends: libgdk-pixbuf2.0-0 (>= 2.22.0) but it is not going to be installed
Depends: libglib2.0-0 (>= 2.16.0) but it is not going to be installed
Depends: libgtk2.0-0 (>= 2.8.0) but it is not going to be installed
Depends: libpango-1.0-0 (>= 1.14.0) but it is not going to be installed
Depends: libatk-wrapper-java-jni (>= 0.30.4-0ubuntu2) but it is not going to be installed
Recommends: libgnome-2-0 but it is not installable
Recommends: libgnomevfs2-0 but it is not going to be installed
Recommends: libgconf-2-4 but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
资质:
sudo aptitude install libglib2.0-0:i386
The following NEW packages will be installed:
libglib2.0-0:i386{b}
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 1.175 kB of archives. After unpacking 5.372 kB will be used.
The following packages have unmet dependencies:
libglib2.0-0 : Breaks: libglib2.0-0:i386 (!= 2.46.2-1ubuntu1) but 2.46.1-1 is to be installed.
libglib2.0-0:i386 : Breaks: libglib2.0-0 (!= 2.46.1-1) but 2.46.2-1ubuntu1 is installed.
open: 352; closed: 1536; defer: 284; conflict: 1492 O
The following actions will resolve these dependencies:
Remove the following packages:
[List of over a 1000 packages !!!]
葡萄酒
从软件中心安装:
Package dependencies cannot be resolved
This error could be caused by required additional software packages which are missing or not installable. Furthermore there could be a conflict between software packages which are not allowed to be installed at the same time.
The following packages have unmet dependencies:
wine:
终端:
sudo apt-get install --install-recommends winehq-staging
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:
winehq-staging : Depends: wine-staging (= 1.9.3~ubuntu15.10.1)
E: Unable to correct problems, you have held broken packages.
:
sudo apt-get install wine-staging
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:
wine-staging : Depends: wine-staging-i386 (= 1.9.3~ubuntu15.10.1)
E: Unable to correct problems, you have held broken packages.
:
sudo apt-get install wine-staging-i386
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:
wine-staging-i386:i386 : Depends: libglib2.0-0:i386 (>= 2.12.0) but it is not going to be installed
Depends: libgstreamer-plugins-base1.0-0:i386 (>= 1.0.0) but it is not going to be installed
Depends: libgstreamer1.0-0:i386 (>= 1.4.0) but it is not going to be installed
Recommends: libgnutls26:i386 but it is not installable
Recommends: libgtk-3-0:i386 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
突触
尝试修复损坏的包裹,但没有。
搜索过
libglib2.0-0:i386
,没有结果。一般搜索
libglib
:标记
libglib2.0-dev
为安装会删除、、gdm
和gnome
设置ubuntu-desktop
、、unity
等等libglib.2.0-0
,降级、libglib2.0-0
安装libpcre3-dev
、、、。libpcre32-2
libpcrecpp0v5
zlib1g-dev
再次标记
libglib2.0-0-dbg
安装会删除所有内容,不会安装任何新内容,并且会降级libglib2.0-0
。
那么libglib2.0-0
已经安装了,显然是 64 位版本,对吗?或者libglib2.0-0:i386
也已经安装了?Dolphin、Retroarch 或 Steam 等 64 位软件可以正常工作并正确安装。这可能是某个地方缺少标题的问题吗?
我真的不知道。请帮帮我。谢谢。
答案1
答案的解决方案可以在这里找到:http://forums.pcsx2.net/Thread-Ubuntu-15-10-64bit-Missing-i386-dependencies-libglib2-and-libgtk2
这一切都要感谢 pcsx2 的 gregory 的帮助。我通过 Synaptic 手动将 libglib2.0-0 强制为正确的版本,从而解决了这个问题。在重新安装 libglib 的过程中,ubuntu-desktop、gdm、gnome 和 ubuntu-gnome-desktop 被删除,因此在重新启动后,您必须通过命令行 (crtl+alt+f1) 再次安装它们,然后再次重新启动,一切就应该正常了。至少我就是这样解决这个问题的。
答案2
我在 Ubuntu 16.04 上遇到了同样的问题。根本原因是:Intel Linux Graphics 更新工具破坏了一些软件包。
我使用以下命令安装ppa-purge
和删除了它:
sudo ppa-purge -s download.01.org ppa:gfx/ubuntu
答案3
重要的是,您在 32 位和 64 位中拥有相同版本的库,否则您无法安装其他架构。
您必须通过以下方式激活 32 位库:
sudo apt-get install ia32-libs
而且您可能还需要添加宇宙存储库。