我已经将官方存储库添加到我的sources.list中,
deb http://apt.postgresql.org/pub/repos/apt/ cosmic-pgdg main 11当我试图在Ubuntu宇宙(18.10)上安装PostgreSQL11时,我会得到以下错误
$ 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.如何解决此错误?
发布于 2018-10-16 21:07:28
这个错误是因为Cosmic的官方PostgreSQL PPA目前正在针对libllvm6.0进行构建。这是来自Debian的一个导入,目前Ubuntu正在针对较新的libllvm7.0进行构建。要访问这个包,必须将universe添加到sources.list中。
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe"https://dba.stackexchange.com/questions/220298
复制相似问题