Ma esiste il file che cerca? Viene citato anche in fondo al tuo messaggio.
Ciao a tutti,
sto provando ad installare postgresql-11 su una raspbian (che in verità
è una yunohost) ma ho il seguente errore:
root@cybervalley:~# apt install postgresql-11 [24/703]
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
postgresql-11
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/13.3 MB of archives.
After this operation, 43.5 MB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously unselected package postgresql-11.
(Reading database ... 63840 files and directories currently installed.)
Preparing to unpack .../postgresql-11_11.9-0+deb10u1_armhf.deb ...
Unpacking postgresql-11 (11.9-0+deb10u1) ...
Setting up postgresql-11 (11.9-0+deb10u1) ...
Configuring already existing cluster (configuration: /etc/postgresql/11/main, da
ta: /var/lib/postgresql/11/main, owner: 123:129)
Error: move_conffile: required configuration file /var/lib/postgresql/11/main/po
stgresql.conf does not exist
Error: could not create default cluster. Please create it manually with
pg_createcluster 11 main --start
or a similar command (see 'man pg_createcluster').
update-alternatives: using /usr/share/postgresql/11/man/man1/postmaster.1.gz to
provide /usr/share/man/man1/postmaster.1.gz (postmaster.1.gz) in auto mode
Processing triggers for postgresql-common (200+deb10u4) ...
supported-versions: WARNING! Unknown distribution: raspbian
debian found in ID_LIKE, treating as Debian
Building PostgreSQL dictionaries from installed myspell/hunspell packages...
Removing obsolete dictionary files:
Se poi provo a dare il comando suggerito ho questo errore:
root@cybervalley:~# pg_createcluster 11 main --start
Configuring already existing cluster (configuration: /etc/postgresql/11/main, da
ta: /var/lib/postgresql/11/main, owner: 123:129)
Error: move_conffile: required configuration file /var/lib/postgresql/11/main/po
stgresql.conf does not exist
Come posso risolvere?
--
Ciao
leandro