首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >PostgreSQL9.3安装失败

PostgreSQL9.3安装失败
EN

Server Fault用户
提问于 2013-12-23 00:07:08
回答 1查看 8.1K关注 0票数 6

我正试图在我的ubuntu透明机器上安装PostgreSQL9.3。问题是在运行apt-get安装PostgreSQL9.3时,我得到了这个错误

代码语言:javascript
复制
=> apt-get install postgresql-9.3
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  postgresql-client-9.3
Suggested packages:
  oidentd ident-server locales-all postgresql-doc-9.3
The following NEW packages will be installed:
  postgresql-9.3 postgresql-client-9.3
0 upgraded, 2 newly installed, 0 to remove and 700 not upgraded.
Need to get 8,944 kB of archives.
After this operation, 23.6 MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://apt.postgresql.org/pub/repos/apt/ lucid-pgdg/main postgresql-client-9.3 amd64 9.3.2-1.pgdg10.4+1 [2,186 kB]
Get:2 http://apt.postgresql.org/pub/repos/apt/ lucid-pgdg/main postgresql-9.3 amd64 9.3.2-1.pgdg10.4+1 [6,758 kB]
Fetched 8,944 kB in 6s (1,294 kB/s)
Selecting previously unselected package postgresql-client-9.3.
(Reading database ... 48797 files and directories currently installed.)
Unpacking postgresql-client-9.3 (from .../postgresql-client-9.3_9.3.2-1.pgdg10.4+1_amd64.deb) ...
Selecting previously unselected package postgresql-9.3.
Unpacking postgresql-9.3 (from .../postgresql-9.3_9.3.2-1.pgdg10.4+1_amd64.deb) ...
Setting up postgresql-client-9.3 (9.3.2-1.pgdg10.4+1) ...
update-alternatives: error: alternative pg_basebackup.1.gz can't be slave of psql.1.gz: it is a slave of postmaster.1.gz
dpkg: error processing postgresql-client-9.3 (--configure):
 subprocess installed post-installation script returned error exit status 2
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent configuration of postgresql-9.3:
 postgresql-9.3 depends on postgresql-client-9.3; however:
  Package postgresql-client-9.3 is not configured yet.
dpkg: error processing postgresql-9.3 (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 postgresql-client-9.3
 postgresql-9.3
E: Sub-process /usr/bin/dpkg returned an error code (1)

我已经在谷歌上搜索了两个小时,没有解决这个问题。为什么会发生这种事,我怎么解决呢?

EN

回答 1

Server Fault用户

发布于 2013-12-23 08:15:01

在9.1包中似乎有一个错误,但是应该是固定的。

如链接线程中所示,可以通过运行以下命令来解决该问题:

代码语言:javascript
复制
update-alternatives --remove postmaster.1.gz /usr/share/postgresql/9.1/man/man1/postmaster.1.gz

然后重新安装PostgreSQL9.1:

代码语言:javascript
复制
apt-get install -f
apt-get install --reinstall postgresql-9.1
票数 12
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/563073

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档