在 Debian 11 上安装 wine 时遇到问题

在 Debian 11 上安装 wine 时遇到问题

我正在尝试安装 wine,但一直遇到一个问题,apt 告诉我我保存了损坏的软件包。我对 Linux 不是很熟悉,而且我已经尝试了在其他地方见过的大量不同解决方案。

我已经按照以下步骤添加了存储库葡萄酒资讯网,但每次我尝试运行时sudo apt install --install-recommends winehq-stable,都会得到这个输出:

Reading package lists... Done
Building dependency tree... Done
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-stable : Depends: wine-stable (= 7.0.1~bullseye-1)
E: Unable to correct problems, you have held broken packages.

看到这个之后,我决定尝试wine-stable手动安装,但是我得到了这个:

Reading package lists... Done
Building dependency tree... Done
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:
 libasound2:i386 : Depends: libc6:i386 (>= 2.29) but it is not installable
 libasound2-plugins : Depends: libavcodec58 (>= 7:4.2)
 libasound2-plugins:i386 : Depends: libavcodec58:i386 (>= 7:4.2)
                           Depends: libc6:i386 (>= 2.28) but it is not installable
                           Depends: libjack-jackd2-0:i386 (>= 1.9.10+20150825) but it is not installable or
                                    libjack-0.125:i386
                           Depends: libpulse0:i386 (>= 0.99.1-1~) but it is not installable
 libavahi-client3:i386 : Depends: libc6:i386 (>= 2.4) but it is not installable
 libavahi-common3:i386 : Depends: libc6:i386 (>= 2.28) but it is not installable
 libavresample4:i386 : Depends: libc6:i386 (>= 2.4) but it is not installable
 libavutil56:i386 : Depends: libc6:i386 (>= 2.29) but it is not installable
 libblkid1:i386 : Depends: libc6:i386 (>= 2.28) but it is not installable
 libbrotli1:i386 : Depends: libc6:i386 (>= 2.29) but it is not installable
 libbsd0:i386 : Depends: libc6:i386 (>= 2.25) but it is not installable
 libbz2-1.0:i386 : Depends: libc6:i386 (>= 2.4) but it is not installable
 libcairo2 : Depends: libfontconfig1 (>= 2.12.6) but it is not installable
             Depends: libxrender1 but it is not installable
 libcairo2:i386 : Depends: libc6:i386 (>= 2.29) but it is not installable
 libcap2:i386 : Depends: libc6:i386 (>= 2.9) but it is not installable
 libcom-err2:i386 : Depends: libc6:i386 (>= 2.28) but it is not installable
 libcrypt1:i386 : Depends: libc6:i386 (>= 2.25) but it is not installable
 libcurl3-gnutls : Depends: libgnutls30 (>= 3.7.0) but it is not installable
 libcurl3-gnutls:i386 : Depends: libc6:i386 (>= 2.28) but it is not installable
 libcurl4:i386 : Depends: libc6:i386 (>= 2.28) but it is not installable
 libdb5.3:i386 : Depends: libc6:i386 (>= 2.28) but it is not installable
 libdbus-1-3:i386 : Depends: libc6:i386 (>= 2.28) but it is not installable
                    Depends: libsystemd0:i386
 libdeflate0:i386 : Depends: libc6:i386 (>= 2.4) but it is not installable
 libdrm2:i386 : Depends: libc6:i386 (>= 2.17) but it is not installable
 libdw1:i386 : Depends: libc6:i386 (>= 2.23) but it is not installable
 libelf1:i386 : Depends: libc6:i386 (>= 2.28) but it is not installable
 libexif12:i386 : Depends: libc6:i386 (>= 2.29) but it is not installable
 libexpat1:i386 : Depends: libc6:i386 (>= 2.25) but it is not installable
 libffi7:i386 : Depends: libc6:i386 (>= 2.7) but it is not installable
 libfontconfig1:i386 : Depends: libc6:i386 (>= 2.28) but it is not installable
 libfreetype6:i386 : Depends: libc6:i386 (>= 2.28) but it is not installable
 libgcc-s1:i386 : Depends: libc6:i386 (>= 2.2.4) but it is not installable
 libgcrypt20:i386 : Depends: libc6:i386 (>= 2.28) but it is not installable
 libgd3 : Depends: libfontconfig1 (>= 2.12.6) but it is not installable
 libgd3:i386 : Depends: libc6:i386 (>= 2.29) but it is not installable
 libgdbm-compat4:i386 : Depends: libc6:i386 (>= 2.7) but it is not installable
 libgdbm6:i386 : Depends: libc6:i386 (>= 2.28) but it is not installable
 libglib2.0-0:i386 : Depends: libc6:i386 (>= 2.28) but it is not installable
 libgmp10:i386 : Depends: libc6:i386 (>= 2.7) but it is not installable
 libgnutls30:i386 : Depends: libc6:i386 (>= 2.28) but it is not installable
 libgpg-error0:i386 : Depends: libc6:i386 (>= 2.28) but it is not installable
 libgphoto2-6:i386 : Depends: libc6:i386 (>= 2.29) but it is not installable
 libgphoto2-port12:i386 : Depends: libc6:i386 (>= 2.28) but it is not installable
 libgssapi-krb5-2:i386 : Depends: libc6:i386 (>= 2.27) but it is not installable
 libgstreamer-plugins-base1.0-0:i386 : Depends: libc6:i386 (>= 2.29) but it is not installable
                                       Recommends: gstreamer1.0-plugins-base:i386 but it is not installable
 libgstreamer1.0-0:i386 : Depends: libc6:i386 (>= 2.29) but it is not installable
 libhogweed6 : Depends: libgmp10 (>= 2:6.1.0) but it is not installable
 libhogweed6:i386 : Depends: libc6:i386 (>= 2.4) but it is not installable
 libicu67:i386 : Depends: libc6:i386 (>= 2.29) but it is not installable
 libidn2-0:i386 : Depends: libc6:i386 (>= 2.4) but it is not installable
 libieee1284-3:i386 : Depends: libc6:i386 (>= 2.28) but it is not installable
 libjbig0:i386 : Depends: libc6:i386 (>= 2.4) but it is not installable
 libjpeg62-turbo:i386 : Depends: libc6:i386 (>= 2.7) but it is not installable
 libk5crypto3:i386 : Depends: libc6:i386 (>= 2.28) but it is not installable
 libkeyutils1:i386 : Depends: libc6:i386 (>= 2.7) but it is not installable
 libkrb5-3:i386 : Depends: libc6:i386 (>= 2.28) but it is not installable
 libkrb5support0:i386 : Depends: libc6:i386 (>= 2.25) but it is not installable
 liblcms2-2:i386 : Depends: libc6:i386 (>= 2.29) but it is not installable
 libldap-2.4-2 : Depends: libgnutls30 (>= 3.7.0) but it is not installable
 libldap-2.4-2:i386 : Depends: libc6:i386 (>= 2.28) but it is not installable
 libltdl7:i386 : Depends: libc6:i386 (>= 2.4) but it is not installable
 liblzma5:i386 : Depends: libc6:i386 (>= 2.17) but it is not installable
 libmd0:i386 : Depends: libc6:i386 (>= 2.4) but it is not installable
 libmount1:i386 : Depends: libc6:i386 (>= 2.28) but it is not installable
 libnettle8:i386 : Depends: libc6:i386 (>= 2.4) but it is not installable
 libnghttp2-14:i386 : Depends: libc6:i386 (>= 2.4) but it is not installable
 libnsl2:i386 : Depends: libc6:i386 (>= 2.28) but it is not installable
 libnspr4:i386 : Depends: libc6:i386 (>= 2.30) but it is not installable
 libnss3:i386 : Depends: libc6:i386 (>= 2.28) but it is not installable
 libopenal1:i386 : Depends: libc6:i386 (>= 2.27) but it is not installable
                   Recommends: libpulse0:i386 (>= 0.99.1) but it is not installable
 libopenjp2-7:i386 : Depends: libc6:i386 (>= 2.29) but it is not installable
 liborc-0.4-0:i386 : Depends: libc6:i386 (>= 2.4) but it is not installable
 libp11-kit0:i386 : Depends: libc6:i386 (>= 2.28) but it is not installable
 libpcap0.8:i386 : Depends: libc6:i386 (>= 2.28) but it is not installable
 libpci3:i386 : Depends: libc6:i386 (>= 2.7) but it is not installable
 libpcre2-8-0:i386 : Depends: libc6:i386 (>= 2.4) but it is not installable
 libpcre3:i386 : Depends: libc6:i386 (>= 2.4) but it is not installable
 libperl5.32:i386 : Depends: libc6:i386 (>= 2.29) but it is not installable
 libpixman-1-0:i386 : Depends: libc6:i386 (>= 2.29) but it is not installable
 libpng16-16:i386 : Depends: libc6:i386 (>= 2.29) but it is not installable
 libpoppler-glib8:i386 : Depends: libc6:i386 (>= 2.4) but it is not installable
 libpoppler102 : Depends: libfontconfig1 (>= 2.12.6) but it is not installable
                 Depends: libnspr4 (>= 2:4.9-2~) but it is not installable
                 Depends: libnss3 (>= 2:3.16) but it is not installable
 libpoppler102:i386 : Depends: libc6:i386 (>= 2.29) but it is not installable
 libpsl5:i386 : Depends: libc6:i386 (>= 2.4) but it is not installable
 librtmp1 : Depends: libgmp10 but it is not installable
            Depends: libgnutls30 (>= 3.6.14) but it is not installable
 librtmp1:i386 : Depends: libc6:i386 (>= 2.7) but it is not installable
 libsamplerate0:i386 : Depends: libc6:i386 (>= 2.4) but it is not installable
 libsane1 : Depends: libavahi-client3 (>= 0.6.16) but it is not installable
            Depends: libavahi-common3 (>= 0.6.16) but it is not installable
            Recommends: sane-utils (>= 1.0.31-4.1)
            Recommends: ipp-usb
 libsane1:i386 : Depends: libc6:i386 (>= 2.29) but it is not installable
                 Recommends: sane-utils:i386 (>= 1.0.31-4.1)
                 Recommends: ipp-usb:i386
 libsasl2-2:i386 : Depends: libc6:i386 (>= 2.28) but it is not installable
                   Recommends: libsasl2-modules:i386 (>= 2.1.27+dfsg-2.1+deb11u1) but it is not installable
 libsasl2-modules-db:i386 : Depends: libc6:i386 (>= 2.4) but it is not installable
 libselinux1:i386 : Depends: libc6:i386 (>= 2.28) but it is not installable
 libsensors5:i386 : Depends: libc6:i386 (>= 2.29) but it is not installable
 libsndio7.0:i386 : Depends: libc6:i386 (>= 2.16) but it is not installable
 libsnmp40:i386 : Depends: libc6:i386 (>= 2.28) but it is not installable
 libsqlite3-0:i386 : Depends: libc6:i386 (>= 2.29) but it is not installable
 libssh2-1:i386 : Depends: libc6:i386 (>= 2.28) but it is not installable
 libssl1.1:i386 : Depends: libc6:i386 (>= 2.28) but it is not installable
 libstdc++6:i386 : Depends: libc6:i386 (>= 2.23) but it is not installable
 libtasn1-6:i386 : Depends: libc6:i386 (>= 2.4) but it is not installable
 libtiff5:i386 : Depends: libc6:i386 (>= 2.29) but it is not installable
 libtirpc3:i386 : Depends: libc6:i386 (>= 2.28) but it is not installable
 libudev1:i386 : Depends: libc6:i386 (>= 2.30) but it is not installable
 libunistring2:i386 : Depends: libc6:i386 (>= 2.7) but it is not installable
 libunwind8:i386 : Depends: libc6:i386 (>= 2.2.4) but it is not installable
 libusb-1.0-0:i386 : Depends: libc6:i386 (>= 2.28) but it is not installable
 libuuid1:i386 : Depends: libc6:i386 (>= 2.28) but it is not installable
 libva-drm2:i386 : Depends: libc6:i386 (>= 2.4) but it is not installable
 libva-x11-2:i386 : Depends: libc6:i386 (>= 2.1.3) but it is not installable
 libva2:i386 : Depends: libc6:i386 (>= 2.7) but it is not installable
               Recommends: va-driver-all:i386 but it is not installable or
                           va-driver:i386
 libvdpau1:i386 : Depends: libc6:i386 (>= 2.17) but it is not installable
                  Recommends: vdpau-driver-all:i386 but it is not installable or
                              vdpau-driver:i386
 libwebp6:i386 : Depends: libc6:i386 (>= 2.29) but it is not installable
 libwrap0:i386 : Depends: libc6:i386 (>= 2.11) but it is not installable
 libx11-6:i386 : Depends: libc6:i386 (>= 2.28) but it is not installable
 libxau6:i386 : Depends: libc6:i386 (>= 2.4) but it is not installable
 libxcb-render0:i386 : Depends: libc6:i386 (>= 2.4) but it is not installable
 libxcb-shm0:i386 : Depends: libc6:i386 (>= 2.4) but it is not installable
 libxcb1:i386 : Depends: libc6:i386 (>= 2.28) but it is not installable
 libxdmcp6:i386 : Depends: libc6:i386 (>= 2.4) but it is not installable
 libxext6:i386 : Depends: libc6:i386 (>= 2.4) but it is not installable
 libxfixes3:i386 : Depends: libc6:i386 (>= 2.4) but it is not installable
 libxml2:i386 : Depends: libc6:i386 (>= 2.29) but it is not installable
 libxpm4:i386 : Depends: libc6:i386 (>= 2.7) but it is not installable
 libxrender1:i386 : Depends: libc6:i386 (>= 2.4) but it is not installable
 libzstd1:i386 : Depends: libc6:i386 (>= 2.4) but it is not installable
 ocl-icd-libopencl1:i386 : Depends: libc6:i386 (>= 2.4) but it is not installable
 ucf : Depends: coreutils (>= 5.91)
 wine-stable-i386:i386 : Depends: libc6:i386 (>= 2.29) but it is not installable
                         Depends: libpulse0:i386 (>= 0.99.1) but it is not installable
                         Depends: libncurses6:i386 but it is not installable or
                                  libncurses5:i386 but it is not installable or
                                  libncurses:i386 but it is not installable
                         Recommends: libcapi20-3:i386 but it is not installable
                         Recommends: libcups2:i386 but it is not installable
                         Recommends: libglu1-mesa:i386 but it is not installable or
                                     libglu1:i386
                         Recommends: libgsm1:i386 but it is not installable
                         Recommends: libodbc1:i386 but it is not installable
                         Recommends: libosmesa6:i386 but it is not installable
                         Recommends: libsdl2-2.0-0:i386 but it is not installable
                         Recommends: libv4l-0:i386 but it is not installable
                         Recommends: libxcomposite1:i386 but it is not installable
                         Recommends: libxcursor1:i386 but it is not installable
                         Recommends: libxi6:i386 but it is not installable
                         Recommends: libxinerama1:i386 but it is not installable
                         Recommends: libxrandr2:i386 but it is not installable
                         Recommends: libxslt1.1:i386 but it is not installable
                         Recommends: libxxf86vm1:i386 but it is not installable
 zlib1g:i386 : Depends: libc6:i386 (>= 2.4) but it is not installable
E: Unable to correct problems, you have held broken packages.

之后,我查找了一些解决方案,看到有人建议使用,aptitude因为它可以帮助解决问题,所以我安装了它并尝试使用winehq-stable它进行安装,得到了这个:

The following NEW packages will be installed:
  winehq-stable{b} 
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,924 B of archives. After unpacking 74.8 kB will be used.
The following packages have unmet dependencies:
 winehq-stable : Depends: wine-stable (= 7.0.1~bullseye-1) but it is not installable
The following actions will resolve these dependencies:

     Keep the following packages at their current version:
1)     winehq-stable [Not Installed]                      



Accept this solution? [Y/n/q/?] 

显然我不会接受这个解决方案,因为我想安装 Wine,所以我输入n并得到了这个:

(字数限制,速发链接:https://hst.sh/comobabugi.yaml

现在,正如我上面所说的,我不是 Linux 专家,但是它想要删除的一些软件包可能很重要,这就是我所想知道的 - 这是否可以解决我安装 Wine 的问题,接受这个解决方案是否安全?

请注意:我还运行 Pi-hole(带有 Web 界面)和 Wireguard 服务器。

答案1

这是非常基础的,但是既然您的包裹已经损坏,您已经尝试过了吗?

apt --fix-broken install

这应该尝试修复损坏的软件包,直到你解决这个问题,apt 将不允许你继续(至少是安全的)

如果你试过的话。哪些包坏了?

相关内容