Jay*_*rrr 2 package-management apt wine dependencies
当我尝试在 Ubuntu 20.04.2 LTS 上安装 wine 时,出现以下错误:
jayden@UbuntuInstall:~$ sudo apt install --install-recommends winehq-stable
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-stable : Depends: wine-stable (= 6.0.1~hirsute-1)
E: Unable to correct problems, you have held broken packages.
Run Code Online (Sandbox Code Playgroud)
我尝试安装此依赖项,然后收到另一个错误,提示我需要更多依赖项。
jayden@UbuntuInstall:~$ sudo apt install wine-stable
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-stable : Depends: libc6 (>= 2.33) but 2.31-0ubuntu9.2 is to be installed
Depends: wine-stable-i386 (= 6.0.1~hirsute-1)
Depends: wine-stable-amd64 (= 6.0.1~hirsute-1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Run Code Online (Sandbox Code Playgroud)
当我深入研究时,我不断收到更多缺少依赖项的错误。我也不知道如何删除损坏的包裹,因为我尝试过的所有方法都不起作用。
我不知道如何获得适用于 20.04 的旧版本 wine,因为这可能是问题所在。
有谁知道我该如何解决这个问题。
小智 5
为了从 WineHQ 安装 Wine,您需要按照https://wiki.winehq.org/Ubuntu中的说明进行操作。
您需要确保添加正确系统版本的存储库,这似乎是您的情况的问题。检查 中的文件/etc/apt/sources.list.d/,找到包含 Wine 存储库的文件,并将其中所有出现的 替换hirsute为focalUbuntu 20.04 的情况(您可以使用命令 验证您正在使用的版本的名称lsb_release --codename)。
除此之外,请确保您执行以下操作:
sudo apt update && sudo apt upgrade
Run Code Online (Sandbox Code Playgroud)
在安装任何新软件包之前,请确保过时的软件包在安装新软件包期间不会导致任何问题。例如,对新包的依赖项可能会引用新版本的依赖项,而apt如果不更新,则不会知道这些依赖项的新版本,从而导致相同的错误。
| 归档时间: |
|
| 查看次数: |
14701 次 |
| 最近记录: |