我已经检查了网上的所有其他答案和教程,但当我尝试安装 wine32 时仍然收到相同的消息:
\ncybnom@cybnom1:~$ sudo apt-get install wine32\nReading package lists... Done\nBuilding dependency tree \nReading state information... Done\nSome packages could not be installed. This may mean that you have\nrequested an impossible situation or if you are using the unstable\ndistribution that some required packages have not yet been created\nor been moved out of Incoming.\nThe following information may help to resolve the situation:\n\nThe following packages have unmet dependencies:\n wine32:i386 : Depends: libwine:i386 (= 5.0-3ubuntu1) but it is not going to be installed\nE: Unable to correct problems, you have held broken packages.\nRun Code Online (Sandbox Code Playgroud)\n我尝试深入了解依赖项列表,但所有 i386 库似乎都丢失并且无法安装。能力没有帮助。我清除了我的sources.list并使用了官方的干净列表,但没有效果。wine64 安装完美,但我需要 32 位版本来运行我用于音乐制作的大多数 VST。
\n我很感激任何帮助。
\n更新
\n正如下面的评论所示,以下是我尝试按照https://wiki.winehq.org/Ubuntu上的说明进行操作时的结果:
\ncybnom@cybnom1:~$ sudo dpkg --add-architecture i386 \ncybnom@cybnom1:~$ wget -nc https://dl.winehq.org/wine-builds/winehq.key\nFile \xe2\x80\x98winehq.key\xe2\x80\x99 already there; not retrieving.\n\ncybnom@cybnom1:~$ sudo apt-key add winehq.key\nOK\ncybnom@cybnom1:~$ sudo add-apt-repository \'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main\'\nHit:1 http://dl.google.com/linux/chrome/deb stable InRelease\nHit:2 https://dl.winehq.org/wine-builds/ubuntu focal InRelease \nHit:3 http://archive.canonical.com/ubuntu focal InRelease \nHit:4 http://archive.ubuntu.com/ubuntu focal InRelease\nHit:5 http://archive.ubuntu.com/ubuntu focal-updates InRelease\nHit:6 http://archive.ubuntu.com/ubuntu focal-security InRelease\nHit:7 http://archive.ubuntu.com/ubuntu focal-backports InRelease\nReading package lists... Done\ncybnom@cybnom1:~$ sudo apt update\nHit:1 https://dl.winehq.org/wine-builds/ubuntu focal InRelease\nHit:2 http://dl.google.com/linux/chrome/deb stable InRelease \nHit:3 http://archive.ubuntu.com/ubuntu focal InRelease \nHit:4 http://archive.canonical.com/ubuntu focal InRelease\nHit:5 http://archive.ubuntu.com/ubuntu focal-updates InRelease\nHit:6 http://archive.ubuntu.com/ubuntu focal-security InRelease\nHit:7 http://archive.ubuntu.com/ubuntu focal-backports InRelease\nReading package lists... Done\nBuilding dependency tree \nReading state information... Done\nAll packages are up to date.\ncybnom@cybnom1:~$ sudo apt install --install-recommends winehq-stable\nReading package lists... Done\nBuilding dependency tree \nReading state information... Done\nSome packages could not be installed. This may mean that you have\nrequested an impossible situation or if you are using the unstable\ndistribution that some required packages have not yet been created\nor been moved out of Incoming.\nThe following information may help to resolve the situation:\n\nThe following packages have unmet dependencies:\n winehq-stable : Depends: wine-stable (= 5.0.2~focal)\nE: Unable to correct problems, you have held broken packages.\nRun Code Online (Sandbox Code Playgroud)\n更新2
\n无法纠正问题,已向我推荐您持有损坏的软件包,但没有dpkg --get-selections | grep hold返回任何内容,并且突触中没有损坏的软件包:
更新3
\n我尝试查看依赖关系树并明确询问 i386 软件包是否已安装。当我尝试安装 libpcre-2-8-0 时发生这种情况:
\ncybnom@cybnom1:/etc/apt/sources.list.d$ sudo apt install libpcre2-8-0:i386\nReading package lists... Done\nBuilding dependency tree \nReading state information... Done\nSome packages could not be installed. This may mean that you have\nrequested an impossible situation or if you are using the unstable\ndistribution that some required packages have not yet been created\nor been moved out of Incoming.\nThe following information may help to resolve the situation:\n\nThe following packages have unmet dependencies:\n dictionaries-common : Depends: debconf (>= 1.5.5) but it is not going to be installed or\n debconf-2.0\n Depends: libtext-iconv-perl but it is not going to be installed\nE: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.\nRun Code Online (Sandbox Code Playgroud)\n但 debconf 和 dictionaries-common 都安装在最新版本中:
\ncybnom@cybnom1:/etc/apt/sources.list.d$ sudo apt install debconf\nReading package lists... Done\nBuilding dependency tree \nReading state information... Done\ndebconf is already the newest version (1.5.73).\n0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.\ncybnom@cybnom1:/etc/apt/sources.list.d$ sudo apt install dictionaries-common\nReading package lists... Done\nBuilding dependency tree \nReading state information... Done\ndictionaries-common is already the newest version (1.28.1).\n0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.\nRun Code Online (Sandbox Code Playgroud)\n它们甚至没有被列为 libpcre2-8-0 的依赖项。我尝试重新安装 debconf,但没有成功。我已经清理了所有的 repo 源,所以它现在看起来像官方焦点列表,加上 vscode 和 chrome。我确认我可以安装其他 i386 库,因此它是特定于 wine32 依赖项的东西。另一个奇怪的是,当我使用 synaptic 要求安装 wine32 时,它会将 git 标记为删除(???)。
\n至此,我正在认真考虑尝试重新安装 20.04 LTS,但我推迟了,因为我目前确实没有空间来备份所有文件,而这是我的工作计算机,我用它来备份所有文件。如果不能正常工作,就无法承受超过一天的时间。
\n有什么解决方法吗?除了 LMMS 中的 VST 之外,我实际上并没有使用 wine 来做任何事情,但它们对我来说非常重要。再次强调,任何帮助都值得赞赏。
\n所以,我在这里破解了代码,希望这对其他人有帮助:
\n事实证明,整个问题在于某些依赖项是 i386,其编号与已安装的 amd64 等效项不同。就我而言,它是 libpcre2-8-0 (安装了 amd64 10.35 版本)和 libgd3。我只是将它们降级到相同的可用 i386 版本号(我用 apt-cache 策略检查了它们)并voil\xc3\xa0,安装了 wine32,没有问题。
\n我在 ubuntu 20.04 上使用 wine32 时遇到了类似的问题。就我而言,问题是由 ubuntu 团队发布然后删除的更新引起的,请检查此错误 \xe2\x80\x94 https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/ 1926918。由于默认情况下 apt 不想降级软件包,因此它拒绝安装 wine32 (这取决于旧软件包)
\n因此,我所要做的就是降级所有使用版本 2.31-0ubuntu9.3 的软件包:
\n$ dpkg -l | grep 2.31-0ubuntu9.3 \nii libc-bin 2.31-0ubuntu9.3 amd64 GNU C Library: Binaries\nii libc6:amd64 2.31-0ubuntu9.3 amd64 GNU C Library: Shared libraries\nii libc6:i386 2.31-0ubuntu9.3 i386 GNU C Library: Shared libraries\nii libc6-dbg:amd64 2.31-0ubuntu9.3 amd64 GNU C Library: detached debugging symbols\nii locales 2.31-0ubuntu9.3 all GNU C Library: National Language (locale) data [support]\n\n$ apt install libc-bin=2.31-0ubuntu9.2 libc6:amd64=2.31-0ubuntu9.2 libc6:i386=2.31-0ubuntu9.2 libc6-dbg:amd64=2.31-0ubuntu9.2 locales=2.31-0ubuntu9.2\nRun Code Online (Sandbox Code Playgroud)\n这个依赖问题可能会随着新的更新而消失(当 ubuntu 团队发布版本 2.31-0ubuntu9.4 或更高版本时)
\n