由于许多未满足的依赖项和隐藏的损坏包,安装 libgl1-mesa-dri:i386 时出现问题

由于许多未满足的依赖项和隐藏的损坏包,安装 libgl1-mesa-dri:i386 时出现问题

我一直尝试在 Ubuntu 16.04 LTS 上安装 Steam。当我运行:

sudo apt install steam

我得到以下信息:

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:
steam:i386 : Depends: libgl1-mesa-dri:i386 but it is not going to be 
installed
          Depends: libgl1-mesa-glx:i386 but it is not going to be 
installed
E: Unable to correct problems, you have held broken packages.

没什么大不了的,我尝试安装单独的包(sudo dpkg --add-architecture i386在运行这些命令之前我已经运行过了):

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:
 appmenu-qt5 : Depends: libqt5gui5 (>= 5.5.0) but it is not going to be installed or
                        libqt5gui5-gles (>= 5.5.0) but it is not going to be installed
 libcontent-hub0 : Depends: libqt5gui5 (>= 5.0.2) but it is not going to be installed or
                            libqt5gui5-gles (>= 5.0.2) but it is not going to be installed
 liboxideqtcore0 : Depends: libqt5gui5 (>= 5.4.0) but it is not going to be installed or
                            libqt5gui5-gles (>= 5.4.0) but it is not going to be installed
 liboxideqtquick0 : Depends: libqt5gui5 (>= 5.0.2) but it is not going to be installed or
                             libqt5gui5-gles (>= 5.0.2) but it is not going to be installed
                    Depends: libqt5quick5 (>= 5.2.0) but it is not going to be installed or
                             libqt5quick5-gles (>= 5.2.0) but it is not going to be installed
 libqmenumodel0 : Depends: libqt5gui5 (>= 5.0.2) but it is not going to be installed or
                           libqt5gui5-gles (>= 5.0.2) but it is not going to be installed
 libqt5multimedia5 : Depends: libqt5gui5 (>= 5.2.0) but it is not going to be installed or
                              libqt5gui5-gles (>= 5.2.0) but it is not going to be installed
 libqt5multimediaquick-p5 : Depends: libqt5gui5 (>= 5.0.2) but it is not going to be installed or
                                     libqt5gui5-gles (>= 5.0.2) but it is not going to be installed
                            Depends: libqt5quick5 (>= 5.4.0) but it is not going to be installed or
                                     libqt5quick5-gles (>= 5.4.0) but it is not going to be installed
 libqt5printsupport5 : Depends: libqt5gui5 (>= 5.3.0) but it is not going to be installed or
                                libqt5gui5-gles (>= 5.3.0) but it is not going to be installed
 libqt5waylandclient5 : Depends: libqt5gui5 (>= 5.5.0) but it is not going to be installed or
                                 libqt5gui5-gles (>= 5.5.0) but it is not going to be installed
 libqt5widgets5 : Depends: libqt5gui5 (>= 5.5.0) but it is not going to be installed or
                           libqt5gui5-gles (>= 5.5.0) but it is not going to be installed
 libqt5x11extras5 : Depends: libqt5gui5 (>= 5.0.2) but it is not going to be installed or
                             libqt5gui5-gles (>= 5.0.2) but it is not going to be installed
 libthumbnailer-qt1.0 : Depends: libqt5gui5 (>= 5.0.2) but it is not going to be installed or
                                 libqt5gui5-gles (>= 5.0.2) but it is not going to be installed
 libubuntugestures5 : Depends: libqt5gui5 (>= 5.0.2) but it is not going to be installed or
                               libqt5gui5-gles (>= 5.0.2) but it is not going to be installed
                      Depends: libqt5quick5 (>= 5.0.2) but it is not going to be installed or
                               libqt5quick5-gles (>= 5.0.2) but it is not going to be installed
 libubuntutoolkit5 : Depends: libqt5gui5 (>= 5.0.2) but it is not going to be installed or
                              libqt5gui5-gles (>= 5.0.2) but it is not going to be installed
 qml-module-io-thp-pyotherside : Depends: libqt5gui5 (>= 5.0.2) but it is not going to be installed or
                                          libqt5gui5-gles (>= 5.0.2) but it is not going to be installed
                                 Depends: libqt5quick5 (>= 5.0.2) but it is not going to be installed or
                                          libqt5quick5-gles (>= 5.0.2) but it is not going to be installed
 qml-module-qtquick-layouts : Depends: libqt5gui5 (>= 5.5.0) but it is not going to be installed or
                                       libqt5gui5-gles (>= 5.5.0) but it is not going to be installed
                              Depends: libqt5quick5 (>= 5.2.0) but it is not going to be installed or
                                       libqt5quick5-gles (>= 5.2.0) but it is not going to be installed
 qml-module-ubuntu-layouts : Depends: libqt5quick5 (>= 5.0.2) but it is not going to be installed or
                                      libqt5quick5-gles (>= 5.0.2) but it is not going to be installed
 qml-module-ubuntu-thumbnailer0.1 : Depends: libqt5gui5 (>= 5.0.2) but it is not going to be installed or
                                             libqt5gui5-gles (>= 5.0.2) but it is not going to be installed
                                    Depends: libqt5quick5 (>= 5.5.0) but it is not going to be installed or
                                             libqt5quick5-gles (>= 5.5.0) but it is not going to be installed
 qmlscene : Depends: libqt5gui5 (>= 5.3.0) but it is not going to be installed or
                     libqt5gui5-gles (>= 5.3.0) but it is not going to be installed
            Depends: libqt5quick5 (>= 5.3.0) but it is not going to be installed or
                     libqt5quick5-gles (>= 5.3.0) but it is not going to be installed
 va-driver-all : Depends: vdpau-va-driver but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

我尝试过sudo apt-get update-f install但也没有用。我意识到这些软件包(appmenu-qt5、libcontent-hub0 等)的最新版本已经安装。我没有损坏的软件包,因为我已经使用 Synaptic 进行了验证。

我不知道如何修复这个错误。

答案1

这和我的问题很相似。

The following packages have unmet dependencies:
steam:i386 : Depends: libgl1-mesa-dri:i386 but it is not going to be 

尝试安装时libgl1-mesa-dri出现此错误

the following packages have unmet dependencies:
 libgl1-mesa-dri:i386 : Depends: libgcrypt20:i386 (>= 1.7.0) but it is not going to be installed

然后我尝试安装libgcrypt20:i386但再次收到未满足的依赖性错误。

为了解决这个问题,我手动下载并安装了 libgcrypt20 (1.7.8-2) (最新版本)此 Debian 软件包档案

然后我就可以安装这个libgcrypt20:i386包了

sudo apt-get install -f
sudo apt-get install libgcrypt20:i386

然后,我就可以在我的 Debian Stretch 上运行从 steam 官方网站手动下载的已安装的 steam。

sudo apt-get install steam

答案2

我在安装 zoom 时遇到了同样的错误,因此我按照 nokieng 的步骤从以下网址下载了 libcrypthttps://packages.debian.org/sid/libgcrypt20。然后我这样做了sudo dpkg -i libcrypt01。然后我sudo apt-get install -f这样做了之后我这样做了sudo dpkg -i zoom_amd64.deb,zoom 安装成功了。

相关内容