在ubuntu 19.10上安装postgresql

时间:2020-02-03 16:12:38

标签: postgresql

我正在尝试在ubuntu 19.10(Eoan)上安装postgresql。我已经尝试了很多方法,但似乎甚至不支持最新版本的postgresql(12)。 有谁知道它是否可以通过某种方式安装?

这是我尝试安装时遇到的错误,例如postgresql 11:

$ sudo 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: postgresql-client-11
                 Depends: libicu55 (>= 55.1-1~) but it is not installable
                 Depends: libpq5 (>= 9.3~) but it is not going to be installed
                 Depends: libssl1.0.0 (>= 1.0.2~beta3) but it is not installable
                 Recommends: sysstat but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

1 个答案:

答案 0 :(得分:0)

尝试一下: https://askubuntu.com/a/1074728

sudo add-apt-repository "deb http://security.ubuntu.com/ubuntu xenial-security main"
sudo apt-get update
sudo apt-get install libicu55