我最近将我的 ubuntu 升级到 20.04。现在,我正在尝试安装 postgresql,但出现错误。我尝试了 100 种不同的方式并爬取了每个网页,但没有任何效果。这些是我遵循的步骤:
步骤1
sudo apt update
第2步
sudo apt install postgresql postgresql-contrib
这是错误日志
Setting up postgresql-common (223.pgdg20.04+1) ...
dpkg: error processing package postgresql-common (--configure):
installed postgresql-common package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of postgresql-13:
postgresql-13 depends on postgresql-common (>= 182~); however:
Package postgresql-common is not configured yet.
dpkg: error processing package postgresql-13 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of postgresql:
postgresql depends on postgresql-13; however:
Package postgresql-13 is not configured yet.
dpkg: error processing package postgresql (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of postgresql-contrib:
postgresql-contrib depends on postgresql-contrib-13; however:
Package postgresql-contrib-13 is not installed.
Package postgresql-13 which provides postgresql-contrib-13 is not configured yet.
dpkg: error processing package postgresql-contrib (--configure):
dependency problems - leaving unconfigured
Processing triggers for man-db (2.No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because MaxReports is
reached already
No apport report written because MaxReports is reached already
9.1-1) ...
Processing triggers for systemd (245.4-4ubuntu3.3) ...
Errors were encountered while processing:
sysstat
postgresql-common
postgresql-13
postgresql
postgresql-contrib
E: Sub-process /usr/bin/dpkg returned an error code (1)
有人请在这里帮助我