Постустановочный этап программы установки PostgreSQL завершился неудачно
Я использую Ubuntu Budgie 17.10 64bit. При попытке установить PostgreSQL 9.6 с помощью установщика EDB, он не работает 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?