我无法安装 wine32,因为未满足已安装软件包的依赖关系

我无法安装 wine32,因为未满足已安装软件包的依赖关系

我想安装 wine32,但不知为何出现了这样的情况:

Reading package lists...
Building dependency tree...
Reading state information...
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:
 apt : Depends: adduser but it is not going to be installed
       Recommends: ca-certificates but it is not going to be installed
 init : PreDepends: systemd-sysv
 libkf5pulseaudioqt3 : Depends: libqt5gui5 (>= 5.15.0~) but it is not going 
to be installed or
                                libqt5gui5-gles (>= 5.15.0~) but it is not 
going to be installed
 login : PreDepends: libpam-runtime but it is not going to be installed
         PreDepends: libpam-modules but it is not going to be installed
 pdftk-java : Depends: default-jre-headless but it is not going to be 
installed or
                       java8-runtime-headless
 qt5-image-formats-plugins : Depends: libqt5gui5 (>= 5.15.3+dfsg~) but it is 
not going to be installed or
                                      libqt5gui5-gles (>= 5.15.3+dfsg~) but 
it is not going to be installed
 shim-signed : Depends: mokutil (>= 0.3.0+1538710437.fb6250f-0ubuntu2) but it 
is not going to be installed
               Depends: sbsigntool but it is not going to be installed
               Recommends: secureboot-db but it is not going to be installed

我已经安装了这些软件包,但仍然出现此问题。我做错了什么?

答案1

安装 aptitude (通过检查并提示安装未满足的依赖项来安装):

sudo apt install aptitude

使用它来代替apt 安装如果需要满足您尚未确定的依赖项。还可以使用它来检查更新:

sudo aptitude update

如果之后您仍然遇到问题,请使用以下命令清除当前安装的 wine:

sudo aptitude purge wine

在重新安装 wine 之前,您需要知道您的 Ubuntu 发行版本。Ubuntu 在其默认存储库中提供 wine-stable。如果您更喜欢使用 wine 的最新版本,则必须添加存储库并安装所需的版本 (stable-development-staging),如上所述葡萄酒总部取决于你的发行版。

相关内容