所以我目前正在运行 Debian 9 64 位 LINUX 版本(用于一些背景)。
我已经安装了 unixODBC(编译为 32 位)并且odbc-postgresql:i386
,现在最后一步应该是安装实际的postgresql-9.6 rdms
.
我试图通过对 apt-get 的简单尝试和真实调用来完成此任务...
sudo apt-get install postgresql-9.6:i386
不幸的是,我得到了一些未满足的依赖关系,如下所示......
root@linux2:/home/jeremyn/unixODBC-2.3.0# sudo apt-get install postgresql-
9.6:i386
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:i386 : Depends: locales:i386 but it is not installable
Depends: libsystemd0:i386 but it is not going to be installed
Recommends: postgresql-contrib-9.6:i386 but it is not going to be installed
Recommends: sysstat:i386 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
通常这将是一个小问题,我只需安装必要的依赖项,但问题似乎从这里开始级联......
Package locales:i386 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
libc-l10n
E: Package 'locales:i386' has no installation candidate
我也尝试过安装libc-l10n
,但同样只会导致进一步的问题。有没有人遇到过这个问题并找到了在 Debian 9 版本上安装 postgresql-9.6:i386 的方法?
答案1
我非常怀疑安装32位版本的PostgreSQL服务器会有什么不同。无论如何,由于涉及locales
软件包的各种问题(请参阅这个错误了解详情),您将无法postgresql-9.6:i386
在系统上安装amd64
;除了在没有依赖关系的情况下自行重建软件包之外,没有其他解决方法locales
。
总而言之,请改为安装postgresql-9.6
,或在 32 位 Debian 安装上重试。