安装 pygtk2 时出错 - Ubuntu 16.04

安装 pygtk2 时出错 - Ubuntu 16.04

我正在尝试使用以下命令在 Ubuntu 16.04.6 LTS 上安装 pygtk

sudo apt-get install python-gtk2-dev

但是,无论我做什么,我都会收到以下错误:

Selecting previously unselected package python-gtk2-dev.
(Reading database ... 490710 files and directories currently installed.)
Preparing to unpack .../python-gtk2-dev_2.24.0-4ubuntu1_all.deb ...
Unpacking python-gtk2-dev (2.24.0-4ubuntu1) ...
Setting up python-gtk2-dev (2.24.0-4ubuntu1) ...
dpkg: error processing package python-gtk2-dev (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 python-gtk2-dev
E: Sub-process /usr/bin/dpkg returned an error code (1)

我尝试过如下解决方案这里,但无济于事。我该如何修复这个问题并安装 pygtk?

相关内容