在postgreSQL中安装odoo10时,我收到了这个错误:
root@aboorva:~# sudo apt-get install postgresql-9.6
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
postgresql-9.6 : Depends: postgresql-common (>= 171~) but it is not going to be installed
Depends: libsystemd0 but it is not installable
Recommends: postgresql-contrib-9.6 but it is not going to be installed
Recommends: sysstat but it is not going to be installed
E: Unable to correct problems, you have held broken packages.发布于 2016-12-16 14:32:37
它告诉您,您的系统库不允许您安装该版本的postgres,因为您在安装时要求提供特定的版本。
如果您只想要postgres而不关心特定的版本,请尝试:
sudo apt-get install postgres如果您想要这个特定的版本,并且需要它,您需要删除libsystem0包,以及保持它安装的任何东西。
您的系统也有可能下载和升级了其中一些包,或者在进行包更新时被停止。在这种情况下,您应该运行此命令来安装等待处理的任何丢失的包:
sudo apt-get install -f还值得注意的是,在尝试安装新的postgres之前,您可能希望删除任何版本的postgres:
sudo apt-get remove postgres*https://askubuntu.com/questions/861253
复制相似问题