无法安装 PostgreSQL

无法安装 PostgreSQL

我正在尝试在 Ubuntu 上安装 postgresql。我尝试使用以下命令进行安装:

apt-get install postgresql

其结果是

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed: postgresql  
0 upgraded, 1 newly installed, 0 to remove and 48 not upgraded.  
Need to get 0B/23.2kB of archives.  
After this operation, 57.3kB of additional disk space will be used.    
debconf: delaying package configuration, since apt-utils is not installed  
Selecting previously deselected package postgresql.  
(Reading database ... 42866 files and directories currently installed.)  
Unpacking postgresql (from .../postgresql_8.4.9-0ubuntu0.10.04_all.deb) ...
Setting up postgresql (8.4.9-0ubuntu0.10.04) ...

但是 postgresql 没有正确安装。我尝试清除并重新安装它。但我找不到解决方案。我无法在 /etc/init.d 下找到 postgres。

答案1

postgresql包只是一个微小的过渡包,其对真实包具有依赖性。

postgresql-8.4是真正的包,安装了吗?(应该是,因为你安装的包依赖于它)。

此外,postgresql 似乎没有 init.d 脚本。尝试:

service postgresql start

答案2

有一条线

debconf: delaying package configuration, since apt-utils is not installed

这可能会阻止 PostgreSQL 和其他软件包的完整配置,因此您也应该安装它:apt-utils 安装 apt-utils

相关内容