I want to comment that this problem arises when I install imunify360, apparently I deactivate the repositories, I can't find how to activate them, I sense that this is my problem due to the error that appears in the terminal, below I will show you what my problem is about, I would appreciate your help friends.
[root@servidor ~]# /usr/local/cpanel/scripts/installpostgres
This script installs PostgreSQL 9.2.x or later.
If your system runs an older version of PostgreSQL, you must
dump your databases to a file, and then restore them after
installation.
PostgreSQL 9.2.x is NOT backwards compatible.
If no PostgreSQL databases exist on your system, run the
following command to force the creation of a PostgreSQL 9.2.x -style
setup:
mv /var/lib/pgsql /var/lib/pgsql.old
systemctl restart postgresql
Do not run this command if databases exist that you wish to keep!
Are you certain that you wish to proceed? [y/(n)]:y
info [installpostgres] Installing Postgres...
Last metadata expiration check: 2:05:36 ago on Thu Apr 27 07:57:38 2023.
Package libpq5-15.2-42.1PGDG.rhel8.x86_64 is already installed.
Error:
Problem: installed package libpq5-15.2-42.1PGDG.rhel8.x86_64 obsoletes libpq provided by libpq-13.5-1.el8.x86_64
- package libpq-devel-13.5-1.el8.x86_64 requires libpq(x86-64) = 13.5-1.el8, but none of the providers can be installed
- cannot install the best candidate for the job
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
(XID g74g6m) “/usr/bin/yum” informó el código de error “1” cuando finalizó:
“/usr/bin/yum” reported error code “1” when it ended:
info [installpostgres] Updating postgresql configuration now...
Failed to locate postgresql CLI application
info [installpostgres] Attempting to restart postgresql...
The PostgreSQL installation failed!
[root@servidor ~]# /usr/local/cpanel/scripts/installpostgres
This script installs PostgreSQL 9.2.x or later.
If your system runs an older version of PostgreSQL, you must
dump your databases to a file, and then restore them after
installation.
PostgreSQL 9.2.x is NOT backwards compatible.
If no PostgreSQL databases exist on your system, run the
following command to force the creation of a PostgreSQL 9.2.x -style
setup:
mv /var/lib/pgsql /var/lib/pgsql.old
systemctl restart postgresql
Do not run this command if databases exist that you wish to keep!
Are you certain that you wish to proceed? [y/(n)]:y
info [installpostgres] Installing Postgres...
Last metadata expiration check: 2:05:36 ago on Thu Apr 27 07:57:38 2023.
Package libpq5-15.2-42.1PGDG.rhel8.x86_64 is already installed.
Error:
Problem: installed package libpq5-15.2-42.1PGDG.rhel8.x86_64 obsoletes libpq provided by libpq-13.5-1.el8.x86_64
- package libpq-devel-13.5-1.el8.x86_64 requires libpq(x86-64) = 13.5-1.el8, but none of the providers can be installed
- cannot install the best candidate for the job
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
(XID g74g6m) “/usr/bin/yum” informó el código de error “1” cuando finalizó:
“/usr/bin/yum” reported error code “1” when it ended:
info [installpostgres] Updating postgresql configuration now...
Failed to locate postgresql CLI application
info [installpostgres] Attempting to restart postgresql...
The PostgreSQL installation failed!
Last edited by a moderator: