尝试安装 WINE Ubuntu 14.04 时出现大量未满足的依赖关系

尝试安装 WINE Ubuntu 14.04 时出现大量未满足的依赖关系

基本上,这是一个相当常见的问题,但我发现的建议对我来说不起作用。

sudo apt-get install wine
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:
 brasero-cdrkit : Depends: libbrasero-media3-1 (= 3.10.0-0ubuntu1) but it is not going to be installed
 friends-twitter : Depends: friends
                   Depends: account-plugin-twitter but it is not going to be installed
 gir1.2-packagekitglib-1.0 : Depends: libpackagekit-glib2-16 (>= 0.8.12) but it is not going to be installed
 indicator-datetime : Depends: libecal-1.2-16 (>= 3.7.90) but it is not going to be installed
                      Depends: libedataserver-1.2-18 (>= 3.5.91) but it is not going to be installed
                      Recommends: indicator-applet but it is not going to be installed or
                                  indicator-renderer
                      Recommends: evolution-data-server but it is not going to be installed
                      Recommends: geoclue-ubuntu-geoip but it is not going to be installed or
                                  geoclue-provider
 indicator-network : Depends: unity8 (>= 7.82) but it is not going to be installed
 kdelibs5-plugins : Depends: libkdewebkit5 (= 4:4.13.0-0ubuntu1) but it is not going to be installed
 libaccounts-qt5-1 : Depends: libaccounts-glib0 (>= 1.14) but it is not going to be installed
 libldap-2.4-2 : Depends: libgssapi3-heimdal (>= 1.4.0+git20110226) but it is not going to be installed
 libnice10 : Depends: libgupnp-igd-1.0-4 (>= 0.2.1) but it is not going to be installed
 libnm-util2 : Depends: libnss3 (>= 2:3.13.4-2~) but it is not going to be installed or
                        libnss3-1d (>= 3.12.0~1.9b1) but it is not going to be installed
 liboauth0 : Depends: libnss3 (>= 2:3.13.4-2~) but it is not going to be installed or
                      libnss3-1d (>= 3.12.0~1.9b1) but it is not going to be installed
 libpeas-1.0-0 : Depends: libpython2.7 (>= 2.7) but it is not going to be installed
                 Depends: libpython3.4 (>= 3.4~b1) but it is not going to be installed
 libpython-dev : Depends: libpython2.7-dev (>= 2.7.5-1~) but it is not going to be installed
 libpython-stdlib : Depends: libpython2.7-stdlib (>= 2.7.5-1~) but it is not going to be installed
 libpython3-stdlib : Depends: libpython3.4-stdlib (>= 3.4.0-0~) but it is not going to be installed
 libreoffice-core : Depends: libnss3 (>= 2:3.13.4-2~) but it is not going to be installed or
                             libnss3-1d (>= 3.12.0~1.9b1) but it is not going to be installed
 librpm3 : Depends: librpmio3 (>= 4.11.0.1) but it is not going to be installed
 librpmbuild3 : Depends: librpmio3 (>= 4.11.0.1) but it is not going to be installed
 librpmsign1 : Depends: librpmio3 (>= 4.10.0) but it is not going to be installed
 libsmbclient : Depends: samba-libs (= 2:4.1.6+dfsg-1ubuntu2.14.04.9) but it is not going to be installed
 network-manager-gnome : Depends: network-manager (>= 0.9.8) but it is not going to be installed
                         Recommends: notification-daemon
 plasma-scriptengine-javascript : Depends: libplasma3 (>= 4:4.7.0) but it is not going to be installed
 python-dev : Depends: python2.7-dev (>= 2.7.5-1~) but it is not going to be installed
 python2.7 : Depends: libpython2.7-stdlib (= 2.7.6-8ubuntu0.2) but it is not going to be installed
 python3.4 : Depends: libpython3.4-stdlib (= 3.4.0-2ubuntu1.1) but it is not going to be installed
 qtdeclarative5-ubuntu-ui-toolkit-plugin : Depends: libqt5svg5 but it is not going to be installed
                                           Depends: libthumbnailer0 (>= 1.0) but it is not going to be installed
 rpm-common : Depends: librpmio3 (>= 4.10.0) but it is not going to be installed
 rpm2cpio : Depends: librpmio3 (>= 4.10.0) but it is not going to be installed
 signon-plugin-password : Depends: signond but it is not going to be installed
 system-config-printer-gnome : Depends: python-libxml2 but it is not going to be installed
 telepathy-haze : Depends: libpurple0 (>= 1:2.7.0) but it is not going to be installed
 telepathy-logger : Depends: libtelepathy-logger3 (= 0.8.0-3) but it is not going to be installed
 ubuntu-sso-client : Depends: python-ubuntu-sso-client (= 13.10-0ubuntu6) but it is not going to be installed
 unity-scope-mediascanner2 : Depends: libmediascanner-2.0-0 but it is not going to be installed
                             Depends: mediascanner2.0 but it is not going to be installed
 whoopsie-preferences : Depends: libwhoopsie0 but it is not going to be installed
 wine : Depends: wine1.6 but it is not going to be installed or
                 wine1.8 but it is not going to be installed
 yelp : Depends: libwebkitgtk-3.0-0 (>= 1.3.10) but it is not going to be installed
        Depends: libyelp0 (= 3.10.2-0ubuntu1) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

我尝试添加官方 ubuntu 和 wine 存储库(+ sudo apt-get update)。然后我尝试删除 sources.list 和 sources.list.d 中的每个存储库,只保留官方/默认的存储库。我不认为我保留了软件包,因为我没有得到任何输出

sudo dpkg --get-selections | grep hold

我不确定我的 Ubuntu 安装发生了什么,尤其是我不是唯一使用这个系统的人。

有任何想法吗?

答案1

我刚试过

sudo apt-get clean
sudo apt-get autoclean

这似乎有所帮助。然后安装 wine 似乎没有问题。我知道命令,但我忘了实际尝试它们……

一个愚蠢的错误。但是,由于我花了很多时间在 Google 上搜索和浏览 askubuntu,并在几个小时后偶然发现了“autoclean/clean”,所以将这个问题留给下一个人解决可能不是一个坏主意,但社区可以决定。

相关内容