我使用 Ubuntu 12.04 并刚刚运行
sudo apt-get upgrade
...并最终收到此错误消息......
dpkg: dependency problems prevent configuration of postgresql-9.1:
postgresql-client-9.1 (9.1.7-0ubuntu12.04) breaks postgresql-9.1 (<< 9.1.7-0ubuntu12.04) and is installed.
Version of postgresql-9.1 to be configured is 9.1.6-1~precise2.
dpkg: error processing postgresql-9.1 (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
Errors were encountered while processing:
postgresql-9.1
E: Sub-process /usr/bin/dpkg returned an error code (1)
我发现这是一个依赖问题,但我不知道如何解决它 ...我运行了sudo apt-get -f install并且它没有解决任何问题......
旁注:我从存储库ppa中安装了postgres:pitti / postgresql,如果这在某种程度上很重要。