Pet*_*ett 7 server apt postgresql 12.04
我sudo apt-get upgrade在我的 12.04 服务器上运行,并且我已经被 PostgreSQL 依赖所困扰。
控制台输出(的sudo apt-get -f install)如下:
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 the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
postgresql-9.1
E: Sub-process /usr/bin/dpkg returned an error code (1)
Run Code Online (Sandbox Code Playgroud)
我该如何解决这个问题?
备注 我有一个在这台服务器上运行的生产数据库,所以清除/重新安装 postgres 是最后的手段。
编辑:
根据要求,输出apt-get update:http : //paste.ubuntu.com/1469631/
小智 9
我在这个 postgresql 更新中遇到了同样的问题。
postgres 的最新版本是 9.1.7,由于某种原因 9.1.6 不在存储库中,所以这里是我降级到 9.1.5 的方法:
sudo apt-get -V install postgresql-client-9.1=9.1.5-0ubuntu12.04
sudo apt-get -V install postgresql-9.1=9.1.5-0ubuntu12.04
Run Code Online (Sandbox Code Playgroud)
请注意,我首先降级为客户端。最新更新中似乎存在一个错误,导致客户端和服务器之间的依赖关系错误。
编辑:如果您想防止 postgresql 将来升级,请参阅此页面:https : //help.ubuntu.com/community/PinningHowto。请务必将此方法应用于客户端和服务器。
| 归档时间: |
|
| 查看次数: |
6432 次 |
| 最近记录: |