由于软件包损坏,无法安装 wine32

由于软件包损坏,无法安装 wine32

我正在尝试安装 wine32Ubuntu 20.04.1 LTS(如果重要的话,gnome 3.36.1)使用: sudo apt install wine32

但收到消息: wine32:i386 : Depends: libwine:i386 (= 5.0-3ubuntu1) but it is not going to be installed

沿着依赖链往下看:

 libwine:i386 : Depends: libasound2:i386 (>= 1.0.16) but it is not going to be installed
                Depends: libfaudio0:i386 (>= 19.06.07) but it is not going to be installed
                Depends: libgphoto2-6:i386 (>= 2.5.10) but it is not going to be installed
                Depends: libgphoto2-port12:i386 (>= 2.5.10) but it is not going to be installed
                Depends: libldap-2.4-2:i386 (>= 2.4.7) but it is not going to be installed
                Depends: libopenal1:i386 (>= 1.14) but it is not going to be installed
                Depends: libpulse0:i386 (>= 0.99.1) but it is not going to be installed
                Depends: libudev1:i386 (>= 183) but it is not going to be installed
                Depends: libxml2:i386 (>= 2.9.0) but it is not going to be installed
                Recommends: libcups2:i386 (>= 1.4.0) but it is not going to be installed
                Recommends: libdbus-1-3:i386 (>= 1.9.14) but it is not going to be installed
                Recommends: libsane:i386 (>= 1.0.24) but it is not going to be installed
                Recommends: libsdl2-2.0-0:i386 (>= 2.0.10) but it is not going to be installed
                Recommends: libtiff5:i386 (>= 4.0.3) but it is not going to be installed
                Recommends: libxslt1.1:i386 (>= 1.1.25) but it is not going to be installed
                Recommends: libasound2-plugins:i386 but it is not going to be installed
                Recommends: gstreamer1.0-plugins-good:i386 but it is not going to be installed

然后随机选择一个并遵循它的依赖关系一直到:

sudo apt install libgoa-1.0-common:i386 -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'libgoa-1.0-common' instead of 'libgoa-1.0-common:i386'
libgoa-1.0-common is already the newest version (3.36.0-1ubuntu1).
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.

我尝试过的

  • 运行sudo apt-get install --install-recommends winehq-stable(将 WineHQ repo 添加到源后),运行 apt update 并重试
  • 运行sudo dpkg --add-architecture i386apt update 并重试
  • 跑步sudo apt-get dist-upgradesudo apt install -fsudo apt install autoremove
  • 意外卸载 gnome...
  • 尝试能力:
The following NEW packages will be installed:
  glib-networking:i386{ab} glib-networking-services:i386{ab} gstreamer1.0-plugins-base:i386{a} gstreamer1.0-plugins-good:i386{a} gstreamer1.0-x:i386{a} i965-va-driver:i386{a} intel-media-va-driver:i386{a} libaa1:i386{a} libaom0:i386{a} libasn1-8-heimdal:i386{a} 
  libasound2:i386{ab} libasound2-plugins:i386{a} libasyncns0:i386{a} libavahi-client3:i386{a} libavahi-common-data:i386{a} libavahi-common3:i386{a} libavc1394-0:i386{a} libavcodec58:i386{a} libavutil56:i386{a} libbrotli1:i386{a} libcaca0:i386{a} libcairo-gobject2:i386{a} 
  libcairo2:i386{a} libcap2:i386{a} libcapi20-3:i386{a} libcdparanoia0:i386{a} libcodec2-0.9:i386{a} libcups2:i386{ab} libcurl3-gnutls:i386{a} libdatrie1:i386{a} libdbus-1-3:i386{a} libdv4:i386{a} libexif12:i386{ab} libfaudio0:i386{a} libflac8:i386{a} libfontconfig1:i386{a} 
  libfreetype6:i386{a} libfribidi0:i386{a} libgd3:i386{a} libgdbm-compat4:i386{a} libgdbm6:i386{a} libgdk-pixbuf2.0-0:i386{a} libglib2.0-0:i386{a} libglu1-mesa:i386{a} libgmp10:i386{a} libgnutls30:i386{a} libgomp1:i386{a} libgphoto2-6:i386{a} libgphoto2-port12:i386{a} 
  libgraphite2-3:i386{a} libgsm1:i386{a} libgssapi-krb5-2:i386{a} libgssapi3-heimdal:i386{a} libgstreamer-plugins-base1.0-0:i386{a} libgstreamer-plugins-good1.0-0:i386{a} libgstreamer1.0-0:i386{a} libgudev-1.0-0:i386{a} libharfbuzz0b:i386{a} libhcrypto4-heimdal:i386{a} 
  libheimbase1-heimdal:i386{a} libheimntlm0-heimdal:i386{a} libhogweed5:i386{a} libhx509-5-heimdal:i386{a} libicu66:i386{a} libiec61883-0:i386{a} libieee1284-3:i386{a} libigdgmm11:i386{a} libjack-jackd2-0:i386{a} libjbig0:i386{a} libjpeg-turbo8:i386{a} libjpeg8:i386{a} 
  libk5crypto3:i386{a} libkeyutils1:i386{a} libkrb5-26-heimdal:i386{a} libkrb5-3:i386{a} libkrb5support0:i386{a} liblcms2-2:i386{a} libldap-2.4-2:i386{ab} libltdl7:i386{a} liblzma5:i386{ab} libmp3lame0:i386{a} libmpg123-0:i386{a} libmysqlclient21:i386{a} libnettle7:i386{a} 
  libnghttp2-14:i386{a} libnuma1:i386{a} libodbc1:i386{a} libogg0:i386{a} libopenal1:i386{a} libopenjp2-7:i386{a} libopus0:i386{a} liborc-0.4-0:i386{a} libosmesa6:i386{a} libp11-kit0:i386{a} libpango-1.0-0:i386{a} libpangocairo-1.0-0:i386{a} libpangoft2-1.0-0:i386{a} 
  libpcap0.8:i386{a} libpci3:i386{a} libperl5.30:i386{a} libpixman-1-0:i386{a} libpng16-16:i386{a} libproxy1v5:i386{a} libpsl5:i386{a} libpulse0:i386{ab} libraw1394-11:i386{a} libroken18-heimdal:i386{a} librsvg2-2:i386{a} librsvg2-common:i386{a} librtmp1:i386{a} 
  libsamplerate0:i386{a} libsane:i386{a} libsasl2-2:i386{a} libsasl2-modules:i386{a} libsasl2-modules-db:i386{a} libsdl2-2.0-0:i386{a} libshine3:i386{a} libshout3:i386{a} libslang2:i386{a} libsnappy1v5:i386{a} libsndfile1:i386{a} libsndio7.0:i386{a} libsnmp35:i386{a} 
  libsoup2.4-1:i386{a} libsoxr0:i386{a} libspeex1:i386{a} libsqlite3-0:i386{a} libssh-4:i386{a} libssl1.1:i386{a} libstb0:i386{a} libswresample3:i386{a} libsystemd0:i386{ab} libtag1v5:i386{a} libtag1v5-vanilla:i386{a} libtasn1-6:i386{a} libthai0:i386{a} libtheora0:i386{a} 
  libtiff5:i386{a} libtwolame0:i386{a} libudev1:i386{ab} libusb-1.0-0:i386{a} libv4l-0:i386{a} libv4lconvert0:i386{a} libva-drm2:i386{a} libva-x11-2:i386{a} libva2:i386{a} libvdpau1:i386{a} libvisual-0.4-0:i386{a} libvkd3d1:i386{a} libvorbis0a:i386{a} libvorbisenc2:i386{a} 
  libvpx6:i386{a} libwavpack1:i386{a} libwayland-cursor0:i386{a} libwayland-egl1:i386{a} libwebp6:i386{a} libwebpmux3:i386{a} libwind0-heimdal:i386{a} libwine:i386{a} libwrap0:i386{a} libx264-155:i386{a} libx265-179:i386{a} libxcb-render0:i386{a} libxcb-shm0:i386{a} 
  libxcb-xfixes0:i386{a} libxcomposite1:i386{a} libxcursor1:i386{a} libxi6:i386{a} libxinerama1:i386{a} libxkbcommon0:i386{a} libxml2:i386{a} libxpm4:i386{a} libxrandr2:i386{a} libxrender1:i386{a} libxslt1.1:i386{a} libxss1:i386{a} libxv1:i386{a} libxvidcore4:i386{a} 
  libzvbi0:i386{a} mesa-va-drivers:i386{a} mesa-vdpau-drivers:i386{a} ocl-icd-libopencl1:i386{a} va-driver-all:i386{a} vdpau-driver-all:i386{a} wine32:i386 
0 packages upgraded, 185 newly installed, 0 to remove and 0 not to upgrade.
Need to get 41.7 MB/97.0 MB of archives. After unpacking 548 MB will be used.
The following packages have unmet dependencies:
 glib-networking-services : Conflicts: glib-networking-services:i386 but 2.64.1-1 is to be installed
 glib-networking-services:i386 : Conflicts: glib-networking-services but 2.64.2-1build1 is installed
 libcups2 : Breaks: libcups2:i386 (!= 2.3.1-9ubuntu1.1) but 2.3.1-9ubuntu1 is to be installed
 libcups2:i386 : Breaks: libcups2 (!= 2.3.1-9ubuntu1) but 2.3.1-9ubuntu1.1 is installed
 libldap-2.4-2 : Breaks: libldap-2.4-2:i386 (!= 2.4.49+dfsg-2ubuntu1.2) but 2.4.49+dfsg-2ubuntu1 is to be installed
 libldap-2.4-2:i386 : Breaks: libldap-2.4-2 (!= 2.4.49+dfsg-2ubuntu1) but 2.4.49+dfsg-2ubuntu1.2 is installed
 libsystemd0 : Breaks: libsystemd0:i386 (!= 245.4-4ubuntu3.2) but 245.4-4ubuntu3 is to be installed
 libsystemd0:i386 : Breaks: libsystemd0 (!= 245.4-4ubuntu3) but 245.4-4ubuntu3.2 is installed
 glib-networking : Breaks: glib-networking:i386 (!= 2.64.2-1build1) but 2.64.1-1 is to be installed
 glib-networking:i386 : Breaks: glib-networking (!= 2.64.1-1) but 2.64.2-1build1 is installed
 libasound2-data : Breaks: libasound2:i386 (< 1.2.2-2.1ubuntu2) but 1.2.2-2.1 is to be installed
 libudev1 : Breaks: libudev1:i386 (!= 245.4-4ubuntu3.2) but 245.4-4ubuntu3 is to be installed
 libudev1:i386 : Breaks: libudev1 (!= 245.4-4ubuntu3) but 245.4-4ubuntu3.2 is installed
 libexif12 : Breaks: libexif12:i386 (!= 0.6.21-6ubuntu0.1) but 0.6.21-6 is to be installed
 libexif12:i386 : Breaks: libexif12 (!= 0.6.21-6) but 0.6.21-6ubuntu0.1 is installed
 libpulse0 : Breaks: libpulse0:i386 (!= 1:13.99.1-1ubuntu3.6) but 1:13.99.1-1ubuntu3 is to be installed
 libpulse0:i386 : Breaks: libpulse0 (!= 1:13.99.1-1ubuntu3) but 1:13.99.1-1ubuntu3.6 is installed
 libasound2 : Breaks: libasound2:i386 (!= 1.2.2-2.1ubuntu2) but 1.2.2-2.1 is to be installed
 libasound2:i386 : Breaks: libasound2 (!= 1.2.2-2.1) but 1.2.2-2.1ubuntu2 is installed
 liblzma5 : Breaks: liblzma5:i386 (!= 5.2.4-1ubuntu1) but 5.2.4-1 is to be installed
 liblzma5:i386 : Breaks: liblzma5 (!= 5.2.4-1) but 5.2.4-1ubuntu1 is installed
open: 26; closed: 1549; defer: 6; conflict: 14                                                                                                                                                                                                                                           oThe following actions will resolve these dependencies:

      Keep the following packages at their current version:   
1)      glib-networking:i386 [Not Installed]                  
2)      glib-networking-services:i386 [Not Installed]         
3)      gstreamer1.0-plugins-good:i386 [Not Installed]        
4)      libasound2:i386 [Not Installed]                       
5)      libasound2-plugins:i386 [Not Installed]               
6)      libavahi-client3:i386 [Not Installed]                 
7)      libavcodec58:i386 [Not Installed]                     
8)      libcups2:i386 [Not Installed]                         
9)      libcurl3-gnutls:i386 [Not Installed]                  
10)     libdbus-1-3:i386 [Not Installed]                      
11)     libexif12:i386 [Not Installed]                        
12)     libfaudio0:i386 [Not Installed]                       
13)     libgd3:i386 [Not Installed]                           
14)     libgdk-pixbuf2.0-0:i386 [Not Installed]               
15)     libgphoto2-6:i386 [Not Installed]                     
16)     libgphoto2-port12:i386 [Not Installed]                
17)     libgudev-1.0-0:i386 [Not Installed]                   
18)     libldap-2.4-2:i386 [Not Installed]                    
19)     liblzma5:i386 [Not Installed]                         
20)     libopenal1:i386 [Not Installed]                       
21)     libpci3:i386 [Not Installed]                          
22)     libpulse0:i386 [Not Installed]                        
23)     librsvg2-2:i386 [Not Installed]                       
24)     librsvg2-common:i386 [Not Installed]                  
25)     libsane:i386 [Not Installed]                          
26)     libsdl2-2.0-0:i386 [Not Installed]                    
27)     libsndio7.0:i386 [Not Installed]                      
28)     libsnmp35:i386 [Not Installed]                        
29)     libsoup2.4-1:i386 [Not Installed]                     
30)     libsystemd0:i386 [Not Installed]                      
31)     libtiff5:i386 [Not Installed]                         
32)     libudev1:i386 [Not Installed]                         
33)     libusb-1.0-0:i386 [Not Installed]                     
34)     libwine:i386 [Not Installed]                          
35)     libxml2:i386 [Not Installed]                          
36)     libxslt1.1:i386 [Not Installed]                       
37)     wine32:i386 [Not Installed]                           

      Leave the following dependencies unresolved:            
38)     libopenal1:i386 recommends libasound2:i386 (>= 1.0.16)
39)     libwine:i386 recommends libsdl2-2.0-0:i386 (>= 2.0.10)
40)     libwine:i386 recommends gstreamer1.0-plugins-good:i386

Aptitude 提到了冲突,但不确定这是否是问题所在。如果是,为什么会出现冲突以及如何解决。

答案1

我有类似的问题,但问题是因为libudev1:i386在 repo 中列出的文件中sources.list只达到了版本237-3ubuntu10.42,同时,我的 libudev (arch amd64),已经通过自动更新更新到 237-3ubuntu10.43。

在您的情况下: glib-networking-services:冲突:glib-networking-services:i386 但 2.64.1-1 glib-networking-services:i386:冲突:glib-networking-services 但 2.64.2-1build1

你看,amd64 arch version与 的不同amd32 arch version,一个是2.64.1-1版本,另一个是2.64.2-1build1版本。

也许当我们打电话时偶然发生这种情况sudo apt upgrade

尝试一下这个:

sudo apt show glib-networking-services -a

sudo apt show glib-networking-services:i386 -a

如果两个包中都有这两个版本,则观察现有的版本(观察apt show上述步骤中的结果)

显示类似这样的内容:

glib-networking-services:i386 (2.64.2-1build1)
etc...
etc...

glib-networking-services:i386 (2.64.1-1)
etc...
etc...

glib-networking-services (2.64.2-1build1)
etc...
etc...
glib-networking-services (2.64.1-1)
etc...
etc...

所以你很幸运,当 glib-networking-services (两个 arch) 都有 2.64.2-1build1 和 2.64.1-1 时,只需查看已经安装了哪个版本,例如glib-networking-services已经安装了版本,因此如果你的软件包 source.list 中有的2.64.2-1build1版本,但在自动安装过程中总是选择 版本,因此会产生冲突,只需输入:2.64.2-1build1glib-networking-services:i386glib-networking-services:i3862.64.1-1

sudo apt install glib-networking-services:i386=2.64.2-1build1

以确保安装了正确的版本。

但就我的情况而言,就像我之前说的,amd32(:i386)版本不存在更新版本,因此 64 arch 软件包和 32 arch 软件包的版本不同,并导致冲突/损坏软件包错误。在这种情况下,您不可能安装 arch32 软件包的更新版本,因为我们的sources.list

所以我要做的是,在谷歌中搜索 libudev1:i386 版本 237-3ubuntu10.43(搜索 .deb 文件),幸运的是我找到了它这里.所以我下载了 deb 文件。

然后安装它sudo dpkg -i filename.deb

第一次尝试安装过程中dpkg -i会出现错误,但会显示错误的原因。在我的情况下,发生这种情况是因为在记录 sources.lits 中存在的版本的 libudev 文档中不存在 237-3ubuntu10.43 版本。

changelog.Debian.gz文件夹中记录该文件/usr/share/doc/libudev1(运行时会显示错误sudo dpkg -i filename.deb)。

所以我用 changelog.Debian.gz12 重命名该文件,然后dpkg -i filename.deb再次执行 sudo。现在成功了。之后您可以安装 wine。

就我而言libudev1:i386,就你而言......,glib-networking-services:i386但我认为步骤是相似的。

答案2

这是有冲突的包:

The following packages have unmet dependencies:
 glib-networking-services : Conflicts: glib-networking-services:i386 but 2.64.1-1 is to be installed
 glib-networking-services:i386 : Conflicts: glib-networking-services but 2.64.2-1build1 is installed

看来您有一个处于活动状态然后被禁用的存储库。

详细信息:i386 和 amd64(默认)架构之间的软件包版本冲突。因为其中一个版本较旧,并且是从无法访问或已被禁用的存储库安装的。

使用以下方法检查哪个存储库:

apt-cache policy glib-networking-services glib-networking-services:i386

software-properties-gtk(“软件源”)

答案3

请尝试:sudo apt --fix-broken install

答案4

就我而言,它与这些库相关:• libgd3:i386 • libgd3

对我有帮助的解决方案是完全删除提供不同 PHP 版本的存储库:

sudo apt-add-repository -y ppa:ondrej/php
sudo apt-get install ppa-purge
sudo ppa-purge -y ppa:ondrej/php

之后,我就可以从 winehq 安装 wine amd64 和 i386 包了。

相关内容