在 Ubuntu 中安装 python-kivy 包时出错

在 Ubuntu 中安装 python-kivy 包时出错

我无法安装 python-kivy,出现此错误:

dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 127
Processing triggers for libreoffice-common ...

Errors were encountered while processing:
 /var/cache/apt/archives/update-manager-core_1%3a0.156.14.15_amd64.deb
 /var/cache/apt/archives/update-manager_1%3a0.156.14.15_all.deb
 /var/cache/apt/archives/python-uno_1%3a3.5.7-0ubuntu6.1_amd64.deb
 /var/cache/apt/archives/python-ubuntuone-client_3.0.2-0ubuntu2.2_all.deb
 /var/cache/apt/archives/python-libxml2_2.7.8.dfsg-5.1ubuntu4.9_amd64.deb
 /var/cache/apt/archives/python-lxml_2.3.2-1_amd64.deb

E: Sub-process /usr/bin/dpkg returned an error code (1)

答案1

您需要强制覆盖软件包,这个问题与存储库有关

sudo dpkg -i --force-overwrite <filename>

然后运行 ​​dpkg

sudo apt-get -f install

有关 dpkg 的更多帮助以及获取有关此错误的更多帮助

相关内容