当我尝试安装某些32位程序时,比如在本例中是葡萄酒,来自软件中心或WineHQ存储库,或者例如PCSX2,我会因为缺少依赖项而得到错误。当我试图安装缺少的依赖项时,我会得到更多缺失依赖项的错误,并且会继续运行。
我运行Ubuntu 15.10 64位最新版本。我的设置:
(我以前使用过不受支持的backports )
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
也已经安装好了吗?64位软件,如海豚、回流或蒸汽正在正常工作和安装。这会不会是某个地方缺少标题的问题呢?
我真的不知道。请帮帮我。谢谢。
发布于 2016-02-15 09:51:19
答案的解决方案可以在这里找到:http://forums.pcsx2.net/Thread-Ubuntu-15-10-64bit-Missing-i386-dependencies-libglib2-and-libgtk2
这一切都要感谢pcsx2的格雷戈里的帮助。我通过Synaptic手动强制libglib2.0到正确的版本,这解决了问题。在重新安装libglib、ubuntu桌面、gdm、gnome和ubuntu-gnome桌面的过程中,您必须在重新启动之后,通过命令行(crtl+alt+f1)重新安装这些桌面,重新启动,然后一切都会好起来。至少我就是这样解决这个问题的。
发布于 2017-10-31 11:24:56
我在Ubuntu 16.04上也碰到了同样的情况。根本原因:更新工具破坏了一些包。
我安装了ppa-purge
并用以下方式删除了它:
sudo ppa-purge -s download.01.org ppa:gfx/ubuntu
发布于 2016-02-14 14:44:48
重要的是,您在32位和64位中拥有相同版本的libary,否则您无法安装另一个arch。
您必须通过以下方式激活32位库:
sudo apt-get install ia32-libs
你也可能需要添加宇宙存储库。
https://askubuntu.com/questions/733421
复制相似问题