Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
lesstif2 : Depends: libxp6 but it is not installable
postgresql-client-common : Depends: pgdg-keyring but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution
问题描述:
ubuntu使用”apt-get install“安装程序时遇到错误提示
you might want to run 'apt-get -f install' to correct these
解决方案:
使用如下命令修复安装包(不过在我遇到的问题中没有起作用)
$ sudo apt-get --fix-broken install
或者使用命令
$ sudo dpkg --purge xxx
其中xxx为安装失败的程序,错误提示中会给出其名称,不过也有可能是错误提示中未给出的,但之前安装的确出错的程序。