首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在ubuntu上安装PG数据库

在ubuntu上安装PG数据库
EN

Ask Ubuntu用户
提问于 2015-03-01 14:20:08
回答 1查看 1.8K关注 0票数 0

我试图在我的ubuntu系统上安装PG,但是我无法克服sudo apt-get install postgresql-9.1的这个错误:

代码语言:javascript
复制
Package postgresql-9.1 is not available, but is referred to by another package. 
This may mean that the package is missing, has been obsoleted, or is only available
from another source

sudo apt-get install postgresql-9.4的此错误:

代码语言:javascript
复制
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package postgresql-9.4
E: Couldn't find any package by regex 'postgresql-9.4'

sudo apt-get install postgresql postgresql-contrib的此错误:

代码语言:javascript
复制
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 postgresql : Depends: postgresql-9.3 but it is not going to be installed
 postgresql-contrib : Depends: postgresql-contrib-9.3 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

有没有人知道这是为什么,或者我必须做些什么来纠正它?(我以前运行过sudo apt-get update )。

EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2015-03-01 15:45:26

您的计算机上似乎安装了postgres-xc,这是用于多主群集的PostgreSQL旧版本的分叉。问题是Postgres-XC与PostgreSQL不兼容。

假设您需要PostgreSQL (而不是Postgres-XC),我建议您完全卸载postgres-xcpostgres-xc-client,然后再尝试重新安装postgresql-*包。

票数 2
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/591424

复制
相关文章

相似问题

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