首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安装PostgreSQL11:依赖性: libllvm6.0 (>= 1:6.0~svn298832-1~),但它是不可安装的

安装PostgreSQL11:依赖性: libllvm6.0 (>= 1:6.0~svn298832-1~),但它是不可安装的
EN

Database Administration用户
提问于 2018-10-16 21:07:28
回答 1查看 4.2K关注 0票数 0

我已经将官方存储库添加到我的sources.list中,

代码语言:javascript
复制
deb http://apt.postgresql.org/pub/repos/apt/ cosmic-pgdg main 11

当我试图在Ubuntu宇宙(18.10)上安装PostgreSQL11时,我会得到以下错误

代码语言:javascript
复制
$ apt-get install postgresql-11
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-11 : Depends: libllvm6.0 (>= 1:6.0~svn298832-1~) but it is not installable
E: Unable to correct problems, you have held broken packages.

如何解决此错误?

EN

回答 1

Database Administration用户

回答已采纳

发布于 2018-10-16 21:07:28

这个错误是因为Cosmic的官方PostgreSQL PPA目前正在针对libllvm6.0进行构建。这是来自Debian的一个导入,目前Ubuntu正在针对较新的libllvm7.0进行构建。要访问这个包,必须将universe添加到sources.list中。

代码语言:javascript
复制
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe"
票数 0
EN
页面原文内容由Database Administration提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://dba.stackexchange.com/questions/220298

复制
相关文章

相似问题

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