我正在使用 Ubuntu Budgie 17.10 64 位。当尝试通过EDB 安装程序安装 PostgreSQL 9.6时,它失败了post-install step
:
下面是日志文件的那部分,其中出现了问题。
Initialising the database cluster (this may take a few minutes)...
Executing /opt/PostgreSQL/9.6/installer/server/initcluster.sh "postgres" "postgres" "/opt/PostgreSQL/9.6" "/opt/PostgreSQL/9.6/data" 5432 ru_UA.utf8
Script exit code: 1
Script output:
Failed to initialise the database cluster with initdb
Script stderr:
mkdir: cannot create directory ‘/opt/PostgreSQL/9.6/.config’: Permission denied
touch: cannot touch '/opt/PostgreSQL/9.6/.config/budgie-desktop/firstrun': No such file or directory
-su: 28: /etc/profile.d/10-budgie-desktop.sh: Syntax error: word unexpected (expecting ")")
Error running /opt/PostgreSQL/9.6/installer/server/initcluster.sh "postgres" "postgres" "/opt/PostgreSQL/9.6" "/opt/PostgreSQL/9.6/data" 5432 ru_UA.utf8: mkdir: cannot create directory ‘/opt/PostgreSQL/9.6/.config’: Permission denied
touch: cannot touch '/opt/PostgreSQL/9.6/.config/budgie-desktop/firstrun': No such file or directory
-su: 28: /etc/profile.d/10-budgie-desktop.sh: Syntax error: word unexpected (expecting ")")
Problem running post-install step. Installation may not complete correctly
The database cluster initialisation failed.
备注:
- 安装程序以
root
特权启动(如果不是,它会在启动时引发错误)。 - 安装失败后,
/opt/PostgreSQL/9.6
目录存在。
如何在没有 EDB 安装程序的情况下完成集群初始化?如何修复安装程序?报告 EDB 安装程序问题的正确方法是什么?