sudo apt-get install postgresql-15
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libcommon-sense-perl libjson-perl libjson-xs-perl libtypes-serialiser-perl 
postgresql-client-15 postgresql-client-common postgresql-common
  sysstat
Suggested packages:
  postgresql-doc-15 isag
The following NEW packages will be installed:
  libcommon-sense-perl libjson-perl libjson-xs-perl libtypes-serialiser-perl 
postgresql-15 postgresql-client-15 postgresql-client-common
  postgresql-common sysstat
0 upgraded, 9 newly installed, 0 to remove and 4 not upgraded.
Need to get 0 B/18.6 MB of archives.
After this operation, 52.5 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
Selecting previously unselected package libjson-perl.
(Reading database ... 301453 files and directories currently installed.)
Preparing to unpack .../0-libjson-perl_4.10000-1_all.deb ...
Unpacking libjson-perl (4.10000-1) ...
Selecting previously unselected package postgresql-client-common.
Preparing to unpack .../1-postgresql-client-common_248_all.deb ...
Unpacking postgresql-client-common (248) ...
Selecting previously unselected package postgresql-common.
Preparing to unpack .../2-postgresql-common_248_all.deb ...
Adding 'diversion of /usr/bin/pg_config to /usr/bin/pg_config.libpq-dev by 
postgresql-common'
Unpacking postgresql-common (248) ...
Selecting previously unselected package libcommon-sense-perl:amd64.
Preparing to unpack .../3-libcommon-sense-perl_3.75-3_amd64.deb ...
Unpacking libcommon-sense-perl:amd64 (3.75-3) ...
Selecting previously unselected package libtypes-serialiser-perl.
Preparing to unpack .../4-libtypes-serialiser-perl_1.01-1_all.deb ...
Unpacking libtypes-serialiser-perl (1.01-1) ...
Selecting previously unselected package libjson-xs-perl.
Preparing to unpack .../5-libjson-xs-perl_4.030-2_amd64.deb ...
Unpacking libjson-xs-perl (4.030-2) ...
Selecting previously unselected package postgresql-client-15.
Preparing to unpack .../6-postgresql-client-15_15.5-0ubuntu0.23.04.1_amd64.deb 
...
Unpacking postgresql-client-15 (15.5-0ubuntu0.23.04.1) ...
Selecting previously unselected package postgresql-15.
Preparing to unpack .../7-postgresql-15_15.5-0ubuntu0.23.04.1_amd64.deb ...
Unpacking postgresql-15 (15.5-0ubuntu0.23.04.1) ...
Selecting previously unselected package sysstat.
Preparing to unpack .../8-sysstat_12.6.1-1ubuntu0.1_amd64.deb ...
Unpacking sysstat (12.6.1-1ubuntu0.1) ...
Setting up postgresql-client-common (248) ...
Setting up libcommon-sense-perl:amd64 (3.75-3) ...
Setting up postgresql-client-15 (15.5-0ubuntu0.23.04.1) ...
update-alternatives: using /usr/share/postgresql/15/man/man1/psql.1.gz to 
provide /usr/share/man/man1/psql.1.gz (psql.1.gz) in auto mode
Setting up libtypes-serialiser-perl (1.01-1) ...
Setting up libjson-perl (4.10000-1) ...
Setting up sysstat (12.6.1-1ubuntu0.1) ...
update-alternatives: using /usr/bin/sar.sysstat to provide /usr/bin/sar (sar) 
in auto mode
Setting up libjson-xs-perl (4.030-2) ...
Setting up postgresql-common (248) ...

Creating config file /etc/postgresql-common/createcluster.conf with new version
Building PostgreSQL dictionaries from installed myspell/hunspell packages...
  en_au
  en_ca
  en_gb
  en_us
  en_za
  fr
Removing obsolete dictionary files:
'/etc/apt/trusted.gpg.d/apt.postgresql.org.gpg' -> 
'/usr/share/postgresql-common/pgdg/apt.postgresql.org.gpg'
Could not execute systemctl:  at /usr/bin/deb-systemd-invoke line 145.
Setting up postgresql-15 (15.5-0ubuntu0.23.04.1) ...
Creating new PostgreSQL cluster 15/main ...
/usr/lib/postgresql/15/bin/initdb -D /var/lib/postgresql/15/main --auth-local 
peer --auth-host scram-sha-256 --no-instructions
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.

The database cluster will be initialized with locale "en_US.UTF-8".
The default database encoding has accordingly been set to "UTF8".
The default text search configuration will be set to "english".

Data page checksums are disabled.

fixing permissions on existing directory /var/lib/postgresql/15/main ... ok
creating subdirectories ... ok
selecting dynamic shared memory implementation ... posix
selecting default max_connections ... 100
selecting default shared_buffers ... 128MB
selecting default time zone ... Asia/Kolkata
creating configuration files ... ok
running bootstrap script ... ok
performing post-bootstrap initialization ... ok
syncing data to disk ... ok
update-alternatives: using /usr/share/postgresql/15/man/man1/postmaster.1.gz to 
provide /usr/share/man/man1/postmaster.1.gz (postmaster.1.gz) in auto mode
Job for postgresql.service failed because the control process exited with error 
code.
See "systemctl status postgresql.service" and "journalctl -xeu 
postgresql.service" for details.
invoke-rc.d: initscript postgresql, action "start" failed.
× postgresql.service - PostgreSQL RDBMS
     Loaded: loaded (/etc/systemd/system/postgresql.service; enabled; preset: 
enabled)
     Active: failed (Result: exit-code) since Fri 2024-06-07 13:34:17 IST; 24ms 
ago
       Docs: man:postgres(1)
    Process: 79912 ExecStart=/usr/lib/postgresql/15/bin/pg_ctl start -D 
/var/lib/postgresql/15/main -s -o -c 
config_file=/etc/postgresql/15/main/postgresql.conf -l 
/var/log/postgresql/postgresql-15-main.log (code=exited, status=1/FAILURE)
        CPU: 27ms

Jun 07 13:34:17 kartik-81WE systemd[1]: Starting postgresql.service - 
PostgreSQL RDBMS...
Jun 07 13:34:17 kartik-81WE pg_ctl[79912]: pg_ctl: another server might be 
running; trying to start server anyway
Jun 07 13:34:17 kartik-81WE pg_ctl[79912]: pg_ctl: could not start server
Jun 07 13:34:17 kartik-81WE pg_ctl[79912]: Examine the log output.
Jun 07 13:34:17 kartik-81WE systemd[1]: postgresql.service: Control process 
exited, code=exited, status=1/FAILURE
Jun 07 13:34:17 kartik-81WE systemd[1]: postgresql.service: Failed with result 
'exit-code'.
Jun 07 13:34:17 kartik-81WE systemd[1]: Failed to start postgresql.service - 
PostgreSQL RDBMS.
dpkg: error processing package postgresql-15 (--configure):
 installed postgresql-15 package post-installation script subprocess returned 
error exit status 1
Processing triggers for man-db (2.11.2-1) ...
Errors were encountered while processing:
 postgresql-15
E: Sub-process /usr/bin/dpkg returned an error code (1)
kartik@kartik-81WE:~/dbever$

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2067061

Title:
  package postgresql-15 15.5-0ubuntu0.23.04.1 failed to install/upgrade:
  installed postgresql-15 package post-installation script subprocess
  returned error exit status 1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/postgresql-15/+bug/2067061/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to