我正在尝试在 Ubuntu 18.04 上安装 postgresql 9.4(由于 BDR 支持),并遵循此构建教程。
但是当我为 postgres 安装一些依赖项时,它的错误
root@ubuntu:/home/ubuntu# sudo apt-get build-dep postgresql-9.4
Reading package lists... Done
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:
builddeps:postgresql-9.4 : Depends: openjade but it is not installable
Depends: docbook-dsssl but it is not installable
Depends: docbook-xml but it is not installable
Depends: docbook-xsl but it is not installable
Depends: docbook but it is not installable
Depends: opensp but it is not installable
E: Unable to correct problems, you have held broken packages.
Run Code Online (Sandbox Code Playgroud)
可以在 ubuntu 18.04 上安装 postgresql 9.4 吗?谢谢你。
第1步:添加 PostgreSQL Apt 存储库
$ sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" >> /etc/apt/sources.list.d/pgdg.list'
$ wget -q https://www.postgresql.org/media/keys/ACCC4CF8.asc -O - | sudo apt-key add -
Run Code Online (Sandbox Code Playgroud)
第2步:安装PostgreSQL
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install postgresql postgresql-contrib libpq-dev pgadmin3
Run Code Online (Sandbox Code Playgroud)
第 3 步:连接到 PostgreSQL
$ sudo su - postgres
$ psql
Run Code Online (Sandbox Code Playgroud)
要列出数据库,请输入以下命令
postgres-# \l
Run Code Online (Sandbox Code Playgroud)
信用数字海洋
| 归档时间: |
|
| 查看次数: |
10149 次 |
| 最近记录: |