如何在 ubuntu 14.04 中安装包?

如何在 ubuntu 14.04 中安装包?

当我必须安装某些东西时就会出现这种情况:

dpkg: error processing package libgtk2-gladexml-perl (--purge):

 package is in a very bad inconsistent state; you should
 reinstall it before attempting a removal
Errors were encountered while processing:

libgtk2-gladexml-perl 

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

答案1

直接从 .deb 文件重新安装软件包:

sudo dpkg -i /var/cache/apt/archives/libgtk2-gladexml-perl_version.deb

使用Tab 补全,因为 .deb 文件另外还带有版本号!


现在,更新您的系统:

sudo apt-get update
sudo apt-get upgrade

相关内容