如何修复 Ubuntu 20.04 上 libgtk-3-dev 未满足的依赖关系?

如何修复 Ubuntu 20.04 上 libgtk-3-dev 未满足的依赖关系?

我正在尝试安装 wxWidgets,并且在安装指南他们提到在 Ubuntu 上我需要 libgtk-3-dev 包。

但是,当我尝试使用

sudo apt-get install libgtk-3-dev

我收到以下错误:

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:
 libgtk-3-dev : Depends: gir1.2-gtk-3.0 (= 3.24.18-1ubuntu1) but 3.24.20-0ubuntu1 is to be installed
                Depends: libatk-bridge2.0-dev but it is not going to be installed
                Depends: libcairo2-dev (>= 1.14.0) but it is not going to be installed
                Depends: libegl1-mesa-dev but it is not going to be installed
                Depends: libepoxy-dev (>= 1.0) but it is not going to be installed
                Depends: libfontconfig1-dev but it is not going to be installed
                Depends: libpango1.0-dev (>= 1.41) but it is not going to be installed
                Depends: libgtk-3-0 (= 3.24.18-1ubuntu1) but 3.24.20-0ubuntu1 is to be installed

该命令退出并出现以下错误 100:E: Unable to correct problems, you have held broken packages.

我需要采取什么步骤来纠正这个问题?

相关内容