我遵循了下面的指南:
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 --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get -y install postgresqlVERSION
當我嘗試搜索postgresql-10.13 時出現問題,這是我想要的版本。我不知道為什么唯一可用的是下面的一個:
apt-cache policy postgresql-10
postgresql-10:
Installed: (none)
Candidate: 10.18-1.pgdg18.04 1
Version table:
10.18-1.pgdg18.04 1 500
500 http://apt.postgresql.org/pub/repos/apt bionic-pgdg/main amd64 Packages
uj5u.com熱心網友回復:
從 10 開始,主要版本只是第一個數字,錯誤修復是第二個。您只能從 repo 中獲得每個主要版本的當前錯誤修復。如果你真的想要一個已知的 bug 版本,你可以從 git 獲取源代碼并編譯。
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/340179.html
標籤:PostgreSQL 乌本图
