我正在使用Linux,并试图通过PostgreSQL 10通过sudo apt-get install postgresql-12将其升级到版本12,但我看到了经常出现的错误:
E: Unable to locate package postgresql-12那怎么了?你能告诉我为什么会发生这种事吗?
发布于 2022-10-17 11:21:18
PostgreSQL 12只在LinuMint20.x中可用(基于Ubuntu20.04)。LinuxMint21.x(基于Ubuntu22.04)有PostgreSQL 14,您需要使用
sudo apt install postgresql-14那里。LinuxMint19.x只有PostgreSQL 10。
在任何版本中,您都可以使用
sudo apt install postgresql以获得该版本的默认版本。
https://unix.stackexchange.com/questions/721288
复制相似问题